How to append the_title with city and state

Home Forums Calendar Products Community Events How to append the_title with city and state

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1021973
    dschwinler
    Participant

    Hi,

    On the single-event.php I’d like to add ” Training – City, State” after the_title.
    <?php the_title( '<h2 class="tribe-events-single-event-title summary entry-title">', '</h2>' ); ?>
    Could you show me how to do that?
    Thanks!

    • This topic was modified 10 years, 6 months ago by dschwinler.
    • This topic was modified 10 years, 6 months ago by dschwinler.
    • This topic was modified 10 years, 6 months ago by Geoff.
    #1022169
    Geoff
    Member

    Hello David and welcome to the forums! I hope you’ve been enjoying the plugins so far. šŸ™‚

    Good question. Try adding this snippet to your theme’sĀ functions.php file:

    https://gist.github.com/geoffgraham/8081a23fbe809cf10a06

    That will append the city and state of the event to the event title in the single event view. Let me know if it does the trick for you.

    Cheers!
    Geoff

    #1022223
    dschwinler
    Participant

    Loving the plugins so far. This works great Geoff, thank you!

    #1022250
    Geoff
    Member

    My pleasure! Thanks for the kind words and feel free to hit us up if you run into any other questions. šŸ™‚

    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to append the_title with city and state’ is closed to new replies.