Support

Home Forums Event Espresso Premium Content in title bar (Avada Theme)

Content in title bar (Avada Theme)

Posted: February 7, 2022 at 7:50 am

Viewing 8 reply threads


motio

February 7, 2022 at 7:50 am

Hey guys,
because the error is happening in the event espresso single/event page and doesn’t happen with other custom post types, I was wondering if you could give me a hint. In the Avada theme, if I add a custom title bar, it just prints the content into it. So the content is shown twice above each other, first in the section title bar and than the content itself.


Tony

  • Support Staff

February 7, 2022 at 8:52 am

Hi there,

How are you adding a custom title bar?

Can you share the code you are using (if any) so we can take a look?

Also, if you can link to an event this is happening on that will also help.


motio

February 8, 2022 at 9:32 am

This reply has been marked as private.


motio

February 9, 2022 at 2:44 am

I’ve tried it another time at the Avada support and this is their responds:

Thank you for the update, I have checked it further, it is not an issue related to page options, it is more of a WP hook that is being used by the Avada builder and the same hook is being used by the events plugin, it is "the_content" filter hook, we do have a solution for this but the plugin author will have to cooperate on that, The trick is to remove third-party plugin hooks before our section layout is loaded using the following hook,

awb_remove_third_party_the_content_changes

Once the Avada builder is done, the following hook can be used to readd third-party plugin hooks,

awb_readd_third_party_the_content_changes

These are actions hooks that can be used by the plugin author to first remove their hook according to their code and then read their hooks once the Avada builder has finished its loading of content.


Tony

  • Support Staff

February 10, 2022 at 8:51 am

Hmm, ok, I’ll need to take a look at this to see what is going on.

Can you send me a copy of Avada builder (and anything else I may need from them) so I can install them locally and review? We may be able to provide a snippet to work around this, but I need to see the code to know for sure.


motio

February 10, 2022 at 9:34 am

This reply has been marked as private.


Tony

  • Support Staff

February 16, 2022 at 9:16 am

Hi there,

Try this snippet:

https://gist.github.com/Pebblo/bb0c36c05392a3b91ea1c635fcaa794d

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

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

That removes the_content filter from the single event output and then re-adds it when the build has finished.


motio

February 16, 2022 at 9:59 am

Hi Tony,
It is working correctly again. Thanks a lot for your help.


Tony

  • Support Staff

February 16, 2022 at 2:01 pm

You’re most welcome.

Viewing 8 reply threads

The support post ‘Content in title bar (Avada 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