Support

Home Forums Event Espresso Premium Shortcodes break WP theme

Shortcodes break WP theme

Posted: October 7, 2014 at 2:36 am


Bogdan Sindile

October 7, 2014 at 2:36 am

Hello,
The shortcode [ESPRESSO_EVENTS] break the theme we are using ().

The theme is OnePage and everything after the [ESPRESSO_EVENTS] shortcode is not shown anymore.

How can we fix this,
Thanks


Dean

October 7, 2014 at 3:31 am

Hi,

Can you provide a link to the site in question?

Is this the theme – https://wordpress.org/themes/one-page?


Bogdan Sindile

October 7, 2014 at 3:40 am

Hi,

This is our theme: http://themeforest.net/item/corsa-retina-responsive-creative-onepage-theme/5902385

resume:
me: Our website theme is Corsa (www.enformation.ro). If we add our event on the first page (landing page) in our site, the theme crash.
you: What is the error that is appearing when the theme is activated?
me: When our theme crashes, events simply disappear. There are not displayed anymore. But only if we try to add our events on the landing page. Otherwise it works well.

Thanks,
Bogdan


Dean

October 7, 2014 at 4:59 am

Hi,

Can you try disabling All in One Events and try again please. Or is it that the All in One Events events are being removed?

Are there events added to the home page currently?


Bogdan Sindile

October 7, 2014 at 5:28 am

I’ve disabled All-in-One Events but let me explain the problem again.

As you are looking to the website http://www.e-nformation.ro you can see that there are some sections with different background colors.

If, i include this shortcode [ESPRESSO_EVENTS limit=”5″] on that page, in any section, next section that are bellow the included shortcode doesn’t appear at all.

For example, if the shorcode is included in the section “Noutati”, the events are shown but next section “Parteneri” disappear. It is like the html break after the shortcode is executed.

I hope this is clear enough.
Thanks,


Dean

October 7, 2014 at 6:24 am

Hi,

That is clear. Can you please activate EE and include events, I would like to see the problem first hand. Please also make sure All in One events is deactivated.


Bogdan Sindile

October 7, 2014 at 7:53 am

I can’t leave the shortcode there because the website is live and visitors should see the website working.

I could do this if we would chat in real time and add the shortcode for a couple of minutes.

Thanks,


Josh

  • Support Staff

October 7, 2014 at 2:34 pm

Hi Bogdan,

We would actually need a copy of the theme to know where it’s causing the breakage. Have you contacted the theme developer about this? Normally a shortcode will not break a WordPress theme.


Bogdan Sindile

October 14, 2014 at 3:31 am

We have copied the website to a test server so you can see the problem.

Where can i send you the username and password to access the server?


Tony

  • Support Staff

October 14, 2014 at 3:46 am

You can use this secure link to submit login details:

https://eventespresso.com/send-login-details/

Note – FTP details would also be appreciated in this case.


Josh

  • Support Staff

October 15, 2014 at 9:25 am

Hi Bogdan,

Thanks for sending. After doing some investigating I can report back to you the issue looks like a problem with the Corsa theme’s [blog] shortcode.

I moved the [ESPRESSO_EVENTS] shortcode out of the Noutati page section (where the [blog] shortcode is) and moved it in to the top of the next page section Parteneri. You can double check this, but it looks to me that everything is displaying as expected now.


Bogdan Sindile

October 16, 2014 at 5:44 am

Hello,
Yes, if you add the shortcode in the last section it’s working, because there are no more section after it.

But, if you add the shortcode in any page section (except the last one), then the next page sections are not shown anymore.

You can check now, i’ve removed [blog] shorcode from Noutati page section and the problem is still there.

Thanks.


Josh

  • Support Staff

October 16, 2014 at 8:46 am

Hi Bogdan,

I’m sorry about that. Here’s what you can do to fix your theme:

1) Copy the Corsa theme’s page-home.php template into your child theme
2) change every $wp_query to another variable. I used $corsa_query

Here’s a readymade copy:

https://gist.github.com/joshfeck/9fac4cc2ca6ab09ba908


Bogdan Sindile

October 16, 2014 at 9:46 am

Hi Josh,

Thanks a lot! We’ll try right away your suggestions. Then come back with an update.

Bogdan


Josh

  • Support Staff

October 16, 2014 at 9:48 am

It might help to update the theme author so they can be aware their theme might need some fixing.

The support post ‘Shortcodes break WP theme’ 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