Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello! We are attempting to expand our products across our home page so there is less white space on either side. We are currently using the Envy theme. There is some kind of restrictor in the code that is preventing us from doing this like on other sites that we've seen. Can anyone help us with this or does anyone have any insight?
I've included the image below as an example of what we'd like it to look like. Thanks!
Solved! Go to the solution
This is an accepted solution.
Hello @xraeart,
My bad. Please paste the below code instead.
{% if template == 'index' %}
<style>
.homepage-section--featured-products-wrapper .container{
max-width: 100%!important;
}
</style>
{% endif %}
It should be .(dot) instead of #.
Regards,
Store Watchers Support Team
Hello @Xraeart
{% if template == 'index' %}
<style>
#homepage-section--featured-products-wrapper .container{
max-width: 100%!important;
}
</style>
{% endif %}
Regards,
Store Watchers Support Team
Hello and thank you for the help! I've copied and pasted the code before the </head> tag and also the <head> tag and it doesn't seem to affect the home page at all when I refresh the page. I also tried putting the code in-between both head tags but that doesn't seem to do anything either.
This is an accepted solution.
Hello @xraeart,
My bad. Please paste the below code instead.
{% if template == 'index' %}
<style>
.homepage-section--featured-products-wrapper .container{
max-width: 100%!important;
}
</style>
{% endif %}
It should be .(dot) instead of #.
Regards,
Store Watchers Support Team
Thank you so much, it looks amazing! 🙂
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025