Two nav menus

Discussion in 'Andrina WordPress Theme' started by danteunipv, Jan 11, 2016.

  1. danteunipv

    danteunipv Member

    Joined:
    Feb 3, 2015
    Messages:
    59
    Likes Received:
    1
    Dear friends
    I have a problem.
    I have to develop a website with two languages: italian and spanish
    I created:
    - header-spain.php
    - footer-spain.php
    -sidebar-footersp.php
    - One theme page like front-page.php with:
    -
    Code:
    <?php get_header('spain'); ?> 
    -
    Code:
    <?php get_footer('spain'); ?> 
    I wrote this code in the function.php file
    Code:
    if ( function_exists( 'wp_nav_menu' ) ) {
        register_nav_menus(
            array(
            'menusp' => 'Menu spagnolo',
            )
        );
    }
    I can not select a menu (menusp) in a spain customize page.
    I uploaded image.
    Can you help me?
    Link italian home page: http://reusopavia.unipv.it/
    Link spain home page: http://reusopavia.unipv.it/reuso-sp/
    Warm Regards!

    Dante reuso.jpg
     
  2. danteunipv

    danteunipv Member

    Joined:
    Feb 3, 2015
    Messages:
    59
    Likes Received:
    1
    Dear friends,
    I resolved the problem.
    I wrote the code in header-spain.php
    Code:
    <?php wp_nav_menu(array('theme_location' => 'menusp', 'container_id' => 'menu', 'menu_class' => 'ddsmoothmenu', 'fallback_cb' => 'inkthemes_nav_fallback'));?>  
    This is the secret code ;-)
    Code:
    'theme_location' => 'menusp',
    I love Inkthemes ;-)
    - Spain version: http://reusopavia.unipv.it/reuso-sp/
    - Italian version: http://reusopavia.unipv.it/
    Best regards
    Dante
     
  3. priya

    priya Guest

    Hello Dante,

    Sorry for delay in reply..

    Hope doing good.

    I really appreciate your efforts in exploring the things and sharing your knowledge here.

    It seems that you have resolved your issue by your own.

    Let me know if have further doubts so that I can assist you.

    Thanks & Regards!
    Priyanka
    InkThemes.com
     

Share This Page