Tagged: x
-
AuthorPosts
-
January 18, 2017 at 3:37 pm #1335694
AquorParticipantHello,
Thank you for including the ubermenu and superfly options. Both look great.
I am trying to integrate ubermenu into my site but having troubles.
1) The navigation bar now seems to be cutting off the top of pages: https://www.aquorwatersystems.com/where-to-buy/
2) The navbar cart does not appear until page refreshed. It appears below the menu rather than inline (attached screenshot).
3) Is it possible to make the “topbar” stretch full width across page? When I activate and add a background color, it only goes page width.
Appreciate any help!
January 18, 2017 at 9:54 pm #1336157
LelyModeratorHello There,
Thank you for the URL.
1.) Please go to Appearance > Customize > Header >Navbar Top Height (px): Set this at least to 602.) I can’t see the cart in the navbar as of the moment. Did you disable it? If not, please do give us admin credentials on a private reply so we can check your settings.
3.)Yes. Please activate it and then give us screenshot of what you want to achieve to help you better.
Cheers!
January 19, 2017 at 4:16 pm #1337376
AquorParticipantThis reply has been marked as private.January 19, 2017 at 7:57 pm #1337702
Rue NelModeratorHello There,
Thanks for updating in! To resolve the cart menu issue, you will need to update your custom menu code. You can make use of this code instead:
// Add cart menu to the primary and woocommerce custom menu // ============================================================================= 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' && WC()->cart->cart_contents_count > 0 || $args->theme_location == 'woocommerce' && WC()->cart->cart_contents_count > 0 ) { if ( ! class_exists( 'UberMenu' ) ) { $items .= '<li class="menu-item current-menu-parent 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 current-menu-parent x-menu-item x-menu-item-woocommerce">' . '<a href="' . x_get_cart_link() . '" class="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 ); // =============================================================================We would loved to know if this has work for you. Thank you.
January 24, 2017 at 11:55 pm #1344275
AquorParticipantHi, thanks for the reply.
I added the code above and it did align the cart to the right, but the styling and position are still off. I can’t seem to adjust the styling from the customizer either. I removed the alternate menu setting from my functions and that also didn’t help.
Screenshot attached.
Also, what is the easiest way to make my header logo have a hyperlink? For some reason ubermenu disabled that. Thank you.
January 25, 2017 at 6:33 am #1344586
Paul RModeratorHi,
To fix the alignment and logo link, you can add this under Custom > Edit Global CSS in the Customizer.
a.x-brand.img { position: relative; z-index:99999; } .x-menu-item.x-menu-item-woocommerce { float: right; line-height: 49px; font-size: 15px; font-weight: bold; }Hope that helps.
January 25, 2017 at 6:28 pm #1345494
AquorParticipantThis fixed both issues. Thanks for the help!
January 25, 2017 at 11:04 pm #1345843
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1335694 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
