You can do this in many ways:
<a href="http://www.google.com"><div class="menu-item" ui-sref="albums" ui-sref-active="active"><i class="icon icon-cd"></i> Álbuns</div></a>
Then stylize the element a
willingly.
or
<div onclick="location.href='http://www.google.com'" class="menu-item" ui-sref="albums" ui-sref-active="active"><i class="icon icon-cd"></i> Álbuns</div>
and other forms...
<div class="your-music"><h2>Sua Música</h2>
<div onclick="location.href='http://www.google.com'" class="menu-item active" ui-sref="songs" ui-sref-active="active"><i class="icon icon-note"></i> Músicas</div>
<div onclick="location.href='http://www.pt.stackoverflow.com'" class="menu-item" ui-sref="albums" ui-sref-active="active"><i class="icon icon-cd"></i> Álbuns</div>
<div onclick="location.href='http://www.x123VXG.dxy'" class="menu-item" ui-sref="artists" ui-sref-active="active" ><i class="icon icon-mic"></i> Artistas</div></div>
href="aqui_vem_o_link"
– Henrique
Type where exactly? Div with href that I know does not exist. This is some wordpress plugin or the problem is with html and js only?
– Guilherme Nascimento
is a php site that I have and I can’t change the link from that menu that came in it. .
– jhonatan santos
It is still difficult to understand, without details, you are being rather vague, there is no way to know if the doubt is HTML, PHP, Wordpress, javascript. Like I said before, as far as I know
href=
is not a DIV attribute and you also did not explain where you should "type". Please explain.– Guilherme Nascimento
@Henry I did it and when I click the button nothing happens
– jhonatan santos
Jhonatan, nothing happens pq href does not work in DIV :/, please kindly explain in more detail exactly what you want and exactly what you have, I recommend you read https://answall.com/help/mcve, thank you for understanding
– Guilherme Nascimento
@Guilhermenascimento I changed the name of the question, there is nothing more Div to solve here, you have not read the question ? read it and see in the body below that I explain that I am trying to modify a PHP code in a menu, direct the link to a url.
– jhonatan santos
@jhonatansantos does not have absolutely nothing of PHP there. If you want help, you need to at least be able to explain the problem.
– Jéf Bueno
First, as I asked, do not use the "Reply" button to add details, we are a Q&A and not a forum, do the Tour to understand this. Second, I’ve seen the code and it has no sense, unless it is a javascript or wordpress plugin or PHP that renders things, but vc did not specify which plugin or theme is this, I have no place to start helping you, you are not informing essential details. Third, please, again in an expensive way I ask you to inform what was requested: Where do you want to type? What theme or plugin is this?
– Guilherme Nascimento