Center titles on all my pages in twenty ten

  • Author
    Posts
  • #832285

    sanampej
    Member

    I’m in the process of building my site. I’ve figured out how to center the title in CSS for my first page; however, I can’t figure out how to do it for subsequent pages. Can anyone help me? I’m new to this process and my website is very much a work-in-progress. Thank you.

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

    #832397

    timethief
    Member

    Your username is not linked to any blog. Please note that we Volunteers cannot assist any blogger who does not provide an active link starting with http:// to the blog, post or page in question. Please do that now so when Staff who provide support for CSS editing enter this thread they can instantly locate the blog in question.

    #832400

    timethief
    Member
    #832405

    sanampej
    Member

    Sorry about that–like I said, I’m so new to this I didn’t realize…

    Hopefully this helps:
    http://playtoheal.wordpress.com/

    Thank you. I’ll check out the string you recommended now.

    #832408

    timethief
    Member

    You’re welcome.

    #832412

    sanampej
    Member

    Neither of those strings seemed to be exactly what I”m looking for. Just centering the Titles (Headlines, maybe they’re called) of each of my pages.

    I did:

    h1 {
    text-align: center;
    }

    which worked for the home page, but I’m not sure how to do it for the other pages.

    #832415

    timethief
    Member

    I’m sorry but Staff provide suppot for CSS editing and you will have to wait until they get to this thread and assist you with your CSS editing.

    #832633

    Looks like titles are setup in h1 on some pages and h2 on others, but all of them use a class of “entry-title” and so you can use that instead. The following CSS will center titles on both posts and pages in the Twenty Ten theme inside the page content area:

    #content .entry-title {
      text-align: center;
    }
    #832637

    sanampej
    Member

    Thank you so much. That worked beautifully.

    #832638

    Cheers :)

    #832639

    ludusnaturae
    Member

    Hi
    Is there a way to center the blog title on the header in Twenty Ten?
    There is a question about this in pt.forum:
    http://pt.forums.wordpress.com/topic/twenty-ten-central-titulo-de-blog?replies=1
    How/where can I center blog title?

    #832648

    To center both the blog title and the tagline in the Twenty Ten theme, use this CSS:

    #site-title, #site-description {
    float: none;
    width: 940px;
    text-align: center;
    }
    #832651

    ludusnaturae
    Member

    Obrigado, thank you!

    #832652

    timethief
    Member

    ~~ludusnaturae
    Espero que esteja bem e feliz. :)

The topic ‘Center titles on all my pages in twenty ten’ is closed to new replies.