How do I find out wehre a class is defined?

How do I find out wehre a class is defined?

Frede
Excursionist
50 0 7

Hello! In my footer.liquid the class "copyright__content" is used. I would like to change the style of this class (e.g. change font color or size). However, in the footer.liquid this class is not defined. Thus, it must be defined in another code sheet. Where do I find the definition of this specific class and how do I generally find the definition of the classes (or are they all defined in one single code sheet that I have not find yet)?

Thanks!

Replies 16 (16)

suyash1
Shopify Partner
10952 1357 1733

@Frede  - if you are looking for a css then please check,


Shopify Admin -> Online Store ->Theme -> Edit code -> base.css/theme.css/styles.css

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Frede
Excursionist
50 0 7

Thanks for the superfast reply! However, in the file base.css the class copyright__content is not defined (a search for "copyright__content" resulted in 0 hits) and the other two css-files (theme.css and styles.css) are not existing. But the copyright__content must be defined somewhere! How can I find the definition of this class?

 

Btw, I'm unsing Dawn Theme...

 

Thanks!

suyash1
Shopify Partner
10952 1357 1733

@Frede did you check footer.liquid file?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Frede
Excursionist
50 0 7

Yes, in the footer.liquid file the class copyright__content is used but it do not contain the definition of this class.

suyash1
Shopify Partner
10952 1357 1733

@Frede - it is just a css class, what do you mean by definition?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Frede
Excursionist
50 0 7

This is for example the definition of the CSS class "text-body" and comes from the base.css-file:

 

.text-body {
font-size: 1.5rem;
letter-spacing: 0.06rem;
line-height: calc(1 + 0.8 / var(--font-body-scale));
font-family: var(--font-body-family);
font-style: var(--font-body-style);
font-weight: var(--font-body-weight);
}

 

I'm looking for the place where the class copyright__content is defined.

suyash1
Shopify Partner
10952 1357 1733

@Frede can you accept me as collab? I can check it into your theme

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Frede
Excursionist
50 0 7

Sure, my guest code is 9040

suyash1
Shopify Partner
10952 1357 1733

@Frede website link?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Frede
Excursionist
50 0 7

my-eloo.de

suyash1
Shopify Partner
10952 1357 1733

@Frede sent the request

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Frede
Excursionist
50 0 7

Thank you! I have confirmed your request.

suyash1
Shopify Partner
10952 1357 1733

@Frede please check your DM

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Frede
Excursionist
50 0 7

Thank you sooo much!!!

 

It's defined in the section-footer.css

suyash1
Shopify Partner
10952 1357 1733

@Frede - do let me know if you have any more updates

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.

tim
Shopify Partner
4455 530 1629

Screenshot 2025-04-22 at 2.11.40 PM.png

 

In modern theme there is usually no single stylesheet, CSS rules are stored in several smaller .css files to be  loaded as needed.

 

You can easily see where rules related to particular element are by using "Inspect element" in your browser, like in the screenshot above.

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com