Add Custom Text to 'Submit An Event' Page

Home Forums Calendar Products Community Events Add Custom Text to 'Submit An Event' Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1077737
    CDC
    Participant

    Hi,

    I was wondering if it is possible to add custom text (like a couple of sentences) to the ‘Submit An Event’ page, which is an auto-generated page; so not actually directly editable in the back-end of WordPress.

    Please let me know if it is possible and how to go about doing it.

    Thanks,
    CDC

    #1077792
    Josh
    Participant

    Hey CDC,

    Sure thing! There are two hooks available that you could use – one for before the form and one for after:

    ‘tribe_events_community_form_after_template’
    ‘tribe_events_community_form_before_template’

    You can hook functions that include your custom text to either of these locations depending on where you would like it to display.

    For example:

    
    add_action( 'tribe_events_community_form_before_template', 'my_custom_text' );
    function my_custom_text() {
    echo '<p>my custom text</p>';
    }
    

    added to your theme’s functions.php file would add the text above the form.

    Let me know if this helps.

    Thanks!

    #1085275
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add Custom Text to 'Submit An Event' Page’ is closed to new replies.