Site logo

Archived topic

Category Description not showing Dispatch

8 replies · Started by Larrian on August 31, 2021

Viewing posts 1–9 of 9

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.

Sure

The archive pages are using a block element called Archive Header Blockas as 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/G0M0Uf5kIYky

Here'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 :)

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

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!

Great! Glad you figured it out :)

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.

This question is not related to the original topic, can you open a new topic for this question?

Thanks for your understanding :)

This archived topic is closed to new replies.