Archived topic
Header title and tagline have moved to the left on home page(should be centered)
11 replies · Started by Alana on June 6, 2019
Hi,
I started working on my home page and noticed that the header title and tagline suddenly shifted to the left (instead of staying centered as they were set originally). Please help me fix this. Btw, I checked the setting on the customize view and nothing changed there so this is puzzling.
Thank you!
Alana
Hi there,
can you flush the Siteground optimizer cache, if that doesn't work then flush it again and disable it. If that resolves the issue then personally i would remove the plugin and use something like Autoptimize instead, we provide some tips on its setup here:
Hey David, how would I go about doing that?
Also, I don't think that's the issue since I've been running SG Optimizer this whole time without problems and the other pages aren't affected. It was only when I started editing the home page that I ran into issues with the header / tagline.
So the code is showing that it should be centered:
https://www.screencast.com/t/LOCDW8i1KdL
And as you said it used to work so something else is causing a conflict.
I agree with David that it might be the caching issue. You can check with their support to see how to disable the SG Optimizer.
If not you will need to go through #1 here:
https://docs.generatepress.com/article/debugging-tips/
Let me know :)
Hey Leo, I've cleared the cache (issue persists). There's no issue on the category pages. One other difference that I made before noticing this problem was that I added a tagline. Is there a reason why this might cause a formatting problem for the homepage header title / tagline?
Thanks for the help Leo and David!
Tagline definitely shouldn't cause this issue.
Definitely weird that it's working on the category pages - but that also shows GP isn't the problem as the code is exactly the same.
You will need to go through the debugging tips as I suggested above unfortunately.
Also, I've noticed this code difference between the homepage (with the issue) and my other pages/categories (with no issue): in the problematic page "text-align: center" is crossed out
I've tried disabling the SG Optimizer plug-in to see if it is causing an issue and it did not resolve this.
I see the issue now.
Did you add this CSS to that specific page?
p {
text-align: justify;
}
Looks like it's in the SimpleCSS metabox maybe?
Hey Leo, I did! I was trying to justify just the block text on that page. How should I fix this issue? And get it so that the block text is justified
Maybe try:
.entry-content p {
text-align: justify;
}
Thank you so much Leo!!! All is right with the world :)
Have a great weekend!
No problem.
You as well :)