duplicate tribe_events_after_html and tribe_events_before_html calls

Home Forums Calendar Products Community Events duplicate tribe_events_after_html and tribe_events_before_html calls

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1056203
    dsmith31
    Participant

    I’ve just added the community events add-on, and was having a problem with the before and after html content being displayed twice. These functions are called in the theme file so it displays with the calendar, but I’ve also found the same function calls in /src/Tribe/Main.php that appears to be causing the duplication. Shouldn’t this function only be called from the theme file, so I’m not left modifying the plugin files that will be overwritten with the next plugin update?

    #1056375
    Geoff B.
    Member

    Good morning Daniel and welcome to our support forums!

    Thank you for your question.

    You are absolutely right, the function should be only called once.

    In fact, if you haven’t already, I would recommend reading our themer’s guide which gives precise instructions on how to make your customizations upgrade resistant.

    If you follow these instructions (depending on what you are trying to accomplish), the customizations will have precedence over the plugin calls.

    Let me know if that helps you get rid of the duplicate code.

    Have a great day!

    Geoff B.

    #1068455
    Meghan Cooper
    Participant

    I’m having the same issues. I’m not going to lie, the themer’s guide is pretty complicated to understand for a non-advanced coder or website designer. Seems more like a bug if it is showing up twice.

    This helped to remove it completely

    tribe-events-before.html duplicated on community page

    But I’d love to still be able include a custom before and after on the community events page that is different from the calendar itself.

    • This reply was modified 10 years, 2 months ago by Meghan Cooper.
    #1068508
    Geoff B.
    Member

    Good evening Meghan,

    Thank you for offering your solution to the thread.
    Hopefully this will be helpful to Daniel.

    As per your suggestion, this would be a great feature request. Please feel free to add it to our User Voice forum.

    Best regards,

    Geoff B.

    #1068510
    Geoff B.
    Member

    Oh, I did forget something important.

    The good news is that this has been identified as a legitimate bug.

    Unfortunately, I cannot commit to a release date for a fix at this point. But you will be contacted as soon as there is one.

    Have a good week-end,

    Geoff B.

    #1071548
    Meghan Cooper
    Participant

    I also discovered that it happens on the My Events page as well when you are logged in.

    #1071804
    Geoff B.
    Member

    Thank you for your input Meghan.

    I will add this information to the bug ticket.

    Have a great day!

    Geoff B.

    #1077063
    Geoff
    Member

    Hey there!

    Just wanted to jump in here and let you know that we released Community Events 4.0.3 last night and it included a fix for this issue. Please check your WordPress updates, or you can also grab the latest copy by logging into this site and heading to My Account > Downloads.

    Thanks for your patience while we worked on this! Please feel free to open a new thread if you continue to experience the same issue or have any other questions that pop up during updating and we’d be happy to help. 🙂

    Cheers!
    Geoff

    #1085250
    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 ‘duplicate tribe_events_after_html and tribe_events_before_html calls’ is closed to new replies.