12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Mar 28, 2022

Conditional Smooth Scrolling to Hash Links in Oxygen

Sridhar Katakam

In Oxygen Builder it is possible to enable the JavaScript for smooth scrolling to hash links either sitewide or on specific Templates/Pages but sometimes you want to enable it on all pages of the site other than on specific Posts/Pages/views.

This members-only tutorial provides the steps to set up smooth scrolling conditionally wherein we specify exactly where it should or should not load via if conditional in PHP.

Step 1

Inside the Oxygen editor, ensure that "Smooth Scroll to Hash Links" is ticked at Manage > Settings > Global Styles > Scripts.

[optional] Set your desired Scroll Time and/or Scroll Offset.

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-down