[Resolved] Single post meta customization

Home Forums Support [Resolved] Single post meta customization

Home Forums Support Single post meta customization

  • This topic has 9 replies, 3 voices, and was last updated 5 years ago by Tom.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #858836
    D

    In customize > layout > blog > single, I have all of the content boxes checked, yet only name and date are showing at the top under title. How do I get other things to show?

    For Archives, I unchecked all content except post title and featured image. The archive pages are affected by toggling boxes, but not single posts.

    And how can I get last modified date to show next to published date? I tried following this https://docs.generatepress.com/article/show-the-updated-post-date/ but ended up breaking the site when using the header element.

    #858858
    Tom
    Lead Developer
    Lead Developer

    The other meta items display under the post. It will be easier to move those up to the top of the post in GP 2.3.

    That documentation article should work, just make sure you add the CSS using one of these methods: https://docs.generatepress.com/article/adding-css/

    #860041
    D

    I am having trouble getting the last modified date to display. Can you help with this aspect?

    I regenerated all thumbnails with Regenerate Thumbnails Advanced by ShortPixel and am using WP Last Modified Info by Sayan Datta.

    Thanks!

    #860256
    David
    Staff
    Customer Support

    Hi there,

    add this CSS:

    .posted-on .updated.updated {
        display: inline;
    }
    .posted-on .published {
        display: none;
    }
    #860724
    D

    That helped a little bit, thank you. But, I should have clarified more.

    The end result I’m looking for is something like:

    Published on: DATE – Last updated: DATE

    #860734
    David
    Staff
    Customer Support

    Try this CSS instead:

    .single-post .entry-meta .posted-on a {
        display: inline-flex;
    }
    .single-post .posted-on .updated {
        order: 2;
    }
    .single-post .posted-on .published, 
    .single-post .posted-on .updated {
        display: inline;
    }
    .single-post .posted-on .updated:before {
        content: '\00a0 Last updated: '
    }
    .single-post .posted-on .published:before {
        content: ' Published on: ';
    }
    #863097
    D

    This is so close to working! I realized the customizer CSS editor is deleting CSS options which include selector codes and code with brackets like .navigation-search input[type=”search”] – do you have a method which will allow me to save the css changes you suggested outside of the customizer?

    #863374
    Tom
    Lead Developer
    Lead Developer

    You can try our Simple CSS plugin: https://wordpress.org/plugins/simple-css/

    You can find other methods here: https://docs.generatepress.com/article/adding-css/

    #863432
    D

    The Simple CSS plugin worked perfectly and the CSS you provided is exactly what I needed. Thanks ๐Ÿ™‚

    #864192
    Tom
    Lead Developer
    Lead Developer

    Glad we could help! ๐Ÿ™‚

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