Adding text to the Calendar Page

Home Forums Calendar Products Events Calendar PRO Adding text to the Calendar Page

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1098199
    Iain
    Participant

    Hi.

    I found a Forum Post that looked like it should be the answer at https://theeventscalendar.com/support/forums/topic/adding-text-to-calendar-page/

    However, after adding the code recommended into the functions.php file, the text I want to display doesn’t show.

    The code I added was as follows:

    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 ‘To see Members Only Events, you must be a Member AND Logged In.’;
    }

    }

    I will also add that the functions.php that I am editing is located in the Child Theme.

    Regards
    Iain

    #1098201
    Iain
    Participant

    Just found that with this code added to the functions.php file, the Event Preview when you hover the mouse over the Event stops working.

    #1098329
    Brian
    Member

    Hi,

    So that is a filter and not an action so the snippet will cause issues as you found out.

    I found this snippet works for me:

    https://gist.github.com/jesseeproductions/ce3a2f247fa420eac089d1ce7b14a3fe

    Let me know if it does for you.

    Cheers

    #1098601
    Iain
    Participant

    Hi Brian.

    I added that code to the functions.php.
    It did not cause any issues, but the Text is not displayed on the Calendar page.
    See http://www.computer-repairs-morayfield.com.au/jetski/events/

    Any ideas?

    Regards
    Iain

    #1098612
    Brian
    Member

    Hi,

    It looks like the Tribe Search Bar is covering everything.

    That is not our standard coding, but this css I found helped:

    #tribe-events #tribe-events-content-wrapper {
    margin-top: 65px;
    }

    Add that css to your theme’s stylesheet or through a plugin such as Simple Custom CSS.

    Let me know if that helps.

    Thanks

    #1098620
    Iain
    Participant

    Ah Ha!!
    Now that I have added that CSS, I don’t need the code in the functions.php file, because I can now see the text that I added under Events>>Settings>>Display>>Advanced Template Settings

    Thanks for your help.
    Much appreciated.

    Regards
    Iain

    #1098685
    Brian
    Member

    Great, glad it helps, I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.

    Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Adding text to the Calendar Page’ is closed to new replies.