By Anonymous (not verified) on
Hi!
I'm looking for a way to create same tabs as in the Bluebeach theme (this one on the Drupal website)
The classic html display of the tabs is like that for primary links
<li><a href="/tracker" >all recent posts</a></li>
I'd like to know where to specify two span divs before and after the text, like that :
<li><a href="/tracker" ><span class="a"><span class="b">all recent posts</span></span></a></li>
In that way, I could use graphic tabs with a rollover effect.
Thank you for reading this.
I hope you can help me ;)
Matt
Comments
Graphic tabs
Perhaps you should take a look in the Theme developers guide
"Basic instructions for adding graphic tabs to your Drupal theme" > http://drupal.org/node/31704
(based on the Sliding Doors Technique)
theme override
In your
template.phpfile, override the following function fromincludes/menu.incto customize the local task menu tabs.EDIT:
Well, it may not be so easy. The extra
<span>elements are inside the<a>element, so I think you need to override a deeper function. I have no idea where to go from here, but I think it might have to do with this function inmenu.inc:Maybe something like this?
UNTESTED:
Just add the extra span elements to the first argument of the
l()function?Thanks Bjornarneson ;)
Thanks Bjornarneson for your answers, really nice. I'll test the code today and I'll tell you on this forum if it works :)
It should be something like the last snippet :)
Thanks again
Matt
It doesn't work but...
Hi!
The snippet doesn't work but, I think we're not far :)
This one actually displays the classes on the page
like that
<span class="a"><span class="b">Blogs</span></span>The code is like that
<li class="leaf"><a href="/blog" title="blogs, Forums, Chat etc..."><span class="a"><span class="b">Blogs</span></span></a></li>:D
I still have no idea on how to do becaus e I don't know Php, but I'll keep on playing with that...
Solution
Add the following code to your template.php-file:
Works in my case...
Well done !
Thanks a lot ;) It works in my case too.... :)