Hi I added a custom code for a view counter but I need it centered as everything else is centered. Can someone possibly help id be so grateful. Store: https://studio-seductress.com/
Topic summary
A user added custom code for a product page view counter but needs help centering it to match their site’s centered layout.
Initial Solution Provided:
- Add CSS to
assets/base.csstargeting.live_visitorsclass - Code includes
justify-content: centerand adjustments to the::beforepseudo-element positioning - Also centers
.product-form__buttonsusingmargin: 0 auto
Current Status:
The proposed CSS solution did not work when implemented. The helper requested a screenshot to verify where the code was added and subsequently suggested placing the CSS at the top of base.css instead of at the end.
Issue remains unresolved - awaiting confirmation of proper code placement and further troubleshooting.
Hello @studioseductres
Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.
.live_visitors.no-js-hidden {
justify-content: center;
}
.live_visitors::before{
left:22%
}
.product-form__buttons {
margin: 0 auto;
}
Hi unfortunately this didnt work
Hello @studioseductres
Where did you add the CSS? Can you send me a screenshot?
Hello @studioseductres
Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the top of the file.

