Support

Home Forums Event Espresso Premium Problems on Single Event Display

Problems on Single Event Display

Posted: March 28, 2016 at 5:07 pm


Luca Center

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
https://www.lucacenter.com/espresso-calendar/

single event display page
https://www.lucacenter.com/events/luca-center-prueba-evento/


Tony

  • Support Staff

March 29, 2016 at 3:40 am

Hi Luca,

Thank you for the feedback πŸ™‚

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?

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.


Luca Center

March 29, 2016 at 1:57 pm

Do you guys have a blank .php single display? so i can use it? because we dont have that kind of knowledge :/?


Josh

  • Support Staff

March 29, 2016 at 3:59 pm

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.


Luca Center

March 29, 2016 at 5:27 pm

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?


Josh

  • Support Staff

March 29, 2016 at 7:10 pm

A dropbox link would be fine, or you can send an email to
support
AT (which is really @, but we don’t like spam bots)
eventespresso.com.


Luca Center

March 29, 2016 at 7:14 pm

Oh! dont worry! there you

** Removed from public view ** – Tony


Tony

  • Support Staff

March 30, 2016 at 2:40 am

Hi Luca,

Within your event, do you have the ‘Display Ticket Selector’ option set to yes?

http://take.ms/vDYz6

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.


Luca Center

March 30, 2016 at 6:18 am

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


Lorenzo Orlando Caum

  • Support Staff

March 30, 2016 at 9:59 am

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.


Lorenzo


Luca Center

March 30, 2016 at 10:50 am

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


Josh

  • Support Staff

March 30, 2016 at 12:46 pm

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.

btw do you guys have the css text properties code from the demos?

The demos use the CSS from whichever theme happens to be active, we do not add custom CSS to the demos.


Luca Center

April 4, 2016 at 6:18 am

Hello,

I talked with the support from the theme and they told me this:

Hello,
you will need to create single-espresso_events.php file in theme folder and use the following code:


<?php
/*
Template Name: Single Espresso event
*/
get_header();
//eventespresso code 
get_footer();
?>

in this file you must include eventespresso code for single event template.
You can contact eventespresso support and ask for help, they should provide a code that can be inserted in this file, so the correct event information is displayed.
Regards


Luca Center

April 4, 2016 at 6:22 am

BTW after the chnages the page is complety blank:

https://www.lucacenter.com/events/luca-center-prueba-evento/


Luca Center

April 4, 2016 at 6:22 am

BTW after the changes the page is complety blank:

https://www.lucacenter.com/events/luca-center-prueba-evento/


Josh

  • Support Staff

April 4, 2016 at 10:04 am

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:

<?php
get_header();
?>
<div class="theme_page relative">
	<div class="page_layout page_margin_top clearfix">
		<div class="page_header clearfix">
			<div class="page_header_left">
				<h1 class="page_title"><?php the_title(); ?></h1>
			</div>
		</div>
		<div class="clearfix">
			<?php
			if(have_posts()) : while (have_posts()) : the_post();
				the_content();
			endwhile; endif;
			?>
		</div>
	</div>
</div>
<?php
get_footer(); 
?>

Then, and this is important, you add the following to your theme’s functions.php file:

add_filter('FHEE__EED_Event_Single__template_include__allow_custom_selected_template', '__return_true' );


Luca Center

April 4, 2016 at 10:22 am

I did everything you ask for and it work! thank you very much πŸ™‚


Josh

  • Support Staff

April 4, 2016 at 11:04 am

You’re welcome.


Luca Center

April 13, 2016 at 12:35 pm

Hey guys,
I have the same problem when I go to see a venue

: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?
https://www.lucacenter.com/espresso-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?


Josh

  • Support Staff

April 13, 2016 at 2:38 pm

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.


Luca Center

April 14, 2016 at 7:46 am

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. :/

https://www.lucacenter.com/espresso-calendar/


Josh

  • Support Staff

April 14, 2016 at 3:03 pm

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:

wp_enqueue_style("jquery-qtip", get_template_directory_uri() ."/style/jquery.qtip.css");


Luca Center

April 14, 2016 at 7:12 pm

http://i.imgur.com/rmGuVAP.png


Tony

  • Support Staff

April 15, 2016 at 5:07 am

Hi Luca,

I can’t see that code on your site, did you manage to remove it yourself?


Luca Center

April 15, 2016 at 5:24 am

Sorry! Everything is working now!

πŸ™‚ thank you so much

https://www.lucacenter.com/espresso-calendar/


Tony

  • Support Staff

April 15, 2016 at 6:20 am

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.

Event Espresso