Site logo

Archived topic

How to show categories description on category page?

11 replies · Started by Former User on March 5, 2020

Viewing posts 1–12 of 12

Hi 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.

Aah 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}}

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!

Is there any class I can use for links?

If you want to use CSS then you can do this:

.page-hero a {
    color: #ff5481;
}
.page-hero a:hover {
    color: red;
}

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.

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.

Hi there,

Can you open a new topic for your question?

Thanks :)

This archived topic is closed to new replies.