- This topic has 11 replies, 4 voices, and was last updated 4 years ago by
Leo.
-
AuthorPosts
-
March 5, 2020 at 10:59 am #1186231
Anonymous
I been looking on google to show categories description on category page using this tutorial => https://www.wpbeginner.com/wp-tutorials/how-to-display-category-descriptions-in-wordpress/
Would you recommend this is a correct solution or is there other way you recommend to do it? If so, when theme updates would this setting will be deleted from category.php file?
Thanks!
March 5, 2020 at 1:41 pm #1186383David
StaffCustomer SupportHi there,
that shouldn’t be required, by default the description should be displayed.
If you can provide a link to your site i can take a look so if there is a problem.March 6, 2020 at 9:51 am #1187269Anonymous
Is not displaying, I got on dummy content on this category => https://www.shopbelleza.com/categoria/cabello/
and is not showing.
Can you please check, thanks!
March 6, 2020 at 12:17 pm #1187353David
StaffCustomer SupportAah its because you are using a Header Element.
Go to Appearance > Elements and look for the Header Element assigned to your Post Archives.
And add this to the header elements content:{{custom_field.description}}
March 7, 2020 at 5:25 am #1187753Anonymous
Hello,
David solution worked perfectly. Thank you very much!
Just one last question, I tried to place link on description content but color seems to be very similar to text one. How can I change text color? any class I can use? Also is there any good wysiwyg editor plugin that you know to add rich text features on description editor?
Thanks!
March 7, 2020 at 6:54 am #1187937David
StaffCustomer SupportIn the Header Element – there is a color option for Links that you can change.
Maybe this plugin – haven’t used it but its from the author of Code Snippets….
https://wordpress.org/plugins/visual-term-description-editor/
March 10, 2020 at 12:02 pm #1191229Anonymous
Is there any class I can use for links?
March 11, 2020 at 3:21 am #1191638David
StaffCustomer SupportIf you want to use CSS then you can do this:
.page-hero a { color: #ff5481; } .page-hero a:hover { color: red; }
February 4, 2021 at 5:02 pm #1646279Heather
Hello, why doesn’t my site (dispatch theme) have the display description by default and why doesn’t this tag seem to work for me inside of the elements hook? {{custom_field.description}}. Note: I disabled the archive header that was in place so it would use the default layout.
My site: https://fluentonmsft.com/category/office365
I actually started building pages where I wrote the content by hand, but now I’m realizing how silly that is and I should be pulling in the descriptions.
February 4, 2021 at 6:01 pm #1646311Ying
StaffCustomer SupportHi Heather,
Take a look at this topic, it should help:
https://generatepress.com/forums/topic/add-custom_field-description-in-category-header/And could you please open a new topic for your question instead of commenting on other user’s topic next time? It’s easier for us to track. Thanks!
July 20, 2021 at 2:43 pm #1863602Knuth Becker
Hi. I tried adding the {{custom_field.description}} on hero header element for the category pages, and it does work. However, it adds the description within the hero. Is it possible to display the description on the category page as though it was a regular post and then underneath have the posts attached to that category?
Hope my question makes sense.
July 20, 2021 at 3:04 pm #1863617Leo
StaffCustomer SupportHi there,
Can you open a new topic for your question?
Thanks 🙂
-
AuthorPosts
- The topic ‘How to show categories description on category page?’ is closed to new replies.