Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1251923
    newskywebsites
    Participant

    Hi there,

    I’ve found lots of “almost there” code to center all my blog page titles, but it’s not quite right. Can you help? I’ve used this:

    /* Center blog page title on page */
    .blog .x-landmark {
    width: 95% !important;
    padding-right: 0 !important;
    text-align: center !important;
    }

    And that centers the title on the main blog page: http://835.05d.myftpupload.com/tree-care-blog/

    BUT it’s not centered on individual post pages, category archive, or post archive by month. Sample urls:
    http://835.05d.myftpupload.com/tree-fertilizer-when-to-fertilize-trees/
    http://835.05d.myftpupload.com/category/arborist/
    http://835.05d.myftpupload.com/2016/09/

    Is there code that can center all instances of blog page titles? Latest version of everything… Renew child theme.

    Thank you!!
    Dawn

    #1252063
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You can use this code under Custom > CSS in the Customizer instead to center align titles:

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

    Thanks.

    #1253292
    newskywebsites
    Participant

    Sorry, that didn’t help. I tried adding it to the code above and also I tried replacing the code above with your new code and it didn’t change anything. I’ll send my login credentials in case that helps…

    Thanks,
    Dawn

    #1253294
    newskywebsites
    Participant
    This reply has been marked as private.
    #1253575
    Jade
    Moderator

    HI Dawn,

    Please try this code:

    .archive .h-landmark span, 
    .archive .entry-title.h-landmark span,
    .single-post .h-landmark span, 
    .single-post .entry-title.h-landmark span {
        display: block;
        text-align: center;
    }

    Hope this helps.

    #1253708
    newskywebsites
    Participant

    That did it! Thank you!!

    #1254037
    Jade
    Moderator

    You’re welcome.

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