Posted: March 28, 2016 at 5:07 pm
|
Hello! Got the plugin today and I have to say, one of the best event plugins out there! The only problem, I encounter is that my events look like a post. How can I change the template page you for the single event display? My calendar page single event display page |
Hi Luca, Thank you for the feedback π
That’s because EE4 events are actually custom posts. EE4 integrates into your theme output and basically injects the event details into the_content for the espresso_event post types. Depending on how your theme templates are setup it should be using the single.php template file to output the events, to change the output you’ll need to create a copy of the current template, rename the copy to single-espresso_events.php and customize the output to suit. If you install a plugin such as What The File and view a single event you can see in the admin bar which template is currently being used so you know which template to copy. I recommend creating a child theme to add the template file to. |
|
|
Do you guys have a blank .php single display? so i can use it? because we dont have that kind of knowledge :/? |
Hi there, It turns out we don’t have a blank .php file for this, because each theme is different. Can you send a copy of the WordPress theme to support AT eventespresso.com? We may be able to whip up a template that will display the event content for that theme since it’s not being displayed at all. |
|
|
Perfect! thats awesome Josh! I went to contacts us on eventespresso.com but it redirect me to forums. Will you like a dropbox link instead? or do you have a email? |
A dropbox link would be fine, or you can send an email to |
|
|
Oh! dont worry! there you ** Removed from public view ** – Tony |
Hi Luca, Within your event, do you have the ‘Display Ticket Selector’ option set to yes? I’ve just installed your theme locally and it displays all of the event content, so just want to confirm you have the enabled before investigating. |
|
|
Hello Tony! I have it enable on the event settings. Do you need my single.php, so you can verify if something is wrong or outdated? With my single.php |
Hi Luca, I see that there were a couple questions in your support post and your ticket selector is now appearing. Are you wanting to hide some content such as the comment area and published date? If so, you can do that using CSS: .single-espresso_events .comment_box, .single-espresso_events .reply_button, .single-espresso_events .post_footer, .single-espresso_events .comment_form_container { display: none; } If your theme has a custom CSS area, then you could add it there. Otherwise, you could add it to your site via a free plugin like Reaktiv CSS Builder or Simple Custom CSS. — |
|
|
Thanks Lorenzo! https://www.lucacenter.com/events/luca-center-prueba-evento/ about the widgets? how can i separete them from the single.php? on the single event? and btw do you guys have the css text properties code from the demos? thanks for all the help and fast responds |
Hi there, I checked out your theme and I’m not sure how it adds widgets. Did you see in the theme settings where it lets you set a full-width option? Have you tried that? You can also check with the theme author to see if they have any ideas on how to remove the widget/sidebar for a specific custom post type. They may have some ready made code or can point you to a specific option.
The demos use the CSS from whichever theme happens to be active, we do not add custom CSS to the demos. |
|
|
Hello, I talked with the support from the theme and they told me this: Hello,
in this file you must include eventespresso code for single event template. |
|
BTW after the chnages the page is complety blank: https://www.lucacenter.com/events/luca-center-prueba-evento/ |
|
BTW after the changes the page is complety blank: https://www.lucacenter.com/events/luca-center-prueba-evento/ |
I’m afraid they gave you some bad advice. You can remove the code they gave you for the single-espresso_events.php file and replace with the following:
Then, and this is important, you add the following to your theme’s functions.php file:
|
|
|
I did everything you ask for and it work! thank you very much π |
You’re welcome. |
|
|
Hey guys, :https://www.lucacenter.com/venues/instituto-desarrollo-universal/ is there a .php for single venue view? and where can I change the colors of the calendar? everytime I hover on a event display on the calendar show white and yellow on the pop-up and sometimes the name of the events inside of the calendar dont stay inside of the day. how can i change that? |
Hi there, Those template files are theme specific, so what you can do is duplicate the single-espresso_events.php and rename the copy to be single-espresso_venues.php. You can change the colors of the events and location of the pop-ups in the Event Espresso > Calendar Settings. |
|
|
Hey Josh! I did what you told me about the .php but now the page is blank: https://www.lucacenter.com/venues/instituto-desarrollo-universal/ the Tooltip Style of the event have a weird color(white and yellow) and all the theme(youtube, twitter,black) stay the same color. :/ |
Since your theme appears to strip away anything added via a content filter, you’ll need to manually add some code to your venue template. Here’s an example you can use that’s adapted to your theme: https://gist.github.com/joshfeck/c148a397bd5dc50f757ad04a01bfb692 For the Tooltip style in the calendar, your theme is tacking on its own qtip styles, which are adding the yellow color. If you don’t like the yellow, you can remove or comment out line 331 of the theme’s functions.php file, which reads:
|
|
|
|
Hi Luca, I can’t see that code on your site, did you manage to remove it yourself? |
|
|
Sorry! Everything is working now! π thank you so much |
Great π I’ll mark this thread resolved, please feel free to open up another if you have any further problems. |
|
The support post ‘Problems on Single Event Display’ 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.