Remove Amenity link

This topic contains 4 replies, has 4 voices, and was last updated by   J. Davis 11 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #673668

    Massimo BH
    Participant

    Hello,
    is there a way to remove Amenity links from the front slide and from all the other sections?

    #673689

    Stacy Lind
    Keymaster

    Hi 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.

    #673702

    Massimo BH
    Participant

    It works perfectly.
    Thanks for the support Stacy!

    #705351

    Luke Knowles
    Participant

    The 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?

    #706719

    J. Davis
    Keymaster

    Hi 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;

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.