Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi, this is the current code I have to move my related collection, which is on every product page, as shown below. This is just for mobile. I want to move the out-of-stock and sales badges higher, but when I try to increase the height, it cuts off. My website is takeoverapparel.com, and the password is takeover.
Code in base.css
@takeoverapparel On desktop when I try similar code the badges are not obscured by any other elements.
On mobile add some top margin to the containing card or to the section, e.g.:
#Slide-template--18239906578584__featured_collection_LTLQ7U-2 { margin-top: 25px; }
Unless your giving each section it's own custom properties you should try deduplicating the code and moving this into a theme level custom css.
Use an attribute selector with the section id's prefix #Slider-template- etc etc to not have to hardcode specific ids that can break when you make future changes to section content.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
that didnt work also this is only for mobile that why it doesn't show on desktop
Hey @takeoverapparel,
I can see the selection of the classes are not the correct. You are selecting the css with the section ID that cannot be effect anymore when you make the theme Draft or somehow to make it live again. Because the section ID's change everytime.
Could you grant me access of the store so that I can make the correct selection of the classes.
Thanks