The load_ecp_into_page_template method overrides page builder content

Home Forums Calendar Products Events Calendar PRO The load_ecp_into_page_template method overrides page builder content

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1012412
    Paul Gray
    Participant

    Hi

    I am suffering from the issue discussed here:

    https://wordpress.org/support/topic/the-load_ecp_into_page_template-method-overrides-page-builder-content

    I see the comments from TEC saying it will be dealt with but in the meantime, I also note the poster suggested changing a filter priority on Tribe__Events__Templates::load_ecp_into_page_template as a work around.

    Trouble is, I cannot find that template and the code

    add_filter( ‘the_content’, array( __CLASS__, ‘load_ecp_into_page_template’ ), 9 );

    to change it!

    Can you tell me where it is?

    Thank you.

    Paul

    #1012682
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    It appears that filter is in this template on line 285 for version 3.12:

    the-events-calendar/src/Tribe/Templates.php

    Looks like if you change this:

    add_filter( 'the_content', array( __CLASS__, 'load_ecp_into_page_template' ) );

    To this:

    add_filter( 'the_content', array( __CLASS__, 'load_ecp_into_page_template' ), 9 );

    That should help fix this.

    Let me know if that does for you.

    Thanks

    #1012731
    Paul Gray
    Participant

    Thanks for coming back to me.

    Sadly that seems to stop the pages loading altogether.

    The homepage on my dev site loads fine

    http://dev.symposium-events.co.uk/

    but not events such as

    http://dev.symposium-events.co.uk/event/workplace-wellbeing-and-stress-forum-2015/

    #1012872
    Brian
    Member

    Hi,

    I changed the priority on my test site and the events all loaded. That is both single events and the event views.

    So it does not cause an outright error.

    If you disable the Page Builder Plugin does the single events work again?

    What about changing the event template, does that help?

    Events > Settings > Display Tab

    Then change this setting:

    Events Template to Default Page Template or another setting

    Let me know if that helps, I can try to help some more, but I am limited in supporting 3rd party conflicts and may not have a way to resolve this.

    Let me know though.

    Thanks

    #1013047
    Paul Gray
    Participant

    Hi

    If I change from Full Width to the Default Events Template the content does now appear – although it does not look quite right. Does that help narrow the issue down?

    Paul

    #1013144
    Brian
    Member

    Ok that is moving it forward.

    I visited a single event and it looked good for the most part.

    What parts are off to you?

    I maybe to help with some css to fix it, but limited in resolving everything.

    Let me know.

    Thanks

    #1013147
    Paul Gray
    Participant

    Hi

    Thank you.

    Here is an example of a live event on our real site

    http://www.symposium-events.co.uk/event/mediation-skills-training-mst06/

    Header and widths appear different to the dev site equivalent:

    http://dev.symposium-events.co.uk/event/mediation-skills-training-mst06/

    PG

    #1013197
    Brian
    Member

    Hi,

    I found this css helps with the major issue:

    .single-tribe_events #tribe-events-pg-template {
    max-width: 100%;
    }

    I can maybe help with one or two points more, but not much more then this unfortunately.

    Let me know.

    Thanks

    #1017567
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘The load_ecp_into_page_template method overrides page builder content’ is closed to new replies.