I’m using the Fabric theme for my website. I have an announcement bar added to my header. But the text moves to the left on all of my pages.
Whenever I click on the page, the text moves.
Or you could search the css file for that class heading and add the line there. I’m not sure what is pushing the text to the side on the other pages, that would have to be looked at in the code.
Looks like you have multiple apps installed. Essential announcement bar is installed but not configured. I would fix whatever conflict is going on, but you can put a global css rule to try to override whatever is going on. You can put this at the bottom of base.css
This happens because the announcement bar text is centered by default, but once the slide changes (on click or auto-rotate), the theme re-applies alignment styles that push it to the left instead.
Easiest fix, no coding required:
Go to Online Store > Themes > Customize.
Click on the Announcement bar section.
Scroll down to the Custom CSS box (most Fabric theme sections have one).
Paste this in:
.announcement-bar__text {
text-align: center !important;
}
Save.
This forces the text to stay centered no matter which slide is showing. If your theme’s Custom CSS field doesn’t apply this class, you can also try:
.announcement-bar__slides {
text-align: center !important;
}
Give the page a hard refresh (Ctrl/Cmd + Shift + R) after saving so the CSS isn’t cached. That should stop the shifting for good.
I checked it, but it’s still appearing in the center, and the footer menu is also working properly. Could you please tell me exactly where you’re seeing the issue?
I have checked for other apps and the only one I have installed is Attrac that also offers announcement bars. But I do need this app for other campaigns. However I used Ploqo’s solution and it worked. Thank you very much!!