Highlighting current page in WordPress Menus

By default, wp_nav_menu doesn’t create a .current_page_item or .current-menu-item class for certain elements in a wp_nav_menu, for example if you are viewing a custom post type archive or single page.

Here’s some code to fix that. Bang it in functions.php

Don’t forget to create your CSS classes if you already haven’t done so. Continue reading “Highlighting current page in WordPress Menus”

How to move WordPress directory or server – properly

I ran into an annoying, but easily avoided problem the other day. When moving a clients WordPress site from the development/staging area to it’s live domain, I did the usual update “WordPress address” and “Blog address” in the WordPress settings.
Thats all you need to do, right? No.
Continue reading “How to move WordPress directory or server – properly”