Events Archive Title and OG:Image

Home Forums Calendar Products Events Calendar PRO Events Archive Title and OG:Image

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1270903
    Logan
    Participant

    I 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…

    #1271431
    Logan
    Participant

    Anyone 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.

    #1271485
    Trisha
    Member

    Hi 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,
    Trisha

    tribe-ext-add-meta-description-to-events

    #1271541
    Logan
    Participant

    Excellent, this looks like the right direction! Thanks so much! Where do I add these files?

    #1271977
    Trisha
    Member

    Hi 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,
    Trisha

    #1272690
    Logan
    Participant

    Thanks 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 ) . ‘”/>’;
    }
    }

    #1272714
    Logan
    Participant

    Well, I installed it and it threw a fatal error…

    #1272953
    Trisha
    Member

    Hi, 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,
    Trisha

    #1272965
    Logan
    Participant

    Thanks 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

    #1274018
    Trisha
    Member

    Hi, 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,
    Trisha

    tribe-ext-add-meta-description-to-events

    #1284945
    Support Droid
    Keymaster

    Hey 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

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Events Archive Title and OG:Image’ is closed to new replies.