customization of the category page
-
Hi,
I would need to customize a bit the category pages adding a text below this line in archive.php:
the_archive_description( ‘<h2 class=”taxonomy-description”>’, ‘</h2>’ );
The text has to be different for each category.
So, I added this:<?php if (is_archive(category-7)) : ?>
<p>added text</p>
<?php endif; ?>Anyway, the issue is that same text appears in all category pages.
It seems that system does not recognize the number of the category page.Would be there anyone helping me about it?
Thanks a lot,
Best regards,
Cédric.
https://bio-transition.com
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘customization of the category page’ is closed to new replies.