Site logo

[Resolved] Category and tag below the title but only on single post not on the archive

Home Forums Support [Resolved] Category and tag below the title but only on single post not on the archive

Home Forums Support Category and tag below the title but only on single post not on the archive

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #2544545
    jmarc

    Hello
    As Ying asked me, I open a new topic.
    I would like category and tag below the title but only on single post not on the archive(homepage). On the homepage, category and tag stay at the defaut place (below excerpt…)
    Thank you
    Marc

    #2544555
    jmarc

    see images in private

    #2544638
    Ying
    Staff
    Customer Support

    Hi jmarc,

    Thanks for opening a new topic.

    In your case, the easiest option is to create a block element – post meta template.

    Choose posts > all posts as the element’s location, and choose after_post_title as the template location.

    Here’s a screenshot for your reference:
    https://www.screencast.com/t/2nkwnHCqtIbu

    #2544894
    jmarc

    Ying, I’m not using block …

    #2544908
    jmarc

    Even with your image and the video I understand nothing 🙁
    A snippet would be easier no ?
    Thank you

    #2544911
    jmarc

    Or may be if I give you the acces admin could you please do it ?

    #2544931
    Fernando
    Customer Support

    Hi Jmarc,

    Can you try creating the Post Navigation as it’s done in the video first? Upon trying, I believe you’ll figure out what needs to be done. If not, feel free to tell us what specific step you’re having difficulties with.

    Our support scope only offers assistance. We can’t make the changes for you as that would be out of our scope.

    #2544938
    jmarc

    Hello Fernando

    I understand.
    By the way the support that GP offers is really great and, once again, I thank all the customers support for their patience and their kind help !
    But blocks are a real p*** in the a**” for me… I really don’t like it !
    I rather not going farther.
    I will try to manage my problem with snippet and css…

    Have a nice day
    MArc

    #2544941
    Fernando
    Customer Support

    You’re welcome, Jmarc!

    Try this snippet:

    add_filter( 'generate_header_entry_meta_items', function( $items ) {
    
        if ( is_single() ) {
            return array( 'categories', 'tags' );
        }
    	return $items;
        
    } );
    #2544954
    jmarc

    Thank you Fernando but nothing change with the snippet

    #2544973
    Fernando
    Customer Support

    Can you display the Post date first to test? Reference: https://docs.generatepress.com/article/blog-overview/

    #2544981
    jmarc

    Yes Fernando the date is ok and also the author, both below the title of a single post

    #2544993
    Fernando
    Customer Support

    Have you enabled it? If not, can you enable it first?

    #2545001
    jmarc

    It’s enable Fernando you can see it in the site…

    #2545004
    Fernando
    Customer Support

    How did you add the Snippet I provided?

    Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets

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