WordPress.org

Ready to get started?Download WordPress

Forums

Pilcrow
[resolved] Cannot center text on top of page (5 posts)

  1. Terry
    Member
    Posted 5 months ago #

    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;
    }

  2. Wolfs bRain
    Member
    Posted 5 months ago #

    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 @(^_^)@

  3. Terry
    Member
    Posted 5 months ago #

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

    Terry

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

  5. Wolfs bRain
    Member
    Posted 5 months ago #

    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 @(*_*)@

Reply

You must log in to post.

About this Theme

About this Topic