• Hello everybody, I have this issue: I use Polylang and I set up English and Italian as languages, but the buttons are not clickable in front-end.

    My website > http://www.tusciapp.com

    I’ve read that could depend by wp_nav_menu function in header.php. This is my header section:

    <!– Menu
    ======================================================================== –>
    <nav id=”main-menu-top”>
    <?php
    wp_nav_menu(array(
    ‘container’ => false,
    ‘container_class’ => ‘menu’,
    ‘menu_class’ => ‘main-menu’,
    ‘menu_id’ => ‘menu-res’,
    ‘theme_location’ => ‘main_nav’,
    ‘before’ => ”,
    ‘after’ => ”,
    ‘link_before’ => ”,
    ‘link_after’ => ”,
    ‘fallback_cb’ => false,
    ));
    ?>
    </nav>
    <!– Menu / End –>

    Can you help me?
    Many thanks.

    https://wordpress.org/plugins/polylang/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter edeb

    (@edeb)

    <!-- Menu
    ======================================================================== -->
    <nav id="main-menu-top">
    <?php
    wp_nav_menu(array(
    'container' => false,
    'container_class' => 'menu',
    'menu_class' => 'main-menu',
    'menu_id' => 'menu-res',
    'theme_location' => 'main_nav',
    'before' => '',
    'after' => '',
    'link_before' => '',
    'link_after' => '',
    'fallback_cb' => false,
    ));
    ?>
    </nav>
    <!-- Menu / End -->
    Thread Starter edeb

    (@edeb)

    Nobody can help?

    Many thanks.

    Plugin Support Chrystl

    (@chrystl)

    Hello
    Could you paste here the function register_nav_menu.

    Thread Starter edeb

    (@edeb)

    Yes, I found this. I use One Engine Theme with child theme.

    /*-----------------------------------------------------------------------------------*/
    		/*	Register Menus
    		/*-----------------------------------------------------------------------------------*/
    		register_nav_menus(
    			array(
    			'main_nav'=>__('Main Nav'),
    			)
    		);
    		register_nav_menus(
    			array(
    			'footer_nav'=>__('Footer Nav'),
    			)
    		);		
    
    		$s_labels = array(
    			'name'               => _x( 'Sliders', 'post type general name', 'oneengine' ),
    			'singular_name'      => _x( 'Slider', 'post type singular name', 'oneengine' ),
    			'menu_name'          => _x( 'Sliders', 'admin menu', 'oneengine' ),
    			'name_admin_bar'     => _x( 'Slider', 'add new on admin bar', 'oneengine' ),
    			'add_new'            => _x( 'Add New', 'Slider', 'oneengine' ),
    			'add_new_item'       => __( 'Add New Slider', 'oneengine' ),
    			'new_item'           => __( 'New Slider', 'oneengine' ),
    			'edit_item'          => __( 'Edit Slider', 'oneengine' ),
    			'view_item'          => __( 'View Slider', 'oneengine' ),
    			'all_items'          => __( 'All Sliders', 'oneengine' ),
    			'search_items'       => __( 'Search Sliders', 'oneengine' ),
    			'parent_item_colon'  => __( 'Parent Sliders:', 'oneengine' ),
    			'not_found'          => __( 'No Sliders found.', 'oneengine' ),
    			'not_found_in_trash' => __( 'No Portfolios found in Trash.', 'oneengine' ),
    		);
    
    		$s_args = array(
    			'labels'             => $s_labels,
    			'public'             => true,
    			'publicly_queryable' => true,
    			'show_ui'            => true,
    			'show_in_menu'       => true,
    			'query_var'          => true,
    			'rewrite'            => array( 'slug' => 'slider' ),
    			'capability_type'    => 'post',
    			'has_archive'        => true,
    			'hierarchical'       => false,
    			'menu_position'      => null,
    			'supports'           => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
    		);
    
    		register_post_type( 'slider', $s_args );
    
    		$p_labels = array(
    			'name'               => _x( 'Portfolios', 'post type general name', 'oneengine' ),
    			'singular_name'      => _x( 'Portfolio', 'post type singular name', 'oneengine' ),
    			'menu_name'          => _x( 'Portfolios', 'admin menu', 'oneengine' ),
    			'name_admin_bar'     => _x( 'Portfolio', 'add new on admin bar', 'oneengine' ),
    			'add_new'            => _x( 'Add New', 'Portfolio', 'oneengine' ),
    			'add_new_item'       => __( 'Add New Portfolio', 'oneengine' ),
    			'new_item'           => __( 'New Portfolio', 'oneengine' ),
    			'edit_item'          => __( 'Edit Portfolio', 'oneengine' ),
    			'view_item'          => __( 'View Portfolio', 'oneengine' ),
    			'all_items'          => __( 'All Portfolios', 'oneengine' ),
    			'search_items'       => __( 'Search Portfolios', 'oneengine' ),
    			'parent_item_colon'  => __( 'Parent Portfolios:', 'oneengine' ),
    			'not_found'          => __( 'No Portfolios found.', 'oneengine' ),
    			'not_found_in_trash' => __( 'No Portfolios found in Trash.', 'oneengine' ),
    		);
    
    		$p_args = array(
    			'labels'             => $p_labels,
    			'public'             => true,
    			'publicly_queryable' => true,
    			'show_ui'            => true,
    			'show_in_menu'       => true,
    			'query_var'          => true,
    			'rewrite'            => array( 'slug' => 'portfolio' ),
    			'capability_type'    => 'post',
    			'has_archive'        => true,
    			'hierarchical'       => false,
    			'menu_position'      => null,
    			'supports'           => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
    		);
    
    		register_post_type( 'portfolio', $p_args );	
    
    		$test_labels = array(
    			'name'               => _x( 'Testimonials', 'post type general name', 'oneengine' ),
    			'singular_name'      => _x( 'Testimonial', 'post type singular name', 'oneengine' ),
    			'menu_name'          => _x( 'Testimonials', 'admin menu', 'oneengine' ),
    			'name_admin_bar'     => _x( 'Testimonial', 'add new on admin bar', 'oneengine' ),
    			'add_new'            => _x( 'Add New', 'Testimonial', 'oneengine' ),
    			'add_new_item'       => __( 'Add New Testimonial', 'oneengine' ),
    			'new_item'           => __( 'New Testimonial', 'oneengine' ),
    			'edit_item'          => __( 'Edit Testimonial', 'oneengine' ),
    			'view_item'          => __( 'View Testimonial', 'oneengine' ),
    			'all_items'          => __( 'All Testimonials', 'oneengine' ),
    			'search_items'       => __( 'Search Testimonials', 'oneengine' ),
    			'parent_item_colon'  => __( 'Parent Testimonials:', 'oneengine' ),
    			'not_found'          => __( 'No Testimonials found.', 'oneengine' ),
    			'not_found_in_trash' => __( 'No Testimonials found in Trash.', 'oneengine' ),
    		);
    
    		$test_args = array(
    			'labels'             => $test_labels,
    			'public'             => true,
    			'publicly_queryable' => true,
    			'show_ui'            => true,
    			'show_in_menu'       => true,
    			'query_var'          => true,
    			'rewrite'            => array( 'slug' => 'testimonial' ),
    			'capability_type'    => 'post',
    			'has_archive'        => true,
    			'hierarchical'       => false,
    			'menu_position'      => null,
    			'supports'           => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
    		);
    
    		register_post_type( 'testimonial', $test_args );	
    
    		$t_labels = array(
    			'name'               => _x( 'Teams', 'post type general name', 'oneengine' ),
    			'singular_name'      => _x( 'Team', 'post type singular name', 'oneengine' ),
    			'menu_name'          => _x( 'Teams', 'admin menu', 'oneengine' ),
    			'name_admin_bar'     => _x( 'Team', 'add new on admin bar', 'oneengine' ),
    			'add_new'            => _x( 'Add New', 'Team', 'oneengine' ),
    			'add_new_item'       => __( 'Add New Team', 'oneengine' ),
    			'new_item'           => __( 'New Team', 'oneengine' ),
    			'edit_item'          => __( 'Edit Team', 'oneengine' ),
    			'view_item'          => __( 'View Team', 'oneengine' ),
    			'all_items'          => __( 'All Teams', 'oneengine' ),
    			'search_items'       => __( 'Search Teams', 'oneengine' ),
    			'parent_item_colon'  => __( 'Parent Teams:', 'oneengine' ),
    			'not_found'          => __( 'No Teams found.', 'oneengine' ),
    			'not_found_in_trash' => __( 'No Teams found in Trash.', 'oneengine' ),
    		);
    
    		$t_args = array(
    			'labels'             => $t_labels,
    			'public'             => true,
    			'publicly_queryable' => true,
    			'show_ui'            => true,
    			'show_in_menu'       => true,
    			'query_var'          => true,
    			'rewrite'            => array( 'slug' => 'team' ),
    			'capability_type'    => 'post',
    			'has_archive'        => true,
    			'hierarchical'       => false,
    			'menu_position'      => null,
    			'supports'           => array( 'title','thumbnail')
    		);
    
    		register_post_type( 'team', $t_args );	
    
    		$tax_labels = array(
    			'name'              => _x( 'Categories', 'taxonomy general name' ),
    			'singular_name'     => _x( 'Category', 'taxonomy singular name' ),
    			'search_items'      => __( 'Search Categories', 'oneengine' ),
    			'all_items'         => __( 'All Categories', 'oneengine' ),
    			'parent_item'       => __( 'Parent Category', 'oneengine' ),
    			'parent_item_colon' => __( 'Parent Category:', 'oneengine' ),
    			'edit_item'         => __( 'Edit Category', 'oneengine' ),
    			'update_item'       => __( 'Update Category', 'oneengine' ),
    			'add_new_item'      => __( 'Add New Category', 'oneengine' ),
    			'new_item_name'     => __( 'New Category Name', 'oneengine' ),
    			'menu_name'         => __( 'Category', 'oneengine' ),
    		);
    
    		$tax_args = array(
    			'hierarchical'      => true,
    			'labels'            => $tax_labels,
    			'show_ui'           => true,
    			'show_admin_column' => true,
    			'query_var'         => true,
    			'rewrite'           => array( 'slug' => 'portfolio-cat' ),
    		);
    
    		register_taxonomy( 'portfolio_cat', array( 'portfolio' ), $tax_args );

    Many thanks.

    Plugin Support Chrystl

    (@chrystl)

    No problem in your register_nav_menus. It’s an ajax issue. Your menu is not reload. You must deactivate ajax at least for the item “IT” in your menu.

    Thread Starter edeb

    (@edeb)

    Ok, and do you have any idea how to do that?
    Many thanks for your help.

    Plugin Support Chrystl

    (@chrystl)

    You should contact the theme support to find a such option.

    Thread Starter edeb

    (@edeb)

    Ok. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Polylang Menu Buttons not working’ is closed to new replies.