Support

Home Forums Event Espresso Premium Help with Single Event Page

Help with Single Event Page

Posted: January 16, 2019 at 12:28 pm

Viewing 7 reply threads


Michael

January 16, 2019 at 12:28 pm

Hi guys,

We just moved over to a new theme on our site and we have a bunch of stuff we’d like to do to the single event page, but I’m a little lost in how to get it done right now. Hoping I can get some help here.

An example of our single event page can be found at https://teens.artsconnection.org/events/guggenheim-museum-pass-5/

Now, from top to bottom, here’s what we’re looking to do:

Remove the author
Have the event category show up next to Categorised
Remove the image after the Date and Time
Remove Venue Phone and Venue Website

Also, we’d like to get Google Maps working.

Any help would be greatly appreciated!

Thanks!


Michael

January 17, 2019 at 6:08 am

I should mention we’re on EE4. Is there anyone out there who can help?


Josh

  • Support Staff

January 17, 2019 at 9:46 am

Hi,
We can help you get these sorted out.
Some of the items are controlled by your WordPress theme, can you post a copy of your theme’s single.php file to a pastebin or github gist, then link to that file here?

wrt the Google maps, you’re going to need to get an API key from Google. Here’s Google’s message from the maps error:

Geocoding Service: verify your project has an active billing account: http://g.co/dev/maps-no-account For more information on usage limits and the Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/usage js:51:110


Michael

January 17, 2019 at 11:29 am

Thanks, Josh.

Here’s the pastebin link.

https://pastebin.com/kQyvVVqd


Josh

  • Support Staff

January 17, 2019 at 11:52 am

Since that template doesn’t actually output the content of the page, and instead mostly only calls get_template_part(), we’ll also need to see
inc/content-post too.


Michael

January 17, 2019 at 1:14 pm

Here are all the content-post files, Josh!

https://github.com/artsconnection/wp


Josh

  • Support Staff

January 17, 2019 at 3:38 pm

OK thank you.

These two items:

Remove the author
Have the event category show up next to Categorised

Are output from the content-post-meta.php file. There are a number of ways to change your theme to your specifications. One way would be to add a conditional at the very beginning that checks for the current post type and if it’s an Event Espresso event, then do one thing, and if not and EE event post, just show the Author & category like it does on a regular WP post. This example shows one way:
https://gist.github.com/joshfeck/ae0a7024917d08c255c573ca187c0127
To use the above, you can add the file to a child theme and it will override the parent theme. If you need help with setting up a child theme, here’s an excellent guide:
https://developer.wordpress.org/themes/advanced-topics/child-themes/#how-to-create-a-child-theme

Remove the image after the Date and Time

I do not see anything in the code you’ve provided that would add the image after the date and time. There are two possible reasons why it’s being added there:
1) The image is in the event’s description field of the event, in which case you can remove it from there
2) The theme is hooking into the WordPress the_content filter to add the featured image there. In which case someone would probably need to look through the entire theme to find the code that’s doing that.


Michael

January 18, 2019 at 7:58 am

Great! Thanks Josh!

Viewing 7 reply threads

The support post ‘Help with 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.

Event Espresso