How to change the text width on my collection page banner?

Hi there,

I’m trying to change the width of the text on the collection page banner to full width. I tried various codes found on this forum, and nothing seemed to work. I use Stilletto theme. Here is a link: https://kiki-health.com/collections/collagen

Appreciate any help here

Thanks

1 Like

Hi @gina16

You can achieve this using this CSS

  • Go to Shopify Admin > Themes > Edit code
  • Search for base.css or theme.css
  • Past that CSS there and Save it
.collection-banner__text-container .collection-banner__text-container-inner { max-width: 100% !important; }

If This solution Works KIndly Like this and Mark it as a solution

Hi @gina16

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.collection-banner__text-container-inner {
    max-width: 100% !important; 
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Great, this worked thank you! It seems i was adding the code into Base.css, but it needed to be added to theme.css. It’s perfect. Thanks alot

Welcome, yes if you have this two fille need to try which one will work. Would you mind hitting ‘like’ as well? Thanks!