Center Post Text

  • Author
    Posts
  • #2860252

    d73kf8
    Member

    I’m using the Argent theme. On my posts, the date/author/category/tag are listed below the feature image and to the left of the text. This pushes the text to the right, so the text for the posts are no longer in the middle of the page. Is there CSS code to either prevent the date/author/category/tag from displaying or move it above the text, directly under the feature image, so that the text will be centered? Thanks for the help!

    The blog I need help with is declassifieddollar.com.

    #2860361

    chad1008
    Staff

    Hi @declassifieddollar!

    You should be able to use the following CSS to move that info to the top of the post, and let the post take up the full, centered space below the featured image:

    .single:not(.single-jetpack-portfolio) .entry-meta {
        width: 100%;
    }
    
    .single .entry-content {
       width: auto;
       clear: both;
    }
    
    .single .entry-meta .posted-on, .single .entry-meta .byline, .single:not(.single-jetpack-portfolio) .cat-links, .single:not(.single-jetpack-portfolio) .tags-links, .single .post-edit-link {
        display: block;
        margin-right: 10px;
        float: left;
    }
    
    .single:not(.single-jetpack-portfolio) .cat-links, .single .post-edit-link {
        clear: both;
    }

    Give it a try and let me know what you think!

    #2860451

    d73kf8
    Member

    That worked perfectly. Thanks!

    #2860460

    chad1008
    Staff

    You’re welcome!

The topic ‘Center Post Text’ is closed to new replies.