Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

272
Views
How to unhide WordPress Divi Theme URL Hash?

I have a question to Divi users / Programmers on how do I unhide the URL Hash change. Divi has a smooth scroll to anchor script already, which for me works perfect, but it does not update the URL Bar with the "#" and anchor name.

My additional script which I found on the internet in my JS File which changes the URL Hash, but makes the window to scroll down again:

$("#main-header a").on("click" , function (event) {
   if(window.location.hash != this.hash) {
      event.preventDefault();
      
      window.location.hash = this.hash;
   }
});

Is there any workaround in the original Divi JS smooth scroll to anchor, which also updates the URL on link click and doesn't destroy the original animation etc.?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!