Hey, I am new here so please forgive me if I am asking something that has already been answered.
I am using the Tribes calendar and I want the sidebar from my site to be removed. I have gone through this post, but it doesnt work: Roots and Modern Tribe's Events Calendar
I have created the duplicate default-template.php but nothing happens.
I was having the same issue with woocommerce until I added “‘is_woocommerce’,” to the lib/config.php file and it removed it for woocommerce. Is there the same hack that I can use for the Tribes calendar. I just dont know what to script in: “‘is_tribes’ (???),” I hope someone can help
I just tried :
array(
‘is_404’,
‘is_front_page’,
‘tribe_is_upcoming’
),
And It works now.
Just take a look at https://gist.github.com/jo-snips/2415009 for your functions u wanna detect.
You’re also posting code with fancy quotes and the filter you’re using isn’t calling the function correctly. It’s NAMESPACE . '\\function_name — note the two \\'s, not one…
If you provide this as a conditional, i.e. if (array ( tribe_is_event() && is_single() )) it will always return true because you’re passing an array as a boolean, which will always return true.
In theory, this conditional should return true on individual calendar events and calendar event archives:
if (tribe_is_event() || is_post_type_archive('tribe_events'))