Tagged: x
-
AuthorPosts
-
September 13, 2016 at 9:06 am #1173068
FLYFLYParticipantHi
I’ve tried a lot of your solution from your forum but nothing solution is ok for me.
I’ve a problem with the woo commerce icon and search icon in the ubermenu ( see the attachement picture ) and i would like that icons will be more bigger.
ThanksGwen
September 13, 2016 at 10:02 am #1173157
JoaoModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
September 14, 2016 at 2:24 am #1174417
FLYFLYParticipantThis reply has been marked as private.September 14, 2016 at 5:42 am #1174600
ChristopherModeratorHi there,
You forgot to include your website URL.
Thanks.
September 14, 2016 at 6:53 am #1174641
FLYFLYParticipantThis reply has been marked as private.September 14, 2016 at 10:09 am #1174923
RupokMemberHi there,
The WooCommerce buttons are part of X menu not UberMenu so it won’t work as same in Ubermenu like it work in X menu. However you can use the following selector to control the font-size, spacing etc for the WooCommerce and Search buttons :
.x-btn-navbar-search, .x-btn-navbar-woocommerce { font-size: 20px; float: left; margin-right: 10px; }Hope this helps.
September 14, 2016 at 12:31 pm #1175143
FLYFLYParticipantThanks but your code is ok for spacing and size but not for the position.
See the attached picture. I would like that the icon woo commerce and search are in the same line that the menu.
Thanks GwenSeptember 14, 2016 at 7:02 pm #1175631
Rue NelModeratorHello There,
Sorry if it didn’t work out for you. This is a known incomtability with X Custom Menu items and UberMenu. I already have fix the issue to save you from trouble. I simply added this custom code in your child theme’s functions.php file;
// Custom Search Navigation when uberMenu is active // ============================================================================= function x_navbar_search_navigation_item( $items, $args ) { if ( x_get_option( 'x_header_search_enable' ) == '1' ) { if ( $args->theme_location == 'primary' ) { if ( ! class_exists( 'UberMenu' ) ) { $items .= '<li class="menu-item x-menu-item x-menu-item-search">' . '<a href="#" class="x-btn-navbar-search">' . '<span><i class="x-icon-search" data-x-icon="" aria-hidden="true"></i><span class="x-hidden-desktop"> ' . __( 'Search', '__x__' ) . '</span></span>' . '</a>' . '</li>'; } else { $items .= '<li class="ubermenu-item ubermenu-item-level-0 x-menu-item x-menu-item-search">' . '<a href="#" class="ubermenu-target x-btn-navbar-search">' . '<span><i class="x-icon-search" data-x-icon="" aria-hidden="true"></i><span class="x-hidden-desktop"> ' . __( 'Search', '__x__' ) . '</span></span>' . '</a>' . '</li>'; } } } return $items; } add_filter( 'wp_nav_menu_items', 'x_navbar_search_navigation_item', 9998, 2 ); // ============================================================================= // Custom Cart menu when uberMenu is active // ============================================================================= function x_woocommerce_navbar_menu_item( $items, $args ) { if ( X_WOOCOMMERCE_IS_ACTIVE && x_get_option( 'x_woocommerce_header_menu_enable' ) == '1' ) { if ( $args->theme_location == 'primary' ) { if ( ! class_exists( 'UberMenu' ) ) { $items .= '<li class="menu-item x-menu-item x-menu-item-woocommerce">' . '<a href="' . x_get_cart_link() . '" class="x-btn-navbar-woocommerce">' . x_woocommerce_navbar_cart() . '</a>' . '</li>'; } else { $items .= '<li class="ubermenu-item ubermenu-item-level-0 menu-item x-menu-item x-menu-item-woocommerce">' . '<a href="' . x_get_cart_link() . '" class="ubermenu-target x-btn-navbar-woocommerce">' . x_woocommerce_navbar_cart() . '</a>' . '</li>'; } } } return $items; } add_filter( 'wp_nav_menu_items', 'x_woocommerce_navbar_menu_item', 9999, 2 ); // =============================================================================You can custom the cart menu in the customizer by going to Appearance > Customize > WooCommerce. You can do several options on how you would want to display the information for your cart. If you need anything else we can help you with, don’t hesitate to open another thread.
Best Regards.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1173068 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
