WordPress.org

Support

Support » Themes and Templates » [Resolved] Buttercream – Center a page title

[Resolved] Buttercream – Center a page title

  • Deep in my heart I believe this must have already been asked somewhere but for the life of me I could not find it.

    Site is http://www.thephilwells.com – not much to it. Theme is Buttercream.

    I just want to know where to paste “text-align:center;” so the page title (“Links”) will be centered.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You just need this in your css:

    .entry-header {
       text-align: center;
    }

    Does it matter where in the CSS?

    Hey, it worked! Thanks a bunch!

    This is resolved.

    Oh, for the record, I put the code above into style.css in the /* Text Elements */ section, just before /* Links */

    It does not matter where you put it, unless you also have another .entry-header selector somewhere else that also sets text-align: something – that may override it.

    I have a system I use for CSS in sites I develop — I sort it as follows

    • Reset Styles (if I use them, I am currently off using them)
    • layout styles
    • typography (which includes lists and so on)
    • Colors
    • utility styles (here I stick stuff wordpress needs (align-left/right/center and friends) as well as any utility styles (.clear) and so on that I use

    That way I can quickly find where to look in my sheet, you of course may find something else works best for you…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Buttercream – Center a page title’ is closed to new replies.
Skip to toolbar