Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

RedCenso on "Polylang with Super5 theme => menu"

$
0
0

Hello,

The Super5 theme doesn't work with polyland
The menu doesn't change with another language

I found the code but I don't know how change it (i want to keep class and ID)

Code in a standard theme :

<nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
				<button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
				<a href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
				<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
			</nav>

In my theme I have :

<?php if (has_nav_menu('main-menu')) : ?>
                    <?php wp_nav_menu(array('container_class'=>'snavigation col-md-12 hidden-sm hidden-xs', 'container'=>'nav', 'items-wrap'=>'<ul id="%1$s" class="%2$s">%3$s'.kioken_topSearch().'')); ?>
                <?php else: ?>
                    <nav class="snavigation  col-md-12 hidden-sm hidden-xs">

<ul>
<li><a>"><?php echo __('No Menu Exists! Create Menus Here',K_THEME_NAME); ?></a></li>
</ul>
                    </nav>
                <?php endif; ?>

Could you help ?

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


Viewing all articles
Browse latest Browse all 11471

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>