Would like to add custom text

Home Forums Calendar Products Events Calendar PRO Would like to add custom text

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #762556
    mjfrazier
    Participant

    I would like to add a custom text underneath the “Events for (month) (Year)”
    The text would read ” Double click on event to see details and entry forms when available” Is this possible?

    #763990
    Brian
    Member

    Hi, thanks for using out plugin and I can help you get in the right direction.

    There are a couple ways you can do this.

    Template Method
    You can follow the Themer’s Guide and move the month/content.php to your theme and write under the this function:

    <?php tribe_get_template_part( 'month/nav' ); ?>

    The text you would like.

    Hook Method
    I came up with this function you could place in your theme’s functions.php to do the same.

    add_action( 'tribe_events_after_header', 'ecp_under_title_function' );
    function ecp_under_title_function( $query ) {
    if (tribe_is_month()) {
    echo " Double click on event to see details and entry forms when available";
    }
    }

    That should be enough to get you started you may have to style that by adding some tags and css.

    Let me know if that works for you.

    Thanks

    #815846
    Brian
    Member

    Since I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Would like to add custom text’ is closed to new replies.