Support

Home Forums Event Espresso Premium Category Pages

Category Pages

Posted: May 1, 2019 at 10:43 am

Viewing 3 reply threads


Gorkem

May 1, 2019 at 10:43 am

Hi, is there a way of making the category pages only display the event description like the events page does?
This is the events page that looks exactly like how I need:
https://www.pmtcourses.com/events/
This category page has extras:
https://www.pmtcourses.com/event-category/biology-revision/

Thanks,
Gorkem


Josh

  • Support Staff

May 1, 2019 at 12:21 pm

Hi Gorkem,

With most WordPress themes those two pages should look the same, so it appears something is adding more information to the category archives there. You could try going to Event Espresso > Events > Templates and check the settings under “Event List Pages”. Is the “Display Description” option set to “excerpt (short desc)” there?


Gorkem

May 2, 2019 at 6:20 am

Hi Josh,

Yes, the ‘display description’ option is set to ‘excerpt (short desc)’.
Are the templates of those pages set by the wordpress theme event espresso? Is the event category page a regular category archive page in wordpress. What about the main events list page?

Thanks,
Gorkem


Tony

  • Support Staff

May 2, 2019 at 9:21 am

Are the templates of those pages set by the wordpress theme event espresso?

Technically, both.

It uses the default templates from your theme and then EE hooks into the_content() to add additional details. You can override all of that using your own templates, but that the default behaviour.

Is the event category page a regular category archive page in wordpress.

Yes, it’s a regular archive.

The category archive is essentially just a standard archive, but as it’s a category archive you get a little more control over the templates using the standard WordPress Template Hierarchy.

So you could create a template specifically for EE event categories and display only the archive through that, or because EE hooks into the_content you can hook in an remove it through PHP, something like this:

https://gist.github.com/Pebblo/337d5f3cdc2180e0ae457ff8485a9573

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Viewing 3 reply threads

The support post ‘Category Pages’ 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.

Event Espresso