Home › Forums › Calendar Products › Events Calendar PRO › Detecting Grid View
- This topic has 8 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
July 30, 2013 at 7:30 am #57749
Dokuchie Rob
ParticipantI need to detect grid view. There use to be a function like ‘is_grid’ or something like that.
On this latest version I’m using ‘if( tribe_is_month() && !is_tax() )’ which I found somewhere on these forums but it’s NOT working, and neither are any possible variants of that.
I just want to be able to not show my template sidebar when viewing grid view. Is there a list in the documentation for the different views such as ‘is_grid’, or ‘is_single_event’ etc?
July 30, 2013 at 8:19 am #57760snorton
ParticipantI think you’re looking for tribe_is_month (which checks if is the month grid view).
Check out docs.tri.be for very useful references
July 30, 2013 at 8:20 am #57761snorton
ParticipantOops, I see you already tried that. I tried that, too, for some conditionals that I was working on and it didn’t work for me, so what I’ve done that DOES work is this:
if(tribe_is_month() && !is_home() && !is_page() )July 30, 2013 at 8:23 am #57765Dokuchie Rob
ParticipantThat worked. Your help is very much appreciated. Cheers.
Although it’d be great if the function ‘tribe_is_month’ simply worked the way it’s supposed to.
July 30, 2013 at 8:30 am #57769snorton
ParticipantAmen, brother! I’ve also noticed that the other view detectors have the same issue where you have to check if is tribe view and not page. Wish I had the time to dive deeper into play around with the cause there. I do best enough to hover in this forum looking for answers to common problems and share my solutions with others when I have them (on top of actual work lol). Glad I could help.
July 31, 2013 at 10:35 am #58050Leah
MemberThanks snorton! Rob, it sounds like you’re all set here?
July 31, 2013 at 10:41 am #58053snorton
ParticipantNo problem, @Leah. That’s how I like to roll.
August 1, 2013 at 3:51 pm #58415Rob
MemberYou rock, snorton. Totally appreciate the help you’ve offered here and in other threads. If you’re looking for work, have you seen our “yellow” message atop this page? 🙂
July 7, 2015 at 6:27 am #979744Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Detecting Grid View’ is closed to new replies.
