Posted: July 10, 2019 at 10:49 am
Hello, |
|
Hi, You can install this plugin to find out which template is getting loaded for the single event page: https://wordpress.org/plugins/show-current-template/ May I ask does your single-espresso_events.php (or single.php) template include a call to the_post_thumbnail() or a similar function? https://developer.wordpress.org/reference/functions/the_post_thumbnail/ |
|
Thanks, Josh. The template that the single event page is using is base.php, but I can’t change that without altering the other pages on the site. I thought that the single event pages were custom post pages. Can you please tell me how I can this to load a custom single event page? Thanks. |
|
Event Espresso events are custom post types. May I ask does the Virtue by Kadence have documentation related to custom templates or does it even support custom post type templates? What you may need to do is add your changes to base.php and wrap them in conditionals so they only affect the event page. e.g.
|
|
Thanks. The main thing I need to do is add a border around the single event page and post the feature image. Everything else is fine. In the previous template, this was done through the stylesheet. I’m not sure why the same stylesheet isn’t working, since most of the elements are specific to Espresso Event Calendar. The snippet below does not work, for example. |
|
Your new theme might not use |
|
I don’t think it does, but I’m not sure how I should rename it. Here is a link: |
|
Are we looking at the same thing? The reason I ask is because that page has a border around each event and a featured image too. Here’s a screenshot: |
|
The calendar view page is rendering correctly. It is the single event page that I’m trying to fix: |
|
For what it’s worth, it’s best to just share a link to the page you need help with. In this case, for the other page you could add this CSS:
|
|
The support post ‘Single Page 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.