Support

Home Forums Event Espresso Premium espresso-ajax-notices

espresso-ajax-notices

Posted: May 24, 2020 at 3:56 am


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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 3 months, 4 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!