Support » Theme: Pilcrow » Cannot center text on top of page

  • Resolved Terry

    (@tjhoyt)


    I have not been able to center the text at the top of my page on this site:

    http://www.backtothecave.org

    Kathryn has told me that she does not see this code (see below) in my css CUSTOM module. When I look at the “css style sheet”, I do see it there. I am not sure what the “CUSTOM” model is. I don’t see this in the “editor”. This is the code she says that is needed. I also attempted to put it in the the “header” code. No change. Text is still justified right.

    Thank you!

    #site-title {
    text-align: center;
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi terry,
    I took a look at your site and found that you have it as

    #site-title {
    text-align: right;
    }

    The code that Kathryn gave you is correct. I input it to try it out and it worked. If it doesn’t Work still there are a couple options. One is to type in this code instead.

    #site-title {
    text-align: center !important;
    }

    The other option is to try to change the css through a child theme. Here is a link that explains step by step how to create one.

    https://codex.wordpress.org/Child_Themes

    Hope this helps. Anything else feel free to ask.

    Wolfy and Brain @(^_^)@

    Thread Starter Terry

    (@tjhoyt)

    I found it – in the style sheet. Thanks very much!

    Terry

    Moderator Kathryn Presner

    (@zoonini)

    Glad you found the code. It looks like you’ve edited the style.css file directly. Just a heads-up that your change will be overwritten and lost if you update the theme when a new version comes out.

    In order to not lose your changes, it’s strongly recommended that you not edit the theme’s stylesheet directly, but instead place your CSS overrides either in a child theme (as mentioned above) or using a custom CSS plugin.

    An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    As alternatives, you could either install a standalone custom CSS plugin, or create a child theme.

    Glad it helped terry. But like Kathryn mentioned just make sure the changes wont be changed with your parent themes update. Other than that enjoy!

    Contact me anytime if you need any help. I’m always available.

    Wolfy and Brain @(*_*)@

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot center text on top of page’ is closed to new replies.