- This topic has 8 replies, 2 voices, and was last updated 4 years, 7 months ago by
Ying.
-
AuthorPosts
-
August 31, 2021 at 3:09 pm #1914645
Larrian
I have entered category descriptions but none are showing up on the category pages. I read through the forum sections on this, but when I went to add the add_shortcode( ‘term_description’, ‘tu_term_description’ );
function tu_term_description() {
ob_start();
echo term_description( get_queried_object()->term_id, ‘category’ );
return ob_get_clean();
}
to the functions.php file it said not to do anything to that file as I don’t have a child theme. I see the archive header in the elements but also don’t know where I would add any snippet etc. Not a programmer…so not clear on the concept here.
Thanks for your help.August 31, 2021 at 3:28 pm #1914665Ying
StaffCustomer SupportHi Larrian,
Any chance you can link us to the site in question?
You can use the private information field.
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationLet me know 🙂
August 31, 2021 at 3:54 pm #1914687Larrian
Sure
August 31, 2021 at 6:15 pm #1914738Ying
StaffCustomer SupportThe archive pages are using a block element called
Archive Header Blockasas page hero to show the title.You can find the element at appearance > elements.
There’s only 1 headline block which is presenting the title currently.
If you want to show the archive description, you’ll need to add a dynamic content block(with GP logo), select Term description:
https://www.screencast.com/t/G0M0Uf5kIYkyHere’s an article with tutorial video of block element – page hero, should be helpful:
https://docs.generatepress.com/article/block-element-page-hero/Let me know if you need further assistance 🙂
August 31, 2021 at 7:18 pm #1914784Larrian
That was a great help. I got the description showing but its too large and not contained. Can you tell me how to get the description to stay in the same size as the content? You can see this at thyroidhairandskincareproducts.com
August 31, 2021 at 7:20 pm #1914786Larrian
Just found out how…changed it to group instead of columns. Working great now. This explanation makes sense, where the others in the forum were very confusing.
Thank you so much!August 31, 2021 at 8:57 pm #1914833Ying
StaffCustomer SupportGreat! Glad you figured it out 🙂
September 1, 2021 at 10:29 am #1915651Larrian
I just discovered the social icons are now missing from the desktop version of the site….they show up in the off canvas for mobile….is there a way to make them show up again on the far right? I tried adding an icon block into the archive element but it locates the block on the far left, which puts it under the logo image and therefore not seen.
Thanks again.September 1, 2021 at 10:40 am #1915663Ying
StaffCustomer SupportThis question is not related to the original topic, can you open a new topic for this question?
Thanks for your understanding 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.