Centering text on page
-
I am trying to center the text on my pages. Specifically if you go to my “Galleries” page the word ” Galleries is to the left. I can remove the entire word but then the page is listed as untitled in my pages/dashboard menu. Anyone?
The blog I need help with is: (visible only to logged in users)
-
Hi there,
How the text is aligned is determined by your theme, so changing this requires modifying your theme.
In this case it’s a fairly simple CSS modification – go to Appearance ->Customize in the dashboard and add this under Additional CSS:
/* Center page titles */ header.entry-header .page-title { width: 100%; display: inline-block; text-align: center; }That should take care of all page titles across your site.
For more complex changes, please contact support for your theme directly – as we didn’t make the Poseidon theme you’re using, our ability to help with this specific theme is limited:
Also note that your plan gives you access to both live chat and direct email support. You can reach those at any time by clicking the Help icon that appears bottom-right on all the My Sites pages, or else via the direct link at https://wordpress.com/help/contact
-
-
While that did exactly what I wanted it to do . By chance do you know the code to do the same thing on my “posts”?
-
Hi there,
To do that you can modify the code that @kokkkieh gave. So delete the one you added and replace with this one instead
/* Center page and post titles */ header.entry-header .page-title, header.entry-header .entry-title{ width: 100%; display: inline-block; text-align: center; }Hope that helps. Please let us know if you have any more questions.
-
- The topic ‘Centering text on page’ is closed to new replies.