Posts Tagged ‘plugins’

WordPress Tip: Adding Custom Menus to a Theme

If you’re using WordPress 3.0 or above (which, if you’re using WordPress, you really should be), you have the option of adding custom menus to your theme without extra plugins.

In the past, this was managed via plugins such as “Page Links To” and “Exclude Pages.” Now, this can all be managed within the WordPress admin console and in your theme, with a decent amount of customization.

In this tutorial, I’m assuming you know the basics of PHP (enough to create your own theme, at least).

To tell WordPress that this theme supports menus, add the following code to your theme’s functions.php file:

// I want to add a header and footer
register_nav_menus( array(
'header' => 'Top Navigation',
'footer' => 'Top Navigation',
));

To use a menu in your theme files, you will need to add a line similar to what’s shown here. I added this in my header.php file for the top navigation, and added a similar line to footer.php:
wp_nav_menu('sort_column=menu_order&menu_class=header-nav&menu=header');

There are many more options available for how your menu is displayed; see the WordPress Codex page for wp_nav_menu.

To create your new menus in WordPress, go to the admin console, click Appearances > Menus. This screen is fairly self-explanatory. I was able to replace three plugins and some custom header and footer code using only this method, in about 10 minutes (including research on wp_nav_menu).

For even more hardcore customization using custom walkers (a feature described in the Codex), check out Christian Budschedl’s excellent post, Improve Your WordPress Navigation Output.

Happy blogging!

Comments

Get Trapcode Plugins to Show in CS4

Had a bit of an issue with After Effects CS4 not showing older Trapcode plugins. After installation, the Trapcode folder was simply not present. Specifically, I had issues with SoundKeys 1.12, Particular 1.5, and 3D Stroke 2.04.

Once you install these plugins, they will install to your Program Files\Trapcode. Copy 3D Stroke and Particular *.aex files into Program Files\Adobe\Adobe After Effects CS4\Support Files\Plug-ins\Effects, and SoundKeys into the parent folder (Plug-ins). Restart After Effects.

For other Trapcode plugins, I haven’t tried to install them yet, so I don’t know.

I believe the newest versions of Trapcode plugins all install to the correct folder.

Update (2010-10-26): I’m probably late to the game on this, but older Trapcode plugins will not work in After Effects CS5. This version requires a 64-bit operating system and plugins, so you will now have to re-purchase your Trapcode plugins. Oh yeah, and Trapcode was bought by Red Giant, so you’ll have to buy it from them.

I feel like Adobe just gave me the finger. I guess the assumption is that if you’re working on video, you can afford it? Even with Photoshop I got a 32-bit version WITH the 64-bit (though I use the 64-bit one).

Comments