• Resolved gordonht

    (@gordonht)


    I know this has come up before, but I haven’t been able to make any suggestion work.

    I’m trying to centre my site title, in the Raindrops theme, the default of which is left aligned.

    What line(s) of code should I be changing, and in which file?

    My embryonic site is gordontucker.org

    Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Does that theme come with a section in the dashboard named, “Custom CSS”, “Custom Styles” or “Jetpack”?

    Thread Starter gordonht

    (@gordonht)

    There is no section in the dashboard referring to Custom CSS, Custom Styles or Jetpack.

    I had a look at the style.css, but there’s nowhere obvious in there relating to the aligment of the site title.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Download and install this Custom CSS Manager and within the section of the dashboard allocated by that plugin, enter this;

    h2 {
     text-align: center;
    }

    https://www.w3.org/Style/Examples/007/center.en.html

    Thread Starter gordonht

    (@gordonht)

    Installed the Custom CSS Manage and entered the lines of code. This did not centre the site title, but did centre the page titles. Could that be because they use h2, whereas the site title uses h1? Should I try this replacing h2 with h1? And if so, how do I get my page titles back to left aligned?

    By the way, thanks for being both helpful and patient!!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which title do you want aligned?

    Thread Starter gordonht

    (@gordonht)

    The title of my site, i.e. SENEX MOROSUS BRISTOLIENSIS at my site gordontucker.org

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try this CSS instead;

    #hd {
     text-align: center;
    }

    Thread Starter gordonht

    (@gordonht)

    Thank you, Andrew. That has done the trick. The site title is now centred!

    I also deleted the original h2 {
    text-align: center;
    }

    and the page header titles have also returned to where they were before

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Raindrops – Centring Site Title’ is closed to new replies.