Removing the > Mark in Page Title Bar for Category Display in Avada Theme

Home Forums Calendar Products Events Calendar PRO Removing the > Mark in Page Title Bar for Category Display in Avada Theme

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1584403
    Jacob
    Participant

    Hello,

    I’m adding The Events Calendar Pro to a forthcoming website and displaying just a single category of events: http://bradleystudy.wpengine.com/events/category/general/

    I’ve got the Avada theme active and it integrates nicely, but picks up the full category name including the > mark in the Page Title Bar. How can I remove this?

    Here’s a quick video to show you more about this issue: https://www.useloom.com/share/5a8077eeb2294fe597abbdb0649841fc

    cheers,
    Jacob

    #1585647
    Jennifer
    Keymaster

    Hello,

    Thanks for reaching out!

    If you just want the category name, then your best bet would be to add the following to the functions.php file of your child theme:

    function tribe_alter_event_archive_titles ( $original_title, $depth ) {
    $tribe_ecp = Tribe__Events__Main::instance();
    if ( is_tax( $tribe_ecp->get_event_taxonomy() ) && $depth ) {
    $cat = get_queried_object();
    $title = $cat->name;
    return $title;
    } else {
    return $original_title;
    }
    }
    add_filter( 'tribe_get_events_title', 'tribe_alter_event_archive_titles', 11, 2 );

    If you would rather just have the “Upcoming Events” string, then you can add this instead:

    function tribe_alter_event_archive_titles ( $original_title, $depth ) {
    $tribe_ecp = Tribe__Events__Main::instance();
    if ( is_tax( $tribe_ecp->get_event_taxonomy() ) && $depth ) {
    $title = 'Upcoming Events';
    return $title;
    } else {
    return $original_title;
    }
    }
    add_filter( 'tribe_get_events_title', 'tribe_alter_event_archive_titles', 11, 2 );

    We are limited in the amount of support that we can provide for customizations, but if you have any other questions, please let me know – I’ll be happy to try to point you in the right direction! This article might also be helpful.

    Thanks,

    Jennifer

    #1586957
    Jacob
    Participant

    That first bit of PHP worked brilliantly. Thanks, Jennifer!

    with appreciation,
    Jacob

    #1587362
    Jennifer
    Keymaster

    No problem Jacob! I’m glad that worked. Please let me know if there is anything else that I can help you with!

    #1604145
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Removing the > Mark in Page Title Bar for Category Display in Avada Theme’ is closed to new replies.