Home › Forums › Calendar Products › Events Calendar PRO › Events Archive Title and OG:Image
- This topic has 11 replies, 2 voices, and was last updated 8 years, 11 months ago by
Logan.
-
AuthorPosts
-
April 17, 2017 at 6:57 pm #1270903
Logan
ParticipantI am looking to promote my main calendar page, but I am finding myself restricted by not being able to change the page title or OG Image (for facebook sharing). Suggestions? I’ve found a couple similar posts with no real solution. I have no idea why is not included in the settings…
April 18, 2017 at 8:02 pm #1271431Logan
ParticipantAnyone have any suggestions? This is terribly frustrating as we are rolling out our events calendar tomorrow, but I can’t figure out how to change the Page Title (to something specific), the OG share image, or the meta description, per event category…. or on the main ‘Events Archive’. Please help.
April 18, 2017 at 10:45 pm #1271485Trisha
MemberHi Logan!
I can help with this! I have a custom extension I wrote for another customer that will help get you started. I’m attaching the file here.
This extension only provides a field for the Event Description. I can modify that to add the other fields but I won’t be able to get that done until sometime tomorrow. If you know PHP feel free to attempt the modification yourself…otherwise I will update this thread when I have the rest complete.
I hope this helps! Let me know 🙂
Cheers,
TrishaApril 19, 2017 at 4:25 am #1271541Logan
ParticipantExcellent, this looks like the right direction! Thanks so much! Where do I add these files?
April 19, 2017 at 10:13 pm #1271977Trisha
MemberHi Logan,
After looking more closely at what you need this is what I recommend.
Install the file I sent just like you would a plugin. It adds a new tab called ‘SEO’ to the ‘Event > Settings’. You can add the meta description there.
Assuming you’re using ‘Yoast SEO’, make the sure Advanced field in checked in the General tab in the settings for that plugin. After that, you can edit site-wide page title configuration. See the screenshot:

Adding the OG:Image is a much bigger customization than we can do but if I remember correctly there are plugins in the WordPress.org repository that will do this for you.
I hope this helps! Let me know how it goes.
Cheers,
TrishaApril 21, 2017 at 8:33 am #1272690Logan
ParticipantThanks for this Trisha. However, I am still stuck. I am really surprised this isn’t a more discussed issue. WHat I need is a separate META Title tag and META description tag for the main upcoming Events Page and the Month View page. This should also not affect category views. Does this make sense? You have this in the code, which I think would make it so the same Title and Description are applied to all pages… unfortunately, this will affect SEO negatively, I need uniques titles/descriptions for the two pages (month/main):
if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || tribe_is_map() || tribe_is_photo() || tribe_is_week() ) {
$seo_description = tribe_get_option( ‘seo-meta-description’ );
if ( ! empty( $seo_description ) ) {
echo ‘<meta name=”description” content=”‘ . esc_attr( $seo_description ) . ‘”/>’;
}
}April 21, 2017 at 9:11 am #1272714Logan
ParticipantWell, I installed it and it threw a fatal error…
April 21, 2017 at 6:32 pm #1272953Trisha
MemberHi, Logan!
I’m sorry to hear about the fatal. Would you mind sharing the error message? I’d like to see if we can fix that.
As far as the other issues you’re having, that’s a quick code fix which I’ll do for you once I find out what the error is.
I’ve seen this topic come up off and on but there really isn’t a robust solution. I’d like to see that happen but it will take some time.
Cheers,
TrishaApril 21, 2017 at 7:38 pm #1272965Logan
ParticipantThanks Trisha. Here is the error:
Fatal error: Call to undefined function tribe_is_map() in /home/pedaling/bikepacking.com/wordpress/wp-content/plugins/tribe-ext-add-meta-description-to-events/tribe-ext-add-meta-description-to-events.php on line 52
April 25, 2017 at 7:03 am #1274018Trisha
MemberHi, Logan!
I some testing to see if it would be a quick fix to accommodate your needs but a customization like this is really outside of our scope of support.
I did change the conditionals so that the event will show up only on the month or upcoming views. I’m not sure why the map view would throw a fatal error, I disabled map view locally and did not get the same error. I’m thinking there might be a conflict within your theme, possibly in the load order.
Feel free to work with this code to come up with something that better suits your needs.
Cheers,
TrishaMay 17, 2017 at 9:36 am #1284945Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Events Archive Title and OG:Image’ is closed to new replies.
