Center Page headings but not Blog Post Headings…

  • Author
    Posts
  • #1121027

    morihata
    Member

    Hi All,

    I want to make some changes to my site so that the H1 Headings of my Pages are centered, but the headings of the posts on my blog are Left Aligned.

    So, on this page (my blog page) I would like for the headings to be left aligned, as they are now. http://morihata.wordpress.com/news/

    But—on this page, and every other page on my site besides my blog page, I would like for the headings to be centered. http://morihata.wordpress.com/products/chikuno-cube/

    The only way I can think to center the headings is

    .wf-active h1 {
    	text-align: center;
    }

    but that also centers the headings on the blog posts… Any ideas on how to differentiate these two?

    Thanks!

    The blog I need help with is morihata.wordpress.com.

    #1121113

    morihata
    Member

    For anyone looking for the same information… I managed to figure it out!

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

    The .type-page and .type-post classes allow you to differentiate between blog post headings and page headings!

The topic ‘Center Page headings but not Blog Post Headings…’ is closed to new replies.