Support

Home Forums Event Espresso Premium Event List Page is empty?

Event List Page is empty?

Posted: August 8, 2017 at 9:57 am

Viewing 27 reply threads


Moysh

August 8, 2017 at 9:57 am

I have added an event but the event list page is empty…
http://www.jkidzclub.com/events/

I have also tried renaming the slug, but that didnt help…
however link directly to the event DID work..
http://www.jkidzclub.com/events/test-september-event/


Tony

  • Support Staff

August 8, 2017 at 11:07 am

Hi there,

It’s your theme that controls the output of the events archive, if you preview a default theme such as twentyseventeen and view the /events/ output do you see the events then?


Moysh

August 8, 2017 at 11:25 am

Yes i does appear.. so how can I fix it to appear with my current theme..
can I provide you with login to fix?


Josh

  • Support Staff

August 8, 2017 at 11:37 am

A login in of itself will not necessarily allow for a fix. Here’s what you can do instead:

Fileshare a copy of the WP theme and we’ll review the theme’s code and can share a solution on how to fix the theme.


Moysh

August 8, 2017 at 12:04 pm

How do I send it to you privately..
i can also send you FTP access..


Tony

  • Support Staff

August 8, 2017 at 12:27 pm

You can send a link we can use to download the theme to support[at]eventespresso.com

You’ll need to host the theme somewhere, dropbox or wetransfer for example as the email will likely be rejected due to file size if you include the theme directly within the email.


Josh

  • Support Staff

August 8, 2017 at 1:50 pm

Hi Moysh,

I’m afraid the theme is doing_it_wrong(). The way the blog template is coded does not allow for displaying custom post types like events or venues that were added by plugins. Here’s how to fix:

1) Download and activate the child theme that’s included in the zip from themeforest
2) Copy the content-blog.php file from the main theme folder and place the copied content-blog.php file into the child theme folder. (wp-content/themes/kiddy-child/)
3) Make the following edit to line 25 of the content-blog.php file within the child theme folder:
change
$post_type_array = array( 'post' );
to be
$post_type_array = array( 'post', 'espresso_events', 'espresso_venues' );
4) Save the file and you’re done


Moysh

August 8, 2017 at 2:19 pm

Perfect! Thank you!
http://www.jkidzclub.com/events/

this change will still allow regular as well blog posts I assume…


Josh

  • Support Staff

August 8, 2017 at 2:30 pm

That’s correct regular blog posts will display as they normally do with the theme.


Moysh

August 10, 2017 at 8:56 am

Thank you.. its working well so far.. question, how can I remove the “post date” b/c its confusing compared to the actual event date?
http://www.jkidzclub.com/events/

but we still want the “post” date to show on regular posts…


Tony

  • Support Staff

August 10, 2017 at 11:32 am

The simplest method is using some CSS:

.post-type-archive-espresso_events .post_header_def_post .date {
    display: none;
}

That will remove the date from only the EE events out.

You can add that within Appearance -> Customize -> Custom CSS


Moysh

August 10, 2017 at 12:28 pm

Thank you!


Moysh

August 14, 2017 at 1:48 pm

ok new small issue. as soon as we added a venue into the venue list, it added a link at top of the event listings page.. how can we remove it.. we just want to show the event names listed on this page…. not the venue
the venue info and map will show in the event single (as it does now)

http://www.jkidzclub.com/events/


Tony

  • Support Staff

August 14, 2017 at 2:02 pm

If you go to Event Espresso -> Events -> Templates you’ll find a section for ‘Event List Pages’ with multiple options, in that section set ‘Display Venue Details’ to No and save the settings.

That will remove the venue details from the event list.


Moysh

August 14, 2017 at 2:13 pm

This was actually set to “no”.. but please see page.. the event venue is NOT showing up in the event snippet but ABOVE ALL EVENTS.. its showing like a “category link” see the words..”Polliwog park”.. this is a venue.. not an event….
how do I remove it? remember see full thread above as this page initially didn’t work with this theme until Josh replied with the fix…

http://www.jkidzclub.com/events/


Tony

  • Support Staff

August 14, 2017 at 2:37 pm

Ah, my apologies.

Where Josh provided this code:

$post_type_array = array( 'post', 'espresso_events', 'espresso_venues' );

Replace that with:

