Remove events-before-html from add event page

Home Forums Calendar Products Community Events Remove events-before-html from add event page

  • This topic has 4 replies, 2 voices, and was last updated 7 years ago by Casper Blackwell.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1270876
    Casper Blackwell
    Participant

    Howdy,

    Currently the Add Event page is displaying the message displayed on the Events page. (Message added to Events page via class=”tribe-events-before-html”)

    On the page where members will add their events:(http://m40.siteground.biz/~heartcor/theaumnation.com/aumnationevents/aumnationevents/add) is it possible to change the class=”tribe-events-before-html” field to text that is only displayed on the /aumnationevents/add page and not repeat the message from the events page?

    Thanks in advance,
    Casper

    #1270979
    Trisha
    Member

    Hi Caspar,

    Thank you for using The Events Calendar, I can help with this!

    Start by copying the default template into your theme as described in the Themer’s Guide here: https://theeventscalendar.com/knowledgebase/themers-guide/

    You can find that template in ‘the-events-calendar/src/views/default-template.php

    After you’ve copied that over change Line 20 from

    tribe_events_before_html();

    to
    if( is_front_page() || tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || tribe_is_map() || tribe_is_photo() || tribe_is_week() ) { tribe_events_before_html(); }

    That should get you set up! Let me know if you need anything else, I’m happy to help!

    Cheers,
    Trisha

    #1271311
    Casper Blackwell
    Participant

    Thanks Trisha!

    #1271932
    Trisha
    Member

    Hi, Casper!

    Glad to hear it worked for you! Have a great week 🙂

    Cheers,
    Trisha

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove events-before-html from add event page’ is closed to new replies.