Site logo

Archived topic

How can I center the title of the pages?

14 replies · Started by Javier on September 17, 2018

Viewing posts 1–15 of 15

Hello I would like to know that I have to modify so that the title of the pages are centered and not left as they are by default.
I just want to center the title of the pages, not the entries.
Thank you.

Hi there,

Try this CSS:

h1.entry-title {
	text-align: center;
}

It does not work, I have put it at the end of the style.css file and the title of the page keeps appearing on the left.

i made an edit to the code above. Can you retry.

hi, still not focused. Any other solution?

Can you share a link to the site? You can edit the original topic and use the Site URL field for privacy

Ok done, The Web is currently under construction and only has one half - built page

I just added that CSS to your site ( via the browser dev tools ) and it works. So can't see what the issue is?

Hello, it does not work for me. As you can see, I have the code placed in the geretatepress css file and the title of the page continues to the left ... I do not know why I do not fit in the center.

css
Title on the left

Is that the theme's CSS file? Definitely not good to edit or add anything in there as it will get erased during updates.

Use one of these methods instead: https://docs.generatepress.com/article/adding-css/

The code definitely should work but we are just not seeing it added.

Once you do let us have another look :)

It finally works! I did it as you indicate through the customizer.
Thank you very much.

No problem :)

how do you apply the "simple css" application to each post?

i have used multiple snippets and multiple code adjustments and cannot get the title to center stay left alinged out of the primary container. i am using simple CSS. advice?

Can you open a new topic and link us to the page in question?

Thanks.

This archived topic is closed to new replies.