Support

Home Forums Event Espresso Premium Differentiating category pages on the archive template?

Differentiating category pages on the archive template?

Posted: June 4, 2015 at 11:57 am


Joren

June 4, 2015 at 11:57 am

Searched around but couldn’t really find the answer to this question that didn’t involve the add-on

Since the category page uses the same template as the listing page, is there a way via code in the archive template that I can check to see if the current page is a category page so that I can at least write some conditionals? Or if there’s just a way for me to create a separate template file just for these pages, that would be better. And can I pull content like the category title?


Lorenzo Orlando Caum

  • Support Staff

June 4, 2015 at 12:17 pm

Hi Joren, you could create this file:

taxonomy-espresso_event_categories.php

Take a look at this link:

https://gist.github.com/lorenzocaum/0a35fe4997992fdb1dc5#taxonomy-events-template


Lorenzo


Joren

June 4, 2015 at 1:02 pm

Perfect, thanks! Didn’t see that one in the original theme so I thought it might not be possible. That worked

The support post ‘Differentiating category pages on the archive template?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Do NOT follow this link or you will be banned from the site!
[i]
[i]