primary links don't appear in Color. You can give it colors of ur choice
he_who_shall_no... - January 22, 2007 - 16:38
| Project: | Fancy |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Because of
<?php
print theme('navlinks', $primary_links);
?>Changing the 'navlinks' to 'links' works but site looks a bit strange. (Thanks a lot for this theme)

#1
I confirm this error.
#2
In I explorer 7 shows only 2 primary links, the first two applied. In firefox they show ok.
#3
Changed title back. Are you sure that you tested the 5.x-1.x-dev version?
#4
Hi all,
Thanks. back after long time, still the problem exists?
For me its working fine under IE and firefox http://www.sandeepone.com/
I tried on new install and its working well.
#5
I guess http://www.sandeepone.com is not 5.X. In Drupal 5.X they changed the way the links are cerated. Which makes it is not possible to theme every button separately. All the buttons look alike.
#6
This one is a duplicate thread http://drupal.org/node/118757
#7
Just installed the 5.x version and got this bug too.
#8
And you can theme the buttons separately. It's just that the CSS ids/classes seem to have changed.
Example:
id="primary-link-1" is now class="first menu-1-1-650"
id="primary-link-2" is now class="first menu-1-2-650"
id="primary-link-3" is now class="first menu-1-3-650"
So we just have to change the .css file. Right guys?
#9
Another issue is the CSS id/class of the active/current button. We used to have a fixed id for each button, and a "current" class for the active button. Now we have no ids, only a class for each button and it so happens that that class changes when the button is active.
The HTML used to be like:
And is now:
I've been trying to rebuild the CSS code for the new tags, but I can't seem to get the active buttons right, among a couple other small things (the hover effect on links). Can we get a CSS wizard in here? Thanks! :)
#10
[Oops, sorry. I meant to write it like this.]
The HTML used to be like:
<li class="current" id="primary-link-2"> <a href="/aggregator" class="active" rel="nofollow">And is now:
<li class="menu-1-2-650-active"> <a href="/aggregator" class="menu-1-2-650-active active" rel="nofollow">#11
[Damn... can't seem to get anything right tonight. Just wanted to let you know that those rel="nofollow" tags don't belong there; they were added by Drupal's tag filter when I mistakenly posted my code without using the proper < code> and < /code> tags. Sorry.]
#12
Ricmadera, I hope so. That we need just to change classes. It would be great if anyone could successfully theme primary buttons. I could not, so my button's are all of the same color.
#13
I've looked at the code and I can't figure it out either. I renamed the tags as someone suggested earlier, but that didn't color the tabs. I can color them all one color, but that is all I can get out of it. Has this bug really been open this long?
Thanks...
#14
any update on this theme for 5.1 ?
someone pls do something to help us..else the top of the theme looks horrible :(
#15
agreed. Waiting patiently on our end too. If I knew the code, I'd help.
#16
hi guys..i managed some things on my site..by playing around with the style.css file and template.php
also have a look at page.tpl.php
you can tweak the colors...and then things will look alright..
actually what has happened in the original files is that it accomodates about 10 primary tabs...but some colors chosen are of the lighter kind...and when we get to the right...there is no such file....
you could even decide to change the image files ...to colors of ur choice...
however remember to back up the original settings..and tweak one color at a time..
i have no knowledge of css or php..but if u give it a close look..you may be able to figure it out..and keep a color code index handy..use google to search for html codes..
all the best.
#17
gurukripa, why don't you post your modifications of style.css file and template.php?
#18
in the style.css file pls see that there are only a few color blocks..that have been made initially..if u have more tabs..then u shld add like this
#primary-tabs li#primary-link-9 {
float:left;
background:url("images/left1.gif") no-repeat left top;
margin:0;
padding:0 0 0 9px;
}
#primary-tabs .current#primary-link-9 {
background-image:url("images/left_on.gif");
}
#primary-link-9 a {
float:left;
display:block;
background:url("images/right1.gif") no-repeat right top;
padding:5px 15px 4px 6px;
text-decoration:none;
font-weight:bold;
color:#fff;
margin-right:2px;
}
this shld take care of things..and maybe a little more tweaking...i cant remember all of it now..all the best..will try to look up more if u havent been able to do it yet..
template.php i think can be left alone.
i am currently helping out someone with a philosophy site..and did this for that..
u can have a look at it www.go2tirupati.com/caitanya and maybe join up if u like it :)
#19
gurukripa, you just copied the code from the original css file. that does not work.
#20
Yeah, I think he's talking about adding more colored tabs to the 4.7 version... not correcting the CSS in the 5.1 version!
#21
I'm using 5.1 and I followed instructions from http://drupal.org/node/118757 and the tabs are now in color! You just need to download http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/themes/fan... and save it into your .../themes/fancy directory.