- This topic has 6 replies, 5 voices, and was last updated 3 years, 8 months ago by
Support Team.
- AuthorPosts
- January 20, 2018 at 5:35 pm #4020
absher
Participantby 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
January 20, 2018 at 6:48 pm #4021absher
Participantgot 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;January 22, 2018 at 6:05 am #4062Support Team
KeymasterHello @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!!
April 5, 2019 at 10:01 am #13178iban
ParticipantHOw can i change to 4 grid mode after filter?
April 5, 2019 at 11:30 am #13182wensolutions
KeymasterHello @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.
September 30, 2019 at 5:00 pm #20151hdebeuf
ParticipantHi 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,
October 1, 2019 at 3:27 am #20159Support Team
KeymasterHello @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.
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.