other plugin shortcodes in Add HTML before calendar

Home Forums Calendar Products Events Calendar PRO other plugin shortcodes in Add HTML before calendar

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25117
    Sean
    Participant

    is there a way to use shortcodes in Events>Settings>Template>Add HTML before calendar?
    we use an advertising plugin and would like to incorporate it to show some ads above the calendar

    [adrotate block=”4″]

    #25258
    Jonah
    Participant

    Hi Sean,

    No, you cannot use shortcodes in those boxes but you can add the shortcodes to the template directly. Note, you must be using the Default Events Template in Events > Settings > Template. Make a copy of /wp-content/plugins/the-events-calendar/views/ecp-page-template.php and place in an ‘events’ folder in your theme. Then, open up the file and you’ll see the function calls to tribe_events_before_html() and tribe_events_after_html(). Then just execute the do_shortcode() (http://codex.wordpress.org/Function_Reference/do_shortcode) function wherever you want:

    echo do_shortcode('[adrotate block="4"]');

    That should work but let me know if you need anything else.

    Regards,
    Jonah

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘other plugin shortcodes in Add HTML before calendar’ is closed to new replies.