Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #37971
    Kazim E
    Participant

    It it possible to center the header text on a page? If so how?

    #37972
    Kazim E
    Participant

    Link: http://www.eatforsurvival.com/

    Text I want to center/align is: Welcome to my Survival Guide Blog!

    #38084
    Alexander
    Keymaster

    Hi there,

    Sure you can do that with this CSS (Customizer > Custom > CSS)

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

    #39561
    Kazim E
    Participant

    Hi there – I put this code in the customizer and it didn’t center the header text. Is there somthing wrong with the code?
    .entry-title { text-align:center; }

    #39825
    Alexander
    Keymaster

    Hi Kazim,

    I checked, and I don’t see that the CSS was added at all. Can you please confirm that you added it under Customizer > Custom > CSS and saved the customizer?

    #39982
    Kazim E
    Participant

    Hi the code is in there now – please have a look

    #40065
    Support
    Member

    Hi there!

    Please use this instead:

    .entry-title {
    text-align: center !important;
    }

    Let us know if it works.

    #40211
    Kazim E
    Participant

    Hi this did not work…

    #40283
    Christian
    Moderator

    Hey Kazim,

    We didn’t see the code implemented. Maybe you placed it in the wrong area. Please give us access to your WordPress admin so we could check your setup.

    Thanks.

    #40563
    Kazim E
    Participant
    This reply has been marked as private.
    #40595
    Christian
    Moderator

    Hey Kazim,

    You missed a closing curly brace for the media query. The correct code is below.

    @media all and (max-width: 767px) {
    .x-container-fluid.offset {
    margin: 0 auto 40px auto;
    }
    }
    

    Hope that helps. 🙂

    #40895
    Kazim E
    Participant
    This reply has been marked as private.
    #41132
    Alexander
    Keymaster

    You can target by specific post IDs. For example:

    #post-194 .entry-title { text-align:center; }

    #41205
    Kazim E
    Participant

    So will this also translate for pages? The run-jog link I gave you is a portfolio page…
    Also I have my permalinks to postname – not Id’s – how do I find out the post ID?

    #41514
    Support
    Member

    Hi Kazim,

    The code for #post-194 only applies for the “Welcome to my Survival Guide Blog!” to be centered as you mentioned earlier. If you want to get the post ID, you can login to your wordpress and then find the page you want to target and edit the page. On the edit page, you can see the post ID of the current page/post on the URL of your browser.

    Let me know if that helps you.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-37971 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>