Hello Chris,
The code below will remove the links from amenities. Apply it to Appearance > Customize > Additional CSS:
.mphb_room_type .entry-content .mphb-single-room-type-attributes .mphb-room-type-facilities .mphb-attribute-value a {
pointer-events: none;
}
Alternate solution by overriding plugin files:
In order to remove links form amenities at property listing layout follow the steps below:
-connect to your server and copy the following file \wp-content\plugins\motopress-hotel-booking\templates\single-room-type\attributes\facilities.php
– then navigate to \wp-content\themes\aquentro\ and create \hotel-booking plugin there.
– open just created \hotel-booking folder and create another folder called \single-room-type
– open just created \loop-room-type directory and create there \attributes\ folder, open it and paste the copied facilities.php file there.
– open facilities.php file you pasted with text editor
– find the line below
$facilityLink = sprintf( '<a href="%s">%s</a>', esc_url( $facilityLink ), $facility->name );
-replace it with the following line
$facilityLink = sprintf( '%s', $facility->name );
– save the changes in the file and preview your site.
We’d highly appreciate if you review Hotel Booking plugin https://ww.wp.xz.cn/support/plugin/motopress-hotel-booking-lite/reviews/#new-post Thanks in advance
Hi, thanks for the replies, my css is a little rusty and I wasn’t aware of the pointer-events property.
It seems to be happily solved with:
.mphb-room-type-facilities a {
pointer-events: none;
}
I’ll happily leave a review once I’m up and running.
Chris