I really need help with this.
I want to replace the link within the tab tile with an image. I can't find a solution for that. I saw some patches but I am not good at php and I did't got them right.
Can someone please tell me where I can find some tutorials about that?
Thanks.
I want to give some update regarding this. I tried different solutions and I need some advice.
Main goal is to add a different image to each tab. Empty tabs will be hidden.
Version 1. Field-Group module
I tried using that module and simple css with both class and id tab:
#vertical-tabs-list1 {
background: url('images/harta3.png');
background-repeat: no-repeat;
height: 64px;
text-indent: -9999px;
padding-top: 15px;
}
.vertical-tab-button.vertical-tab-button2 {
background: url('images/evenimente.png');
background-repeat: no-repeat;
height: 64px;
text-indent: -9999px;
padding-top: 15px;
}
This is working up to a point where is not working properly. If you hide empty tabs the following tab will take class and id of previous tab and that will mess up everything, because class and id are in li element and not in a href element like quicktabs.
Version 2. Quicktabs - Plausible solution
<ul class="quicktabs-tabs quicktabs-style-navlist">
<li class="active first">
<a href="/blabla/blablabla?qt-pagina_local=0#qt-pagina_local" id="quicktabs-tab-pagina_local-0" class="active quicktabs-loaded jquery-once-3-processed">Contact</a></li>
As you can see we have this id="quicktabs-tab-pagina_local-0" in
what I tried is simple css for each tab
#quicktabs-tab-pagina_local-0 {
background: url('images/media.png');
background-repeat: no-repeat;
width: 100px;
height: 100px;
font-size: 0px;
}
This option seams to work, even if we have hidden empty tabs.
Now I want to ask:
- Is version 2 reliable, or I will mess up things in other places?
- Is it possible to add id same way to field group? How?
Thanks