Hello community,
First I would like to inform you that I am Brazilian and I am not speaking the English language well. I am using a translator for me communicate with you, so if any error of grammar, forgive me. =D
I am using Drupal some 4 months and in that time I have trying to unravel the mysteries of this powerful tool. So far it has fascinated me!
I am active participant of the Brazilian community (drupal-br.org) and I tried to get help this topic, but not succeeded. The community is still very new.
I'm trying to customize the display of my menu. default view is this:
<ul>
<li>
<a>Text of item menu</a>
</li>
</ul>
I need that the display of my menu is as follows:
<ul>
<li>
<a>
<span>Text of item menu</span>
</a>
</li>
</ul>
I found something similar in include/menu.inc, but unable to customize this way.
Someone could help me, giving me a hint of how can I do that?
Thank you in advance.
Thiago Régis
Comments
Try out the code on this
Try out the code on this other topic... it most likely will do the trick for you: http://drupal.org/node/278976#comment-909674
It places the span tag "outside" of the anchor though, not inside. It may be possible to change, though consider not adding the span "inside" the anchor tag unless really necessary.
-- David
absolutecross.com
Great, I saw the code and
Great, I saw the code and found legal. But I really need to be "within" the anchor of tag, because I will make another change with CSS.
I want to set up "display: none" to the tag which is inside the anchor. So I could use a background image for my menu, as was done on the site of the BattleField Heroes.
Do you have any suggestions?
If you're sure you need it
If you're sure you need it this way, my suggestion is to email the Battlefield Heroes site and ask if they will share how they did it, since it is a Drupal site. If you find out, please post back so I can refer people to the code if the question is asked again :)
-- David
absolutecross.com
I will try to contact the
I will try to contact the webmaster of the site.
Anyway, if anyone here knows the community solve my problem, would help. I know that the best professionals in the Drupal are part of that community.