CSS to Center Page Title Not Working Correctly


#1

Hello There!

I’m currently working on a site using Sydney. I would like to center the page titles on some pages. I found this useful thread.

I followed the instructions, changing the page numbers in the CSS to match the page numbers on my site. One of the pages worked perfectly, the title is centered. But on another page it only half worked. The title moved to the right, but it is not yet centered. Do you have any idea why?

Here is a link to the page that is not centered.

Thanks in advance!

Travis


#2

Hi Again,

I actually solved it on my. I needed to change the page template to “Full Width”

Cheers!

Travis


#3

Hello again,

I’ve decided that I want to center the page title on every page. Is there an easy CSS code to do this so that I don’t have to do it every single page?

Thanks,

Travis


#4

Hello Travis,

Try adding this extra custom CSS code:

    .page .entry-header .title-post {
      text-align: center;
    } 

Regards,
Kharis


#5

That worked perfectly, thanks!

Travis


#6

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis