Support

Home Forums Event Espresso Premium Events appear twice in list when using [ESPRESSO_EVENTS] shortcode

Events appear twice in list when using [ESPRESSO_EVENTS] shortcode

Posted: March 26, 2018 at 12:44 am


DarrenSV

March 26, 2018 at 12:44 am

We have 2 events so far. They are listing twice on the page when I use the shortcode [ESPRESSO_EVENTS]

Here is the page: https://96club.co.uk/club-event/

WP version 4.9.4
Event Espresso Version 4.9.58.p
Theme ‘One’ by THBThemes Version: 1.6.13

Looking at the HTML I have 2 ‘thb-section-block-content’ DIVs. There should only be 1.

Please help.

Thank you,
Darren


DarrenSV

March 26, 2018 at 12:56 am

I tried hiding it using CSS, but it catches things on other pages because there is nothing specific to that page/section:
.thb-section-column-block-thb_shortcode .thb-section-block-content:last-of-type {
/*background: blue;*/
display: none;
}


Tony

  • Support Staff

March 26, 2018 at 3:57 am

Hi there,

If you switch to a default theme such as twentyseventeen is there only a single list? You can do that using the the Theme Test Drive plugin so that only admins see the new selected theme.

I tried hiding it using CSS, but it catches things on other pages because there is nothing specific to that page/section:

Sure there is, your theme adds the page id to the body class:

.page-id-13 .thb-section-column-block-thb_shortcode .thb-section-block-content:last-of-type {
    display: none;
}

However that’s more of a hack than a solution and you may run into further problems down the line.

The support post ‘Events appear twice in list when using [ESPRESSO_EVENTS] shortcode’ 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