Home › Forums › Calendar Products › Events Calendar PRO › Removing the > Mark in Page Title Bar for Category Display in Avada Theme
- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by
Jacob.
-
AuthorPosts
-
July 26, 2018 at 5:32 pm #1584403
Jacob
ParticipantHello,
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,
JacobJuly 30, 2018 at 12:53 am #1585647Jennifer
KeymasterHello,
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
July 31, 2018 at 10:56 am #1586957Jacob
ParticipantThat first bit of PHP worked brilliantly. Thanks, Jennifer!
with appreciation,
JacobAugust 1, 2018 at 4:43 am #1587362Jennifer
KeymasterNo problem Jacob! I’m glad that worked. Please let me know if there is anything else that I can help you with!
August 23, 2018 at 9:35 am #1604145Support 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 ‘Removing the > Mark in Page Title Bar for Category Display in Avada Theme’ is closed to new replies.
