itinerary view mode

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #4020

    by default WP Travel showing itinerary/?view_mode=list

    how can we cange default view to itinerary/?view_mode=grid

    i have added widgets to home page they also in list mode how can i use grid mode for widget


    got codes but how can change grid mode for widgets like class-wp-travel-widget-featured.php

    function wp_travel_get_archive_view_mode() {
    $default_view_mode = ‘grid’;
    $default_view_mode = apply_filters( ‘wp_travel_default_view_mode’, $default_view_mode );
    $view_mode = $default_view_mode;
    if ( isset( $_GET[‘view_mode’] ) && ( ‘grid’ === $_GET[‘view_mode’] || ‘list’ === $_GET[‘view_mode’] ) ) {
    $view_mode = $_GET[‘view_mode’];
    return $view_mode;

    Support Team

    Hello @absher,

    Currently, the theme does not have the feature to switch the layout for the widgets like class-wp-travel-widget-featured.php.

    However, we will consider it as the requested featured and will try to include it in the coming updates.

    But if you still want it currently, our suggestion to you is to hire the professional developer so that your code won’t be affected in any way.

    To hire the developer please refer to below link.

    Hope this helps.

    Best Regards!!


    HOw can i change to 4 grid mode after filter?


    Hello @iban,

    Currently, it is not possible in the WP Travel plugin and as much as we would like to help you with this we are unable to do so as it requires higher code customization.

    So if you require then you can hire the professional developer.

    To hire a developer refer to below given link:

    Thank you.


    Hi everyone,

    Actually, by adding the following filter in the functions.php of your template, you can manage to define the default view mode.

    function default_grid_mode(){
            return 'grid';
    add_filter( 'wp_travel_default_view_mode', 'default_grid_mode' );

    Best regards,

    Support Team

    Hello @hdebeuf,

    Thank you for helping out for those who are looking for the same solutions.

    Further, if you have any queries then kindly let us know.

    Thank you.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.