Click on image to redirect to Tour (or Hotel)

Closed
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme November 08, 2018
Login to reply
Kelly R Support Agent
5 years ago
Resolved.
Kelly R Support Agent
5 years ago

Hi,

Please give me your website url and admin credentials.

And give me ftp information.

I will help you do it in your website.

Regards, C-Themes


J M G
5 years ago

Your code line doesnt work.

I thought you made a mistake, forgetting : #" data-post_id="  in the code line you sent.

Did you mean : <a href="#" data-post_id="<?php echo esc_url( get_permalink( $acc_id ) ); ?>"><?php echo get_the_post_thumbnail( $acc_id, 'biggallery-thumb' ); ?></a> 

BUT STILL WITH THIS NEW LINE APPLIED, IT DOESNT WORK.

Please check it out,

Please also send the line of code to do the same modification for TOURS and CARS (click on image leads to item (and not gallery).

Have a good day




Kelly R Support Agent
5 years ago

Hi,

Please find all the following codes in /inc/frontend/accommodation/template.php

<a href="#" data-post_id="<?php echo esc_attr( $acc_id ) ?>" class="hover-effect popup-gallery"><?php echo get_the_post_thumbnail( $acc_id, 'biggallery-thumb' ); ?></a>

And replace to following.

<a href="<?php echo esc_url( get_permalink( $acc_id ) ); ?>"><?php echo get_the_post_thumbnail( $acc_id, 'biggallery-thumb' ); ?></a>

Regards, Kelly

J M G
5 years ago

Hello,

when clicking on an image in the Tour or Hotel main page, I want a redirection to the hotel page, instead of opening the image gallery. 

This issue has been submitted previously on the Travelo forum, but has only been partially answered (see the screen captures).

I did locate the PHP file, can you now send me the exact text and position to insert it.

Many thanks !