Trips Archive: Travel View Mode List

Homepage Forums WP Travel Trips Archive: Travel View Mode List

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22528
    Sakuna
    Participant

    Hey @support:

    Theme: Travel Base Pro
    Plugin: WP Travel
    Plugin: WP PayPal
    Plugin: WP Utilities

    I would like to remove the Travel View Mode List visible on the Trips Archive page. I think this is located in a js assets file pathway > /assets/js/wp-travel-view-mode.min.js .

    How can I quickly (and correctly) mark this out?

    Thoughts?

    #22543
    wensolutions
    Keymaster

    Hello,

    Please add following given code in functions.php file of your child theme to set grid view of trip by default.

    function wp_travel_view_mode(){
    	return "grid";
    
    }
    add_filter('wp_travel_default_view_mode','wp_travel_view_mode');

    Also, please add following given CSS code in Additional CSS section to remove the view mode(list icon) option in archive page.

    .archive .wp-travel-view-mode .dashicons-list-view{
      display: none;
    }

    Hope this helps.

    If you have any queries further, let us know.

    Thank you.

    #22570
    Sakuna
    Participant

    Thanks!

    #22574
    wensolutions
    Keymaster

    Hello,

    Glad that we could help you.

    If you have any queries further, let us know.

    Thank you.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.