Finding the right CSS class

NgocLe1
Excursionist
66 0 2

Hi! Can anybody please tell me why when I copy the exact css class from the inspect window and try to find it in the shopify source code, but I can't find it even though I am using the search plug-in? Is there a chance that some classes that appear in the inspect window are different with the ones from shopify source code?

Replies 2 (2)

TR_Page
Shopify Expert
15 1 3

As far as if there is a chance where some classes will appear in the inspect window (what gets rendered to the page) and not available in source code, yes. This happens for a variety of reasons in Shopify. The first, in themes, is if we're using Liquid variables (Liquid is the templating language used on Shopify storefronts) in class names or IDs OR potentially in some instances these are injected by a theme.

 

It really depends on your use-case and what you're trying to do. Including a specific example (screenshots or references to theme and version) along with what you're trying to accomplish will often help give you a best answer.

Freelance Web Developer + Shopify Expert
NgocLe1
Excursionist
66 0 2

Screenshot 2024-04-17 233500.png

Can you please help me move the add to cart button and the product price to the bottom of the product image like in the picture? Thank you!

Link: https://2cb7cc-ab.myshopify.com/products/indoor-exercise-trampoline

Pass: testpage