Editing Category Archives Page in Renew Stack

Hi! This is a two-part question:

  1. When you go to my Category Archive pages, you see the featured photo for each post and the intro text, but no post title. How can I add that?

  2. Also, instead of being called Categories I want them called Topics. And how can I change the title from Category Archive to something else?

Here’s an example of what I see now

thanks.

Hi There,

Thank you for writing in, 1) You have that custom CSS below on your Theme Options > CSS, that CSS puts the title behind the featured image. Please remove that, or clarify what that CSS is for so we can do a modification on it.

.archive .x-main .hentry.has-post-thumbnail>.entry-wrap .entry-header {
    position: absolute;
    top: 0;
    width: 100%;
    margin: 30px 0 0;
}
  1. To change the default Category Archive title, please navigate to Posts > Categories edit your categories one by one and fill the Archive Title field.



Hope it helps,
Cheers!

Thanks! I think I got that code from ThemeCo when I wanted to add the featured photo to the archive entry. I didn’t write the code myself. What code should it be to make the photo appear, then the title, then the metadata description?

Hey @pearlmultimedia,

You will need to override content.php for this. Copy that file from \framework\views\renew to the same folder structure in your child theme. Then, move the entry-featured block of code above the post header code like this:

This is also achievable with JavaScript but you’d need to add this code globally.

jQuery(function($) {
	$('.archive .entry-wrap').each(function() {
		$(this).find('.entry-featured').prependTo(this);
	});
});

This should be the result, once the CSS referred to by @friech is removed.

Hope that helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.