Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Site: https://u9a0gjwtkkrv74cb-59737833631.shopifypreview.com
My link lists for my menu are too long and I'd like to break it up into two or three columns under the single headers, "Fabric" and "Colors". I'm using the Broadcast theme. Apps don't seem helpful for this customization.
I tried to use the following in theme.liquid but it didn't work.
<script>
var maxRows = 6;
$('.site-nav ul.site-nav__dropdown-f6c27efeea36e69852a48e57e2d29ded').each( function() {
var totalRows = $(this).grandchildren('li').length;
var columns = Math.ceil(totalRows/maxRows).toString();
$(this).css({
"-webkit-column-count": 3,
"-moz-column-count": 3,
"column-count": 3,
});
});
</script>
Any suggestions?
An example of what I want is nuagedesigns.com. Hover over "Linens and tabletop" and see the two columns under "Browse by Collection"
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024