Home › Forums › Calendar Products › Events Calendar PRO › Adding text to the Calendar Page
- This topic has 6 replies, 2 voices, and was last updated 10 years, 1 month ago by
Brian.
-
AuthorPosts
-
April 4, 2016 at 11:01 pm #1098199
Iain
ParticipantHi.
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
IainApril 4, 2016 at 11:07 pm #1098201Iain
ParticipantJust found that with this code added to the functions.php file, the Event Preview when you hover the mouse over the Event stops working.
April 5, 2016 at 8:36 am #1098329Brian
MemberHi,
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
April 5, 2016 at 1:51 pm #1098601Iain
ParticipantHi 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
IainApril 5, 2016 at 2:01 pm #1098612Brian
MemberHi,
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
April 5, 2016 at 2:14 pm #1098620Iain
ParticipantAh 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 SettingsThanks for your help.
Much appreciated.Regards
IainApril 5, 2016 at 4:10 pm #1098685Brian
MemberGreat, 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!
-
AuthorPosts
- The topic ‘Adding text to the Calendar Page’ is closed to new replies.
