Shopify themes, liquid, logos, and UX
Hello,
I have a question about class IDs. Are they changing automatically? I noticed that my website has lost some of its CSS, and it seems that some classes have updated on their own.
For example, today I noticed a class like this changed: Option-quickadd-template--22236008317256__main-0
Is it not a good practice to use this kind of class to target elements?
Thanks in advance for your reply.
Best regards,
Adrian
Solved! Go to the solution
This is an accepted solution.
Hi @adkowaty.,
Since dynamic class IDs can change, I recommend adding a common class to the elements you want to target. This will ensure consistent styling. Once added, you can create your styles based on that new class rather than relying on dynamically generated ones.
Let me know if you need further assistance!
Regards,
Sweans
This is an accepted solution.
Hi @adkowaty.,
Since dynamic class IDs can change, I recommend adding a common class to the elements you want to target. This will ensure consistent styling. Once added, you can create your styles based on that new class rather than relying on dynamically generated ones.
Let me know if you need further assistance!
Regards,
Sweans
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025