Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1370998

    On my dev site one of my programmers made the hamburger menu smaller so it didn’t cut into my log. See links in the bottom.

    Any help on how to do this would be great!

    Current site:
    galaxypress.com
    When looking on mobile you will see the logo is cut into with the search icon.

    On the dev site it looks fine. (link in private section) I thought this was in the CSS, but don’t see any code in the quick or regular CSS, so maybe there is some other place for this?

    #1371047

    Hey Jason,
    It looks like you are using the option:
    Enfold Theme Options ▸ Main Menu ▸ Burger/Mobile Menu ▸ Menu Icon Style ▸ Small
    2022-11-02_001.png

    Best regards,
    Mike

    #1371120

    Thank you so much! Perfect, this fixed it and looks correct now.

    On that note is there a second hamburger menu that can go on the shop page to see the sorting options? Currently when you go to the shop page you the sidebar filters don’t show so on a mobile phone it is a bit hard to sort and search in the shop.

    https://galaxypress.com/shop/

    Best, Jason

    #1371129

    Hi,
    I don’t have a solution to add another burger menu that adds the sidebar elements, but you can add this css to show the sidebar elements below the content on mobile:

    @media only screen and (max-width: 767px) {
    	.responsive #top.woocommerce-shop #main .sidebar {
        display: block;
        float: left;
        padding: 0;
    	}
    	.responsive #top.woocommerce-shop #main .sidebar .inner_sidebar {
        margin-left: 0;
    	}
    	.responsive #top.woocommerce-shop .container .av-content-small {
    	margin-bottom: 0;
    	padding-bottom: 0;
    	}
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1371154

    Thank you so much for this CSS. This could help a lot.
    What about putting it at the top of the shop for mobile? What do you think about that?
    Any other ideas to make the shop better on mobile?

    #1371158

    Hi,
    I could probably write some javascript to move it to the top, but it’s kind of large on mobile and would make your users swipe a couple of times before they see your products, are you sure you want that?

    Best regards,
    Mike

    #1371263

    Dear Mike,

    Thanks so much for your willingness to help. I see what you mean about this being at the top. I think at he bottom is best. The only thing that would be nice to be at the top is the product search widget. The current search at the top searches the whole website.

    For now I think I am set. Maybe there are plans in the future to upgrade the shop mobile layout?

    #1371286

    Hi,
    To have the sidebar search bar at the top of the shop on mobile try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function mobile_shop_search_on_top() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($){
    	var width = $(window).width()
      $('#top.woocommerce-shop').each(function() {
      	if ($(window).width() < 768) {
      	$('#aws_widget-2').insertBefore('.template-shop.content ').css({'padding-bottom' : '0'});
      	} else {}
    });
    })(jQuery);
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'mobile_shop_search_on_top');

    This will work will or without the precious css, please see the screenshot in the Private Content area of the expected results.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.