- This topic has 5 replies, 2 voices, and was last updated 5 years, 3 months ago by
Support Team.
- AuthorPosts
- January 31, 2018 at 4:55 am #4383
chum1215
ParticipantTrying to find function “wp_travel_archive_itineraries_col_per_row” but I can’t seem to find it. Want to set column to 3 instead of 2.
January 31, 2018 at 12:07 pm #4462Support Team
KeymasterHello @chum1215,
First of all thank you very much for trying out the plugin.
Now to set the itinerary column, please refer to below link:
Hope this helps.
If you have any confusion further, please let us know.
Best Regards!!
February 1, 2018 at 1:14 am #4467chum1215
ParticipantAs mentioned above, I can’t seem to find the hook. What’s the php file name or which folder? I tried searching through template-function to no avail.
This is all that I can find.
<div class="wp-travel-archive-content"> <?php if ( 'grid' === $view_mode ) : ?> <?php $col_per_row = apply_filters( 'wp_travel_archive_itineraries_col_per_row' , '3' ); ?> <div class="wp-travel-itinerary-items"> <ul class="wp-travel-itinerary-list itinerary-<?php esc_attr_e( $col_per_row, 'wp-travel' ) ?>-per-row"> <?php endif; ?> <?php endif; ?>
February 1, 2018 at 3:25 am #4468Support Team
KeymasterHello @chum1215,
The filter hook is “wp_travel_archive_itineraries_col_per_row” within the folder wp-travel\inc\class-shortcode.php using which you can change the no of column.
If you directly modify your original plugin file then all of your changes will be lost upon update of the plugin to the new version. So we strongly recommend you to go through the child theme for any code customization within the plugin.
The above solution we have mentioned can be executed using the child theme.
For this just create the child theme of your existing theme and paste the above-given code in your child theme functions.php file and it will work.
Hope this clears the confusion.
Best Regards!!
February 1, 2018 at 8:47 am #4476chum1215
ParticipantThank you!
February 1, 2018 at 9:55 am #4481Support Team
KeymasterHello @chum1215,
Glad we could help you !!
If you have any issues further, please feel free to post your queries and we will happily help you further.
We will really appreciate if you could help us too by rating our theme in WordPress repo here:-
https://wordpress.org/support/theme/wp-travel/reviews/
Best regards !!
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.