This website uses cookies to personalise ads and to analyse traffic ok
web design

Using Page scroll to id with the Divi Builder plugin

A quick guide for using “Page scroll to id” WordPress plugin with the Elegant themes Divi Builder plugin on your WordPress site.

In WordPress admin, go to SettingsPage scroll to id. Change the Selector(s) option value to:


Scroll down to “Advanced options” section and enable (check) “Prevent other scripts from handling plugin’s links” option.

and hit Save Changes.

By adding the element selector above, we instructed the plugin to handle all links that have a hash (#) in their URL.

Divi Builder plugin allows us to enter an id value for each section/module we want (via the CSS ID field). This is very handy as a)we don’t need to create our id targets manually and b)makes links highlighting easier and more precise.

In your post/page editor, click the settings icon for the module you want to add a target id

Switch to Advanced tab

Scroll down to find the CSS ID field and enter the id value you want (e.g. my-id)

Click Save & Exit.

When ready, click Update (or Publish) to save your post.

Now, any link you create with URL #my-id (or any id value you entered in the CSS ID field previously) will scroll smoothly to that target. You can create standard/plain links in the post editor, custom links in your menu, links via “Page scroll to id” toolbar icons or shortcode etc. All kind of links will work as long as they point to an existing target id in your page(s).

Notes & extras

If you use the DIVI theme and you want to disable the theme’s smooth scrolling feature on your menu links, you can add the class et_smooth_scroll_disabled in your menu links items (“CSS Classes” optional field).

Divi WordPress Theme

Disclosure:: Please note that this post may contain affiliate links. If you click these links and purchase an item, I may receive a commission (with zero additional cost to you). This website needs compensation to operate (like any other website on the internet), so affiliate links help a lot!


Post a comment
  1. Michael
    Posted on June 14, 2021 at 22:17 Permalink

    I can’t get it to scroll smoothly – it just jumps. Suggestions?

    Click the “down carat icon”



    • malihu
      Posted on June 14, 2021 at 22:49 Permalink


      The down arrow icon is not a proper link (anchor tag) with an actual URL/href. It’s a div element with a custom js function attached to it.

      The plugin works strictly with links/anchor elements.

      Can you create or wrap the down arrow icon in an actual link with a URL of #gallery-begin?

      • Michael
        Posted on June 15, 2021 at 22:04 Permalink

        That worked. Thank you.

  2. Francisco
    Posted on April 26, 2021 at 02:33 Permalink

    i do everything to customize in divi but the label section didnt show up…
    i named every section in ID css and nothing.. can you help me with that ?

    • malihu
      Posted on April 26, 2021 at 14:30 Permalink

      I’m not sure I understand the issue. What do you mean by “label section”?
      I checked your page and there are no links pointing to anchors/sections within the page.

  3. Abner
    Posted on June 12, 2020 at 22:30 Permalink

    hi, it takes 2-3 mouse wheel clicks for it to scroll to the next section. Anyway to get it to scroll from just 1 mouse wheel click? thanks

    • malihu
      Posted on June 13, 2020 at 13:32 Permalink

      I need to see your site/page in order to help.
      Do you use lazy-loading for your site images?

  4. Reily
    Posted on April 30, 2020 at 12:42 Permalink

    Hi, I’ve followed the instruction but it doesn’t scrool smoothly, instead it jumps direclty to the section I want. Pretty harshly I would say

    • malihu
      Posted on April 30, 2020 at 22:35 Permalink


      Please post your site URL so I can check what happens. Otherwise it’s impossible for me to help.

  5. Ada
    Posted on April 11, 2020 at 15:14 Permalink

    Hi, thanks for this great plugin! I’m just wondering, is this possible to achieve the smooth scrolling effect not only by clicking on anchor links but on scrolling the mouse wheel?

  6. Chris Lewandowski
    Posted on April 8, 2020 at 08:27 Permalink

    Thank you so much for putting this together and for creating this documentation! I really wanted this to work, but it seems Divi didn’t want to participate. I referenced this article and seems there is a toggle switch to make the scroll work:

    • malihu
      Posted on April 8, 2020 at 12:25 Permalink


      Go to “Page scroll to id” settings and enable “Prevent other scripts from handling plugin’s links” option.

      This way you disable Divi smooth scrolling (with all its issues) and let “Page scroll to id” do its thing.

  7. Pete
    Posted on July 9, 2019 at 13:54 Permalink

    Hi, every time i try to scrool via mouse wheel, the whole section jumps a bit and then scrools to the next element.

    What can be causing this?

    Kind Regards,


    • malihu
      Posted on July 15, 2019 at 10:56 Permalink


      Not sure if you fixed this but it works fine for me.

  8. JIm
    Posted on June 3, 2019 at 06:07 Permalink

    Just not working. Trying to follow your very easy directions. I am in a production or Staging mode/hosting on a GO Daddy server. Would that make a difference? Using a CSS ID on each module (10 stacked sliders). I have the the CSS ID like this: barn-restorations and the link url in custom-links as /#barn-restorations. Using the yellow background menu part way doen the page. Do you use the full url of the page or with the full slug as I pasted in? Or can you simply do /#barn-restorations. I am aon a deadline trying to make somthing on this page work. ANy help would be appreciated and compensated. Thanks. Jim

    • malihu
      Posted on June 3, 2019 at 15:21 Permalink

      You can use any kind of URL you want (full, relative-root, hash only etc.).

      When you use full URL, like you do in “Barn Restorations” link, you have to make sure that the link URL matches exactly the URL you see in browser’s address bar.

      For example, your link URL is:

      but your page URL is:

      This will not work, as the link URL does not include the URL parameters ?et_fb=1&PageSpeed=off.

      The link works when you visit the page:

      If you want it to work on the page URL you posted (with the URL parameters), you need to change the link URL to:

      or simply:


      Hope this helps

  9. Allen
    Posted on February 3, 2019 at 14:02 Permalink

    Hey so I am currently having issues with the plugin, sometimes it will work for a while and sometimes is stops working right when i insert the anchor id url. once i save and exit the visual builder and view the page, those sections go blank or black, the block elements are there, however it’s blacked out and not viewable.

    Have you had this issue before?

    • malihu
      Posted on February 3, 2019 at 20:17 Permalink

      Haven’t had this issue before. Can you give me an example?

      When you say “when i insert the anchor id url”, what do you mean? Insert the id value in CSS ID field? If yes, what value do you insert?

  10. so jeong
    Posted on November 6, 2018 at 12:06 Permalink

    Divi theme

    Prevention scripts from handballing plugin’s links (if passible)

    Not Applicable


Post a comment

Your e-mail is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
You can write or copy/paste code directly in your comment using the <code> tag:
<code>code here...</code>
You may also use the data-lang attribute to determine the code language like so:
<code data-lang-html>, <code data-lang-css>, <code data-lang-js> and <code data-lang-php>