How to specify CSS selectors well enough to override template

Solved

How to specify CSS selectors well enough to override template

SproutTherapy
Shopify Partner
42 0 6

I am trying to override the font-size set in the theme editor in my third-party theme. The Shopify theme editor setting goes up to 160px only—I would like my text to be huge.

 

I can't seem to specify the selector (in my custom CSS) well enough to override the theme.

 

Here is my preview link. I would like to style "More Goodness" (and the subtext) on the banner/hero image.

Accepted Solution (1)

dexter845
Shopify Partner
13 3 2

This is an accepted solution.

In your liquid file (For Heading) :
[data-wetheme-section-id="{{ section.id }}"] .content-wrapper--text_static h1 {
      font-size: 200px !important;
}

This will look something like this in your markup:

[data-wetheme-section-id="template--16842095952038__af3e824e-6ca9-4ac4-9510-a07cb14e4a66"] .content-wrapper--text_static h1 {
           font-size: 200px !important;
}


In your liquid file (For subtext) :

[data-wetheme-section-id="{{ section.id }}"] .content-wrapper--text_static h4 {
      font-size: 120px !important;
}


dexter845_0-1723765797681.png

 

View solution in original post

Replies 2 (2)

dexter845
Shopify Partner
13 3 2

This is an accepted solution.

In your liquid file (For Heading) :
[data-wetheme-section-id="{{ section.id }}"] .content-wrapper--text_static h1 {
      font-size: 200px !important;
}

This will look something like this in your markup:

[data-wetheme-section-id="template--16842095952038__af3e824e-6ca9-4ac4-9510-a07cb14e4a66"] .content-wrapper--text_static h1 {
           font-size: 200px !important;
}


In your liquid file (For subtext) :

[data-wetheme-section-id="{{ section.id }}"] .content-wrapper--text_static h4 {
      font-size: 120px !important;
}


dexter845_0-1723765797681.png

 

SproutTherapy
Shopify Partner
42 0 6

Thank you! Worked like a charm.