• Resolved Chris G

    (@chrisvk)


    Hello, is there a way to remove hyperlinks from amenities- I would prefer to have them as plain text instead.

    Thanks

    • This topic was modified 5 years, 1 month ago by Chris G. Reason: incorrect description and title
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor motopress

    (@motopress)

    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;
    }
    Plugin Contributor motopress

    (@motopress)

    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://www.ads-software.com/support/plugin/motopress-hotel-booking-lite/reviews/#new-post Thanks in advance

    Thread Starter Chris G

    (@chrisvk)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Amenities’ is closed to new replies.