Adding text to calendar page

Home Forums Calendar Products Events Calendar PRO Adding text to calendar page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #60154
    Steve LaBadie
    Participant

    Is it possible to add text below the calendar on the events/ page?

    #60618
    Leah
    Member

    Hi Steve,

    Yes it is šŸ˜€ If you go to Events –> Settings and click the Display tab, you’ll see an option for Add HTML Before Calendar and Add HTML After Calendar. You can add text (as well as html tags) there and it will appear Above or Below the event listings on your site.

    Best,
    Leah

    #940664
    Carlos
    Participant

    I’m confused. I’m trying to add text above the Events Calendar and ONLY on the Calendar (not on individual event pages) but a) my Events Pro shows Events->Settings->Display and the option is Add HTML Before (and After) Event Content.
    So when I add the text it appears on all pages, not just the calendar.

    Help?

    #940720
    Geoff
    Member

    Hi there, Carlos!

    We typically ask that you start a new thread if you’d like direct support on a follow-up question to someone else’s thread, but I’m happy to help point you in the right direction here.

    Yes, that option will add content to all pages throughout the plugin. If you are looking to just above the main calendar, you can use a snippet like this in your themes’sĀ functions.php file:

    add_action( 'tribe_events_before_html', 'custom_events_before_html' );
    
    function  custom_events_before_html() {
    
    // Check if displaying month view
    if ( tribe_is_month() ) {
      echo 'Your text goes here!';
    }
    
    }

    That should get you what you’re looking for. I’ll go ahead and close this thread, but please feel free to open a new one if you have any follow-up questions and we’d be happy to help. šŸ™‚

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding text to calendar page’ is closed to new replies.