WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Buttercream - Center a page title (6 posts)

  1. thephilwells
    Member
    Posted 1 year ago #

    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!

  2. Max
    Member
    Posted 1 year ago #

    You just need this in your css:

    .entry-header {
       text-align: center;
    }
  3. thephilwells
    Member
    Posted 1 year ago #

    Does it matter where in the CSS?

  4. thephilwells
    Member
    Posted 1 year ago #

    Hey, it worked! Thanks a bunch!

    This is resolved.

  5. thephilwells
    Member
    Posted 1 year ago #

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

  6. Max
    Member
    Posted 1 year ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic