- This topic has 1 reply, 2 voices, and was last updated 6 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Generate tag in header dynamically to show title of specific event
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!
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 .