2
It is possible to manipulate only a part of the URL using DOM or something like?
I would like to remove '#' in the middle of the url, in the href attribute.
The code will be added in a Wordpress theme and must be activated when loading the page.
As it is currently:
<div class="rodape">
<a class="azul" href="http://site.com/departamento/#consultoria-um"
title="Detalhes">Detalhes</a>
<a class="azul" href="http://site.com/departamento/#consultoria-dois"
title="Detalhes">Detalhes</a>
</div>
Final result (no # on link):
<div class="rodape">
<a class="azul" href="http://site.com/departamento/consultoria-um"
title="Detalhes">Detalhes</a>
<a class="azul" href="http://site.com/departamento/consultoria-dois"
title="Detalhes">Detalhes</a>
</div>
Do you want to remove only '#'? or it and everything that comes after it? This is when opening the page or after performing some specific action?
– Glauber Cezar
Where does this HTML come from? You can manipulate on the server?
– Sergio
I want to remove only # when opening the page. It is a Wordpress theme hosted on own server.
– Grego