if( is_post_type_archive('espresso_events') ) {
	$post_type_array = array( 'espresso_events');
} elseif( is_post_type_archive('espresso_venues') ) {
	$post_type_array = array( 'espresso_venues');
} else{ 
	$post_type_array = array( 'post');
}

Which basically says if it’s the EE event list, use the espresso_events post type, if it’s an EE venue list, use the espresso_venues post type and otherwise use post.

That should then only display EE events on /events/ EE venues on /venues/ and everywhere else that template is used will use posts (as it is the default with your theme).


Moysh

August 14, 2017 at 2:53 pm

thanks! worked great!


Moysh

August 17, 2017 at 12:09 pm

new issue: When viewing on Internet explorer the FIRSTevent doesn’t display??!
but it does in Chrome and Firefox….

http://www.jkidzclub.com/upcomingevents/
http://www.jkidzclub.com/events/


Josh

  • Support Staff

August 17, 2017 at 12:36 pm

It looks like the first event is rendered with IE11, but I’m unsure about lower versions of IE. Does your WordPress theme support older versions of IE? If you temporary switch to one of the default themes and check with Internet Explorer does the first event render? If it displays with the other theme, it’s probably time to contact the theme developer for support.


Moysh

August 24, 2017 at 10:10 pm

Ok so we ended up changing the theme.. and the events now load..!

however… whether veiwing events via shortcode:
http://www.jkidzclub.com/upcomingevents/

or the default
http://www.jkidzclub.com/events/

but the list page display and the event detail page both show blog post date, comments, and avatar to the left of the box.. how can I hide it using css?

thanks!


Moysh

August 24, 2017 at 10:18 pm

also on http://www.jkidzclub.com/upcomingevents/
the header uses the top background image. how can we hide it for that element..?


Tony

  • Support Staff

August 25, 2017 at 3:50 am

For the post meta show to the left of the post you can use:

.type-espresso_events .blog-entry-inner {
    padding: 0;
}

.type-espresso_events .blog-entry-inner .entry-meta {
    display: none;
}

Comments already seem to be disabled?

the header uses the top background image. how can we hide it for that element..?

The theme sets all ‘header’ elements to use a background, you can override that but on a per page basis, so for that specific page it would be:

.page-id-1994 #primary header {
    background: none;
}

For other pages you’ll need to repeat the selector with the page ID, for example:

.page-id-1994 #primary header,
.page-id-9999 #primary header {
    background: none;
}


Moysh

August 25, 2017 at 1:31 pm

Perfect! Worked great!

General Question. If I wanted to design the listing page somewhat different. how can I go about it? is there a template page?

ie if i want the image to be a medium size and to the right or left of the event info? etc…


Josh

  • Support Staff

August 25, 2017 at 2:17 pm

There is some general documentation for building custom event and event listing pages on this wiki page:

https://eventespresso.com/wiki/ee4-custom-post-types/


Moysh

August 30, 2017 at 1:47 pm

Thanks,
Need help to figure out the CSS to add that will hide the main thumb top image (event featured image) for JUST event detail, not blog entries.

http://www.jkidzclub.com/events/private-jkidz-launch-and-rosh-hashanah-extravaganza/


Tony

  • Support Staff

August 30, 2017 at 1:56 pm

The .single-{post_type} class on the body tag can be used for this, so:

.single-espresso_events .entry-thumb {
    display: none;
}

Should do what you are looking for.

When you use that you’ll find the text got right to the top of the page, so you can add some padding, again just for EE events:

.single-espresso_events .blog-entry-inner {
    padding-top: 2rem;
}


Moysh

August 30, 2017 at 2:04 pm

Thanks you. !
I did notice the top spacing on this page too. the listing page, had no padding….
http://www.jkidzclub.com/events/
can you hekp with that.?

also we will be purchasing the caleneder add-on. thank you again!


Tony

  • Support Staff

August 30, 2017 at 2:17 pm

Right now your removing all padding from those elements using:

.type-espresso_events .blog-entry-inner {
    padding: 0;
}

You have that in your custom CSS.

You can change that for that page specifically using:

.post-type-archive-espresso_events .blog-entry-inner {
    padding-top: 2rem;
}
Viewing 27 reply threads

The support post ‘Event List Page is empty?’ 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