Events Made Easy Forums How do I … Generate tag in header dynamically to show title of specific event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #58003
    Anonymous
    Inactive

    Hi Franky,

    As you know, the <title> tag in the header section on individual event listings always shows the WordPress events page title. For example, on our site nblearningsource.com, the event title always shows:
    <title>Class Listings – North Bay Learning Source</title>

    I’m hoping you can tell me how/where I can set the <title> tag to:
    <title><“#_NAME”/></title>
    or maybe some other way have to show the particular event’s page title in the header’s <title> tag?

    Here’s a screenshot showing an example of what I mean:
    https://www.screencast.com/t/A0qyaEEO

    Looking in your code, I’ve found this file:
    /wp-content/plugins/events-made-easy/eme_events.php
    and in the function:
    eme_page_title()
    row 722 has:
    $events_page_title = $events_page->post_title
    that provides the event title.

    Maybe I can somehow use this code to set the <title> tag dynamically?

    Thanks for your help!

    #58004
    Franky
    Keymaster

    The title shows the event name if your theme uses WordPress standards. Check out the default themes (twentyseventeen or so) and how it uses wp_head .

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top