Eigene Navigations Menüs in Wordpress aktivieren


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!-- Code in functions.php einfügen -->
  2. add_theme_support( 'menus' );
  3.  
  4. <!-- Code in template Datei einfügen -->
  5. <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>

URL: http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.