Set itinerary col per row

Homepage Forums WP Travel Set itinerary col per row

This topic contains 5 replies, has 2 voices, and was last updated by  Support Team 1 year, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4383

    chum1215
    Participant

    Trying 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.

    #4462

    Support Team
    Keymaster

    Hello @chum1215,

    First of all thank you very much for trying out the plugin.

    Now to set the itinerary column, please refer to below link:

    http://wptravel.io/documentations/developer-documentation/filter-hook/wp_travel_archive_itineraries_col_per_row/

    Hope this helps.

    If you have any confusion further, please let us know.

    Best Regards!!

    #4467

    chum1215
    Participant

    As 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; ?>
    #4468

    Support Team
    Keymaster

    Hello @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!!

    #4476

    chum1215
    Participant

    Thank you!

    #4481

    Support Team
    Keymaster

    Hello @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 !!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.