Free and Premium WordPress Plugins & Themes Forums WordPress Themes Villagio Remove Amenity link
- This topic has 12 replies, 5 voices, and was last updated 1 year, 1 month ago by J. Davis.
- AuthorPosts
- April 30, 2018 at 2:03 pm #673668Massimo BHParticipant
Hello,
is there a way to remove Amenity links from the front slide and from all the other sections?April 30, 2018 at 2:50 pm #673689Stacy LindKeymasterHi Ben,
Add the following code to Appearance > Customize > Additional CSS:
.mphb-attribute-value { pointer-events: none; cursor: default; text-decoration: none; }
This will unlink all the amenities on the website.
April 30, 2018 at 3:36 pm #673702Massimo BHParticipantIt works perfectly.
Thanks for the support Stacy!August 2, 2018 at 9:29 pm #705351Luke KnowlesParticipantThe link is still in the code. Is there a way to remove it from the code where it won’t come back each time the theme updates?
August 7, 2018 at 2:53 pm #706719J. DavisKeymasterHi Luke,
If you need to remove link tags you can do that by overriding templates of plugin. For example copy the following file
\wp-content\plugins\motopress-hotel-booking\templates\loop-room-type\attributes\facilities.php
and paste to
\wp-content\themes\your-theme_folder\hotel-booking\loop-room-type\attributes\ (you will need to create 3 last directories inside your theme folder)
Then open the copied file and edit it to remove link from amenities e.g. replace the line below
return sprintf( '<a href="%s">%s</a>', esc_url( $facilityLink ), $facility->name );
with this
return $facility->name;
May 8, 2020 at 10:10 pm #951662Nicolas Stübi (SPMA Sàrl)ParticipantHello,
Is it possible to also deactivate the hyperlink on images of accommodations?
And ideally, also the title.
BR
NicolasMay 12, 2020 at 2:05 pm #952933J. DavisKeymasterHi Nicolas,
Could you clarify your case more detailed? Do you mean you wish to disable link of the title and gallery that are parts of [mphb_room] shortcode (Accommodation Type block/widget)?
Examples or screenshots are appreciated.best regards,
John DavisJune 29, 2020 at 6:55 am #972704Jan TurekParticipantHello, can I contribute to this? I wonder how can I remove the link from Accommodation Title (when I use Single Accommodation Elementor Widget). I want to have the title, but I dont want to be linked to a special page.
Also in isted Accommodation details the Anemities are written as colour of link – can I change it to have it as for examle View?
June 30, 2020 at 7:18 am #973185Andre FloresModeratorHello, Jan!
You may disable the accommodation type title link by adding the following code under Appearance ->Customize ->Additional CSS:
.mphb_sc_room-wrapper .mphb-room-type-title, .mphb_sc_rooms-wrapper .mphb-room-type-title, .mphb_sc_search_results-wrapper .mphb-room-type-title { pointer-events: none; }
To change the amenities hover color use the following code:
.mphb-single-room-type-attributes a:hover, .mphb-loop-room-type-attributes a:hover, .loop-room-short-attributes a:hover { color: #13b0bb; }
Replace #13b0bb with any desired color. You may find all the HEX color codes here.
Regards,
AndreSeptember 26, 2023 at 1:59 am #1508698LeventParticipantHello,
How do I need to adjust the code to be able to implement this with the current version of MotoPress? The code of the facilities.php file seems to have changed.
Many greetings
LeventSeptember 28, 2023 at 6:01 am #1510096J. DavisKeymasterHi Levent,
The described solution is for the Hotel Booking plugin at the Villagio theme. Do you also use Villagio and the styles are not helpful?October 8, 2023 at 2:52 am #1513486LeventParticipantHey J. (:
Thank you kindly for your answer. Please excuse my a) late reply and b) carelessness. Really missed that this is related to the Villagiao theme.
How to remove the links with a custom theme?
Many greetings,
LeventOctober 19, 2023 at 3:50 am #1518296J. DavisKeymasterHi Levent,
Thanks for your reply. I’ve tested this style and it works
.mphb-room-type-facilities a{ pointer-events: none; color:inherit !important; }
- AuthorPosts
- You must be logged in to reply to this topic.