Add text above submission form

Home Forums Calendar Products Community Events Add text above submission form

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1573365
    lucy maddison
    Participant

    HI,
    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?
    Thanks

    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_events_community_form_before_template’, ‘tribe_add_community_sponsor_message’ );

    #1574121
    Cliff
    Member

    Hi 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.

    #1574414
    lucy maddison
    Participant

    HI 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

    #1574479
    lucy maddison
    Participant

    ..Still my birthday for this one, and Trump is here!

    #1574568
    Cliff
    Member

    Same 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’ );

    #1575971
    lucy maddison
    Participant

    Thanks, I get a syntax error on that. See attachment

    #1576592
    Cliff
    Member

    Please correct those “curly quotes” to straight quotes… Use https://dan.hersam.com/tools/smart-quotes.html if needed.

    #1576820
    lucy maddison
    Participant

    Hi 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

    #1577470
    Cliff
    Member

    Gotcha. Thanks for clarifying. Try this action hook instead: tribe_ce_before_event_submission_page_template

    #1593066
    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 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add text above submission form’ is closed to new replies.