itinerary view mode

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

    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

    #4021
    absher
    Participant

    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;

    #4062
    Support Team
    Keymaster

    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.

    http://wensolutions.com/hire-wordpress-customizer/

    Hope this helps.

    Best Regards!!

    #13178
    iban
    Participant

    HOw can i change to 4 grid mode after filter?

    #13182
    wensolutions
    Keymaster

    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:

    http://wptravel.io/hire-our-customizer

    Thank you.

    #20151
    hdebeuf
    Participant

    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,

    #20159
    Support Team
    Keymaster

    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.