Home › Forums › Support › Category and tag below the title but only on single post not on the archive
- This topic has 20 replies, 3 voices, and was last updated 3 years, 2 months ago by
Fernando.
-
AuthorPosts
-
February 23, 2023 at 1:04 pm #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
MarcFebruary 23, 2023 at 1:12 pm #2544555jmarc
see images in private
February 23, 2023 at 2:59 pm #2544638Ying
StaffCustomer SupportHi 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/2nkwnHCqtIbuFebruary 23, 2023 at 10:16 pm #2544894jmarc
Ying, I’m not using block …
February 23, 2023 at 10:37 pm #2544908jmarc
Even with your image and the video I understand nothing 🙁
A snippet would be easier no ?
Thank youFebruary 23, 2023 at 10:41 pm #2544911jmarc
Or may be if I give you the acces admin could you please do it ?
February 23, 2023 at 10:58 pm #2544931Fernando 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.
February 23, 2023 at 11:04 pm #2544938jmarc
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
MArcFebruary 23, 2023 at 11:09 pm #2544941Fernando 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; } );February 23, 2023 at 11:17 pm #2544954jmarc
Thank you Fernando but nothing change with the snippet
February 23, 2023 at 11:51 pm #2544973Fernando Customer Support
Can you display the Post date first to test? Reference: https://docs.generatepress.com/article/blog-overview/
February 23, 2023 at 11:57 pm #2544981jmarc
Yes Fernando the date is ok and also the author, both below the title of a single post
February 24, 2023 at 12:12 am #2544993Fernando Customer Support
Have you enabled it? If not, can you enable it first?
February 24, 2023 at 12:16 am #2545001jmarc
It’s enable Fernando you can see it in the site…
February 24, 2023 at 12:20 am #2545004Fernando Customer Support
How did you add the Snippet I provided?
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
-
AuthorPosts
- You must be logged in to reply to this topic.