SHARE
TWEET

WordPress - Menú en tema

androsfenollosa Dec 3rd, 2019 (edited) 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // header.php
  2. <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
  3.  
  4. // functions.php
  5. <?php
  6. register_nav_menu( 'primary', 'Menu principal de header' );
  7.  
  8. <!-- Autor: Andros Fenollosa https://programadorwebvalencia.com/ -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top