Anchor Scrolling

Hi guys i have seen that when i add custom coding that has anchors in the URL, the site basically tries to scroll down to the section.

i have 2 questions about this:

  1. where in the X files can i find the JS that handles this scrolling event?

  2. Can i deactivate it only for a certain section? how

let me know :slight_smile:

Hi Frantic,

Thanks for reaching out.
Please find the answer to your queries below:

  1. Where in the X files can I find the JS that handles this scrolling event?

We are not sure which Scrolling event you are trying to mean. There are a few scrolling events are there which have been added into a few of the core files. If you are trying to mean the Smooth Scrolling
you can find the code in the following file.

wp-content\themes\pro\framework\functions\frontend\content.php

Please remember that we don’t suggest modifying any core files.

  1. Can I deactivate it only for a certain section? how

You can try by removing the ID of that section which is linked to the URL to avoid that section being scrolled when the ID is found in the URL.

Hope it helps.
Thanks

Thanks for the info. i can’t really remove the ID nor the link since they are essential to what i want to achieve.

I’ll try to disable the smooth scroll effect if certain elements contain an X class, or something. i think this info can get me started already.

Thanks!

Hi Frantic,

What you are trying to do might be possible with custom development. I would suggest you hire a developer who can assist you to do the customization.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.