Support

Home Forums Event Espresso Premium espresso-ajax-notices

espresso-ajax-notices

Posted: May 24, 2020 at 3:56 am

Viewing 4 reply threads


jKalz

May 24, 2020 at 3:56 am

Hi there!
I get a espresso-ajax-notices div in my archives … how can I switch them off?

as in
https://apnoetauchen-lernen.de/Veranstaltungsorte/


jKalz

May 24, 2020 at 3:59 am

is there any quick solution to that?


Tony

  • Support Staff

May 25, 2020 at 4:49 am

Hi there,

May I ask why you need to remove those?

You can remove them with a snippet like this:

https://gist.github.com/Pebblo/4c374a93c255b57fe262

You can add that to a custom functions plugin and we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


jKalz

May 25, 2020 at 5:16 am

Hi perfect this just worked fine!

The reason was that it messed up some archives I had (events, venues, etc …) The first post was always empty and occupied by the ajax notices. The snippet removed them from archives and home page right?

Thank you! Tony


Tony

  • Support Staff

May 25, 2020 at 5:30 am

The first post was always empty and occupied by the ajax notices.

We often see that when the theme/plugin is using an nth-child selector to apply applies and it can often be fixed by switching to nth-of-type.

The snippet removed them from archives and home page right?

Correct.

You can use if( is_archive() ) { for just the archives.

Viewing 4 reply threads

The support post ‘espresso-ajax-notices’ 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