[Plugin: The Events Calendar] current_page_item weirdness
-
TEC 2.0.4
A common thing we do is to have pages in our nav redirect to category pages produced by the events calendar plugin.
Redirect eg. at top of header.php:$loc = "https://"; $loc .= $_SERVER['SERVER_NAME']; if(is_page('Page Name')) { $loc .= "/events/category/cat/upcoming/"; header( "Location: $loc" ) ; }
This has worked well enough on previous sites.
We would write some css to spoof the .current_page_item in the nav.On our current site, for some reason WordPress is thinking that other pages are the current page. It is adding .current_page_item and .current_page_ancestor to seemingly random pages.
The site is not public at the moment, but selective access can be granted.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: The Events Calendar] current_page_item weirdness’ is closed to new replies.