Detecting Grid View

Home Forums Calendar Products Events Calendar PRO Detecting Grid View

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #57749
    Dokuchie Rob
    Participant

    I 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?

    #57760
    snorton
    Participant

    I 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

    #57761
    snorton
    Participant

    Oops, 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() )

    #57765
    Dokuchie Rob
    Participant

    That 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.

    #57769
    snorton
    Participant

    Amen, 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.

    #58050
    Leah
    Member

    Thanks snorton! Rob, it sounds like you’re all set here?

    #58053
    snorton
    Participant

    No problem, @Leah. That’s how I like to roll.

    #58415
    Rob
    Member

    You 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? 🙂

    #979744
    Support Droid
    Keymaster

    This 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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Detecting Grid View’ is closed to new replies.