Forum Replies Created
-
AuthorPosts
-
Brett Atkin
ParticipantThe issue was caching. I host with WPEngine and they excluded the /events/ page from caching and that fixed the issue.
I recently updated my plugins, did you change something related to this?
Thanks
Brett
Brett Atkin
ParticipantHere is a solution to this issue:
http://bigspring.co.uk/solve-wordpress-active-highlighting-issues-using-custom-post-type/
I have multiple CPT’s on my site and it fixed them all. If you’re curious, this is the code I used.
// Active highlighting for CPT's // ------------------------------------------------------------------------- function custom_menu_item_classes_job_board($classes = array(), $menu_item = false){ // use this format for removing highlighting if((is_singular('shrm_job_board') || is_post_type_archive('shrm_job_board')) && $menu_item->ID == 159) { $classes = array(); } // use this format for adding highlighting if((is_singular('shrm_job_board') || is_post_type_archive('shrm_job_board')) && $menu_item->ID == 351) { $classes[] = 'active'; } return $classes; } add_filter( 'nav_menu_css_class', 'custom_menu_item_classes_job_board', 10, 2 ); function custom_menu_item_classes_events($classes = array(), $menu_item = false){ if((is_singular('tribe_events') || is_post_type_archive('tribe_events')) && $menu_item->ID == 159) { $classes = array(); } // use this format for adding highlighting if((is_singular('tribe_events') || is_post_type_archive('tribe_events')) && $menu_item->ID == 99) { $classes[] = 'active'; } return $classes; } add_filter( 'nav_menu_css_class', 'custom_menu_item_classes_events', 10, 2 );Brett Atkin
ParticipantI did customize the list-widget.php. It wasn’t anything major, so I’ll explore just updating the current plugin file with my customizations.
Thanks
Brett
Brett Atkin
ParticipantI just downgraded both plugins to the versions on the staging site and everything is working. I’m running TEC Version 3.9.3 and TEC Pro Version 3.9.1. Apparently, the recent update to 3.10 is causing issues.
Brett Atkin
ParticipantI now have version 3.10 of both TEC and TEC Pro…the widget still isn’t working on the production site.
-
AuthorPosts
