Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › I've got issue with my Navigation menu~
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › I've got issue with my Navigation menu~
- This topic has 1 reply, 2 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
May 11, 2015 at 12:04 am #173556
Hi there,
I’ve got issue with my Navigation menu. Also, I use UberMenu Plugin.
Please see my picture from attachment.
one item drops down on a second line.
navigation bar links all appear only on one line?
I already asked this issue to ubermenu developer like this.
Thank you very much~
————————————————————————————
You may want to adjust your theme so that you wrap the menu in a span10 and the items to the right in a span2 instead, to fit everything the way you want it.Hope that helps,
Chris
—
Chris Mavricos
[email protected]————————————————————————
Attachments:
You must be logged in to view attached files.May 11, 2015 at 6:29 am #173595Hi,
Please paste this code at functions.php of child theme.function sf_main_menu($id, $layout = "") { // VARIABLES $options = get_option('sf_neighborhood_options'); $show_cart = $options['show_cart']; $show_wishlist = $options['show_wishlist']; $disable_search = false; if (isset($options['disable_search'])) { $disable_search = $options['disable_search']; } $header_search_pt = "any"; if (isset($options['header_search_pt'])) { $header_search_pt = $options['header_search_pt']; } $menu_output = $menu_full_output = ""; $main_menu_args = array( 'echo' => false, 'theme_location' => 'main_navigation', 'walker' => new sf_mega_menu_walker, 'fallback_cb' => '' ); // MENU OUTPUT if ($id == "mini-navigation") { $menu_output .= '<nav id="'.$id.'" class="mini-menu clearfix">'. "\n"; } else { $menu_output .= '<nav id="'.$id.'" class="std-menu clearfix">'. "\n"; } if(function_exists('wp_nav_menu')) { $menu_output .= wp_nav_menu( $main_menu_args ); } $menu_output .= '</nav>'. "\n"; // FULL WIDTH MENU OUTPUT if ($layout == "full") { $menu_full_output .= '<div class="container">'. "\n"; $menu_full_output .= '<div class="row">'. "\n"; $menu_full_output .= '<div class="span10">'. "\n"; $menu_full_output .= $menu_output . "\n"; $menu_full_output .= '</div>'. "\n"; $menu_full_output .= '<div class="span2 header-right">'. "\n"; if ($id == "mini-navigation") { $menu_full_output .= '<nav class="mini-menu">'. "\n"; } else { $menu_full_output .= '<nav class="std-menu">'. "\n"; } $menu_full_output .= '<ul class="menu">'. "\n"; if (!$disable_search) { $menu_full_output .= '<li class="menu-search no-hover"><a href="#"><i class="fa-search"></i></a>'. "\n"; $menu_full_output .= '<ul class="sub-menu">'. "\n"; $menu_full_output .= '<li><div class="ajax-search-wrap"><div class="ajax-loading"></div><form method="get" class="ajax-search-form" action="'.home_url().'/">'; if ( $header_search_pt != "any" ) { $menu_full_output .= '<input type="hidden" name="post_type" value="' . $header_search_pt . '" />'; } $menu_full_output .= '<input type="text" placeholder="'.__("Search", "swiftframework").'" name="s" autocomplete="off" /></form><div class="ajax-search-results"></div></div></li>'. "\n"; $menu_full_output .= '</ul>'. "\n"; $menu_full_output .= '</li>'. "\n"; } if ($show_cart) { $menu_full_output .= sf_get_cart(); } if ( class_exists( 'YITH_WCWL_UI' ) && $show_wishlist) { $menu_full_output .= sf_get_wishlist(); } $menu_full_output .= '</ul>'. "\n"; $menu_full_output .= '</nav>'. "\n"; $menu_full_output .= '</div>'. "\n"; $menu_full_output .= '</div>'. "\n"; $menu_full_output .= '</div>'. "\n"; $menu_output = $menu_full_output; } // MENU RETURN return $menu_output; }
Thanks
Mohammad -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.