"View As" section display view options without having to click on the button

Home Forums Calendar Products Filter Bar "View As" section display view options without having to click on the button

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1175756
    Tracie Schmitt
    Participant

    I want to make the “View As” section to automatically display view options such as Month List Week without having the user to click the “View As” button for those options to display. All the options will be displayed on default with no clicking. How do I do? Which query do I use?

    #1175876
    Josh
    Participant

    Hey Tracie,

    Thanks for reaching out to us!

    Try adding the following snippet to your child theme’s functions.php file:

    
    /**
     * Force the "View as" selector to always be open.
     *
     * @link http://theeventscalendar.com/?p=1173858
     */
    function tribe_force_views_selector_to_always_be_open() { ?>
    	<script type="text/javascript">
    		document.getElementById( 'tribe-bar-views' ).classList.add( 'tribe-bar-views-open' )
    	</script><?php
    }
    
    add_action( 'tribe_events_bar_after_template', 'tribe_force_views_selector_to_always_be_open' );
    

    Let me know if this helps.
    Thanks!

    #1187762
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘"View As" section display view options without having to click on the button’ is closed to new replies.