Most Commonly asked CSS tweaks

Most Commonly asked CSS tweaks

Most Commonly asked CSS tweaks

To add the CSS scripts, please CLICK HERE and follow the steps to install the CSS Script.
If you want to add a script to trigger on a specific page, please CLICK HERE and follow the steps.
  1. Prevent copying content
  2. Removal of sticky footer (Call Us button) in Mobile view
  3. Removing Grayscale Filter from Logos
  4. Trip details page > Remove grayscale from the related content units in the the sidebar
  5. Trip details page > Remove black gradient overlay from related content units
  6. Banner images > Remove black gradient overlay
  7. Removing banner text
  8. Removing the Book button from the Dates and Rates section
  9. Increasing the width of the Variant column in the Dates and Rates section



Prevent copying content

The CSS script will be added to prevent copying content from the website. This will disable the functionality of selecting the text and copying it.
<style>
    html {
        -webkit-user-select: none;  /* Chrome all / Safari all */
        -moz-user-select: none;     /* Firefox all */
        -ms-user-select: none;      /* IE 10+ */
        user-select: none;
    }
</style>
The CSS script will remove the "Call Us" button displayed in the footer in the mobile view.
<style>
.sticky-footer {
        display: none;
}
</style>


Removing Grayscale Filter from Logos

The CSS script will remove the grayscale filter from logos, and the logos will be shown in color.
<style>
.section-type-accreditations .content .logo-item .logo {
    filter: none !important;
}
</style>
The CSS script is applied to display the tour cards and activity tiles in color, while also removing the overlay from the sidebar on the tour details page.
<style>
.page-type-trip .popular-tours-widget .item {
    filter: none !important;
   -webkit-filter: grayscale(0%) !important;

}
 .section-type-activities-we-provide .content .collection {
   filter: none !important;
   -webkit-filter: grayscale(0%) !important;

}
</style>  
<style>
.page-type-trip .popular-tours-widget .item {
    opacity: 1 !important;
}
.section-type-activities-we-provide .content .collection {
   opacity: 1 !important;
}
</style>  
The CSS script will remove the black and image gradient overlay from the banner image.
<style>
    .section-type-banner.banner-slide .black-50-overlay {
        display: none;
        }
    .image-gradient-overlay {
        display: none;
    }
</style>


Removing banner text

The CSS script will remove the banner text. Generally, it is not recommended from an SEO standpoint.
 <style>
 .section-type-banner.banner-slide h1 {
        display: none;
    }
    .section-type-banner h1 {
        display: none;
    }
</style>


Removing the Book button from the Dates and Rates section

The below CSS script will remove the Book button from the Dates and Rates section, which is enabled on the Tour page.
<style>
    .page-type-trip .dates-rates-section .dates-rates-section-container .dates-rates-listing-container .departure-info .action a.trip-book-btn {
        display: none;
    }
</style>


Increasing the width of the Variant column in the Dates and Rates section

The below CSS script will increase the width of the Variant column in the Dates and Rates section, which is enabled on the Tour page.
<style>
.tour-variant {
      width: 25%;
}
</style>
Note: Please adjust the width as per your requirement.
    • Related Articles

    • How to install custom CSS in Vacation Labs and its caveats

      Important caveats - before you begin There is no support for custom CSS and there is no guarantee that your custom CSS will continue to work as the platform evolves and new features are released. Since Custom CSS scripts are installed by customers ...
    • Can we customise the website themes?

      Website themes or templates though limited are customizable only on request. To understand more about the extent of customization and its limitations, please reach out to our support team by dropping us an email on support@vacationlabs.com. All ...
    • How to add users or team members to your account?

      Your Subscription Plan allows you to give access of your Vacation Labs admin panel to your team members. You can add them as USERS and control their Access Rights. To add a USER please follow the steps shown below: Go to SETTINGS > USERS & ...