We're merging with GenerateBlocks! Learn more here.

[Support request] Move Date Above Title and add time

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Move Date Above Title and add time

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36742
    Michelle
    Participant

    I want the date and time above the title of my post. I want to be able to add padding, and adjust the size and weight as well. Here is what I’ve tried, taken from this forum, but it isn’t working.

    /*Move Date Above Title*/
    add_action( ‘after_setup_theme’,’date_above_title’ );
    function date_above_title() {
    remove_action( ‘wpsp_after_title’,’wpsp_add_post_meta_after_title’ );
    add_action( ‘wpsp_before_header’,’wpsp_add_post_meta_after_title’ );
    }

    https://www.thedailyreach.com

    #36745
    Fernando
    Participant

    Hi Michelle,

    If you have a setup like this where the date location is set to below title, you may add this custom CSS to implement the changes you wish:

    header.wp-show-posts-entry-header {
        display:flex;
        flex-direction:column-reverse;
    }
    
    header.wp-show-posts-entry-header .wp-show-posts-meta a{
        font-size:50px;
        font-weight:900
    }
    
    header.wp-show-posts-entry-header .wp-show-posts-entry-meta {
        padding: 50px 0px;
    }

    Kindly replace the font-size, font-weight and padding values to your preference.

    Here is an article with regards to adding CSS: https://docs.generatepress.com/article/adding-css/#additional-css

    Adding it through additional CSS should work.

    Hope this helps!

    #36825
    Michelle
    Participant

    This certainly helped! Thank you! I could use a bit more help moving the author meta after the date instead of before it though. I didn’t know it would do that.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.