Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

273
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda