<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=128060241156018&amp;ev=PageView&amp;noscript=1">
Skip to content
  • There are no suggestions because the search field is empty.

How to exclude the script on a page

You can exclude the entire Stay22 script from specific pages on your website

A full script exclusion stops the Stay22 script from running on the selected page or pages. This also prevents script-based products such as Lift (formerly known as Linkswap), Spark and Nova from running there.

How to exclude the script in WordPress

The steps below use the WPCode plugin, as this is the way we advise partners to install it. Menu names may vary slightly depending on your WPCode version.

Before you start, copy the Stay22 script from the Partner Hub.

  1. In WordPress, go to Code Snippets and choose Add Snippet or Header & Footer.
  2. Select Add Custom Code and choose HTML.
  3. Paste your Stay22 script into the snippet.
  4. Set the insertion method to Auto Insert → Site Wide Header.
  5. Activate Smart Conditional Logic.
  6. Add a rule to Hide this code snippet if → Page URL is, then enter the complete URL of the page you want to exclude.
  7. For multiple pages, add a separate condition group for each excluded URL.
  8. Save and activate the snippet.
  9. Remove the original Stay22 script from your site’s global Header/Footer area so the script is not installed twice.
  10. Clear your website cache.

Check that the script exclusion is working

Test both types of page:

  • Open an excluded page and confirm that the Stay22 script is not loading.
  • Open a page that should remain enabled and confirm that the script is still loading there.

You can follow these steps to verify your script is loading. If you're getting an unexpected result, email support@stay22.com.