Free and Premium WordPress Plugins & Themes Forums WordPress Themes Villagio Remove Amenity link
- This topic has 8 replies, 4 voices, and was last updated 2 years, 7 months ago by
Andre Flores.
- AuthorPosts
- April 30, 2018 at 2:03 pm #673668
Massimo BH
ParticipantHello,
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 Lind
KeymasterHi 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 BH
ParticipantIt works perfectly.
Thanks for the support Stacy!August 2, 2018 at 9:29 pm #705351Luke Knowles
ParticipantThe 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. Davis
KeymasterHi 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. Davis
KeymasterHi 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 Turek
ParticipantHello, 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 Flores
ModeratorHello, 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,
Andre - AuthorPosts
- You must be logged in to reply to this topic.