New answers tagged

1

Outsource this function into a Plugin If you want a specific function available across multiple themes, it is best to have it in a Plugin, and activate it networkwide. Find the function Locate the function in the theme where it is available. You now have two possibilities: Delete the function from the current theme Make a duplicate of this function to ...


0

Add this simple code into your function.php file: function wpbeginner_remove_version() { return ''; } add_filter('the_generator', 'wpbeginner_remove_version');


2

Just add a variable to the function so you can call it differently from the template... EDITED: pass the footer row to function and return class... function mytheme_footer_sidebar_class($row) { if ($row == 1) {$i = 1; $j = 5;} elseif ($row == 2) {$i = 5; $j = 9;} $active_sidebars = 0; for ($i; $i < $j; $i++) { if ( ...


1

The other answer is not working for my site. I tried this script instead and it works fine for removing the WordPress version number from the right footer of admin pages: add_filter( 'admin_footer_text', '__return_empty_string', 11 ); add_filter( 'update_footer', '__return_empty_string', 11 );


1

You should call wp_nav_menu() in your footer.php template. It's used as following : <?php wp_nav_menu( array('theme_location'=>'footer') ); ?> The theme_location parameters refers to the checkboxes below the menu editor (Theme location). If your theme doesn't have enough theme_location, you can add some by adding function ...



Top 50 recent answers are included