De-register De-queue WordPress Loaded Scripts & Styles

You can de-register and de-queue WordPress loaded javascripts and CSS styles by passing them into the wp_print_scripts function. This can help with fewer server requests if the scripts are no longer required or if a conflict is occurring. So for example if I wanted to remove the WordPress TwentyTwelve default mobile menu javascript you would use: //Remove twentywelve…

Read More

Adding a Site Login/Logout Link to an existing Menu in WordPress

You can add on to the end of an existing WordPress menu a site login/logout link. The WordPress menu must be registered and have a theme location, this will not work with custom menus. This needs to be added to your theme functions.php file function themeprefix_login_logout_link( $items, $args ) { if( $args->theme_location == ‘primary’ ) { $loginoutlink…

Read More