SYDNEY PRO: Category page titles

Hello,

I have created several category pages. They work perfectly.

However, the titles of the individual entries do not show up.

For example, see https://thegarretpodcast.com/category/reviews/fiction-review.

I would like to display these titles in the same way as the normal blog titles.

Can you help with this?

Thank you.

Hi,

Did you meant, the category name of the page should be displayed? If yes, I noticed that you hide the category name using CSS code, please open your custom CSS section and remove this line:

body.archive.category div#primary header.page-header {
    display: none;
}

Regards,
Awan

No, I did not mean the category name. I mean the name of the post is hidden on all of the post when they are displayed on a category page.

For example, on this page there are no post titles: https://thegarretpodcast.com/category/reviews/

Also, I delete the code you suggested but nothing changed.

I see… I’ve checked the page and the title not displayed because this CSS line:

.blog .format-aside .entry-title, .archive .format-aside .entry-title {
    display: none;
}

Please check your custom CSS code and remove it.

Regards,
Awan

Or, if you can’t find the code in above then please try to add this code below to Customize > additional CSS

.category #primary .format-aside .entry-title {
    display: block;
}

Hello Awan,

This code works when in the Customise mode - it updates the headers.

But after I hit publish it reverts back and does not appear on the site.

Hmm… can you try to use CSS plugin instead?

Hello. I’m not sure what you mean.

I have attached an image showing you that it works when I am in the customise section, but then when I am not updating the customise it reverts.

Hi,

Btw, have you tried to add !important rule to the code in above like so?

.category #primary .format-aside .entry-title {
    display: block !important;
}

If the !important rule still not working… please try to put the CSS code in above using another CSS plugin.

Regards,
Awan

Hello Awan,

Adding the important helped, thank you.

I have one further question. Now that I have title, how can I remove the text underneath? I have reduced the word count to 0, but […] appears instead (see image).

Hi,

To remove the ellipsis character, you need to add one line PHP code to the functions.php on your theme. But, it’s better if you are using a child theme to do that.

So, firstly you need to create a child theme then add this line to functions.php on your child theme directory:

add_filter('excerpt_more','__return_false');

Then, activate your child theme.

For more information of how to create a child theme, you can visit this page https://codex.wordpress.org/Child_Themes

Regards,
Awan

Hello,

As you know, your advice fixed the issue I was having with the lack of titles on the blog post page for a category I have.

However, that fix has created a different issue: the blog post page now displays the category text itself, which I do not want.

The page in question is: https://thegarretpodcast.com/category/reviews/

See the image attached.

Hi,

Did you mean this:


You can hide it using this CSS code:

body.category header.page-header {
    display: none;
}

thank you Awan! This is now resolved.