Using "Add HTML before event content"

Home Forums Calendar Products Community Events Using "Add HTML before event content"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1338671
    Anthony Renna
    Participant

    I used the Add HTML before event content feature to add some instructions to my calendar page. The problem I am having is that when I go to Add an Event page (I have Community Events plug in) the same content is in front of the submission form. How can i change that and maybe add a separate “Add HTML before event” content to the submission page?

    #1338919
    Jennifer
    Keymaster

    Hi Anthony,

    Thanks for reaching out. The content that you put in that box will display above all of the event pages on your site.

    To conditionally display content on certain pages, you can add the following to the functions.php file of your child theme.

    function tribe_custom_html_before_event( $before ) {

    if( tribe_is_community_edit_event_page() ) {
    $before = 'My custom content on the Community page';
    }

    if ( tribe_is_month() ) {
    $before = 'My custom content above the month view';
    }

    return $before;

    }
    add_filter( 'tribe_events_before_html', 'tribe_custom_html_before_event' );

    You can add in additional conditions and content if you would like – this list of our available functions along with our themer’s guide are great resources for customizing our plugins.

    I hope that helps. Please let me know if you have any questions!

    Thanks,

    Jennifer

    #1338945
    Jennifer
    Keymaster

    It looks like we also have an extension that might help you out here…let me know how that works for you!

    #1349240
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Using "Add HTML before event content"’ is closed to new replies.