Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialGonzaloº Caminos
2,231 PointsSocial Icons in Bootstrap Menu problems
Hi. I am making a WordPress Theme for a customer. I have this problem:
I cant see the social icons properly in slow resolutions screens. Icons must be on the right side and not underneath at low resolutions.
<div class="container" id= "contenedor_principal">
<header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner">
<div class="navbar-header">
<button class="navbar-toggle" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php bloginfo('url');?>"><?php bloginfo('name');?></a>
</div><!--FIN DEL NAVBAR HEADER-->
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
<div id="navbar" class="navbar-collapse collapse">
<?php
$args = array(
'menu' => 'primary',
'menu_class' => 'nav navbar-nav social',
'container' => 'true',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker(),
'theme_location' => 'primary',
);
$secundary_menu = array(
'menu' => 'Secundario',
'menu_class' => 'nav navbar-nav social',
'container' => 'true',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker(),
'theme_location' => 'secundary',
);
wp_nav_menu($args);
?>
<?php
wp_nav_menu($secundary_menu);
?>
</div><!--/.navbar-collapse -->
</nav>
</header>
</div>
I am showing the icons with a WordPress Plugin in the secondary menu...