Home › Forums › Calendar Products › Community Events › Add text above submission form
- This topic has 8 replies, 2 voices, and was last updated 7 years, 8 months ago by
lucy maddison.
-
AuthorPosts
-
July 12, 2018 at 4:35 am #1573365
lucy maddison
ParticipantHI,
I want to put some text above my submissions from and have followed the knowledge base link and have the following code in my functions.php, as you see it is putting the text on the form and not above in the white area. Can this be solved please?
Thanksfunction tribe_add_community_sponsor_message() {
echo ‘I would like this text above the form not on the form as its shown Find out more‘;
}add_action( ‘tribe_events_community_form_before_template’, ‘tribe_add_community_sponsor_message’ );
July 12, 2018 at 2:12 pm #1574121Cliff
MemberHi again, Lucy. Thanks for your detailed question.
You could try this action hook instead: tribe_pre_get_template_part_community/modules/header-links
Please let me know how this goes for you.
July 13, 2018 at 1:12 am #1574414lucy maddison
ParticipantHI Cliff,
Thanks for your reply. So I have found the header links file, no idea
what to do now. Please advise, this maybe everyday stuff for you but not
for me!Lucy
July 13, 2018 at 3:32 am #1574479lucy maddison
Participant..Still my birthday for this one, and Trump is here!
July 13, 2018 at 6:15 am #1574568Cliff
MemberSame code you shared, just a different action hook, like this:
function tribe_add_community_sponsor_message() {
echo ‘I would like this text above the form not on the form as its shown Find out more‘;
}add_action( ‘tribe_pre_get_template_part_community/modules/header-links’, ‘tribe_add_community_sponsor_message’ );
July 16, 2018 at 4:35 am #1575971lucy maddison
ParticipantThanks, I get a syntax error on that. See attachment
July 16, 2018 at 2:39 pm #1576592Cliff
MemberPlease correct those “curly quotes” to straight quotes… Use https://dan.hersam.com/tools/smart-quotes.html if needed.
July 16, 2018 at 11:59 pm #1576820lucy maddison
ParticipantHi Cliff,
I have fixed curly quotes and put the text in. But as you can see its
still on the form not above it. 🙁https://streathamfestival.com/events/community/add
Lucy
July 17, 2018 at 11:43 am #1577470Cliff
MemberGotcha. Thanks for clarifying. Try this action hook instead: tribe_ce_before_event_submission_page_template
August 8, 2018 at 9:35 am #1593066Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Add text above submission form’ is closed to new replies.
