Responsive menu on genesis theme [closed]

I answered earlier but the link I provided doesn’t exist anymore. So, I’ll post the code here in hopes that it is what you’re looking for. In your functions.php, add this snippet to create the markup: /* Mobile Menu —————————————————————————————-*/ add_action( ‘genesis_site_description’, ‘ls_mobile_menu_toggle’, 5 ); function ls_mobile_menu_toggle() { echo ‘<div class=”menu-toggle”>’; echo ‘<li></li><li></li><li></li>’; echo ‘</div>’; … Read more

looping widgets to organize bootstrap grids

Would each of the columns have the same corresponding bootstrap classes (col-sm-4 col-md-4)? If so, you can just add those classes to the <div> referenced in before_widget, like: register_sidebar(array( ‘name’ => __(‘Footer Top’, ‘roots’), ‘id’ => ‘footer-top’, ‘before_widget’ => ‘<div class=”footer_teaser %1$s %2$s col-sm-4 col-md-4″>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h3>’, ‘after_title’ => ‘</h3>’, )); … Read more

WP nav menu + Bootstrap, add role=”menu” to UL

[Update] Solution found: I was looking for ‘items_wrap’ => ‘<ul id=”%1$s” class=”%2$s” role=”menu” >%3$s</ul>’ <?php wp_nav_menu( array( ‘menu’ => ‘menu’, ‘theme_location’ => ‘menu’, ‘items_wrap’ => ‘<ul id=”%1$s” class=”%2$s” role=”menu” >%3$s</ul>’, ‘depth’ => 0, ‘container’ => ”, ‘menu_class’ => ‘dropdown-menu’, ‘fallback_cb’ => ‘wp_bootstrap_navwalker::fallback’, ‘walker’ => new wp_bootstrap_navwalker()) ); ?>

Check for Twitter Bootstrap Loaded

There is no good way of doing this. One way is to enumerate the already registered scripts, like this: function yourplugin_add_my_stylesheet() { global $wp_styles; if ( $wp_styles instanceof WP_Styles ) { // enumerate all current styles foreach( $wp_styles->queue as $handle ) { // use the $handle to see if it’s called ‘bootstrap’ $obj = $wp_styles->registered[$handle]; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)