I’m a new user of EE ๐ I have a question about how to disable pagination on the single event pages (or actual posts). I’ve done some searching on the forum but I could not find a solution.
But I could not find the CSS Classes of a single event. Only the CSS Classes of the [Registration Page] and the [Event Registration List] are shown. Correct?
I also could not find a EE body class using Chrome inspector to target the single event post. Question: where can I find the CSS Classes of the [Single Event Page]?
After some googling I found CSS Class [.single-espresso_events]. I added .single nav.navigation.post-navigation and set diplay:none in Cusom CSS of my Theme. That did the job. The pagination didn’t show anymore.
Question: Is [.single-espresso_events] the correct CSS Class to target the single event post?
Is it possible that you add the CSS Classes of the single event (post) to your documentation?
So with EE4 (which I assume you are using) the EE events are custom post types within WordPress (plus our own custom tables/data) which means when they are output to the page as long as the theme is following WP Standard and using the body_class() function to add the body classes it will output various different classes based on the context of the post/page.
.single-espresso_events is one of those classes, its .single-{post_type} and WordPress outputs that class for all post types display.
So yes, .single-espresso_events is the correct class to use to specifically target the Event Espresso single event output.
Is it possible that you add the CSS Classes of the single event (post) to your documentation?
Possible, yes, but a lot of those classes are from WordPress itself, we have our own for specific outputs but the above is auto-generated by WP itself.
Thanks for your quick reply and explanation. I don’t know much about WP custom post types, so I will dive into that :-). Have a great day!
Marco
Viewing 2 reply threads
The support post ‘Disable default pagination single event page’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.