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
Description

Because of

<?php
print theme('navlinks', $primary_links);
?>
primary links don't show.
Changing the 'navlinks' to 'links' works but site looks a bit strange. (Thanks a lot for this theme)

#1

yngens - January 27, 2007 - 13:04

I confirm this error.

#2

jgarabot - February 5, 2007 - 11:38
Title:primary links don't appear» Only 2 primary links appear in IE 7

In I explorer 7 shows only 2 primary links, the first two applied. In firefox they show ok.

#3

he_who_shall_no... - February 5, 2007 - 12:56
Title:Only 2 primary links appear in IE 7» primary links don't appear

Changed title back. Are you sure that you tested the 5.x-1.x-dev version?

#4

sangamreddi - February 22, 2007 - 00:33

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

yngens - February 22, 2007 - 02:18

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

yngens - February 22, 2007 - 02:28

This one is a duplicate thread http://drupal.org/node/118757

#7

ricmadeira - February 28, 2007 - 21:53

Just installed the 5.x version and got this bug too.

#8

ricmadeira - February 28, 2007 - 22:02

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

ricmadeira - March 1, 2007 - 01:24

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:

#10

ricmadeira - March 1, 2007 - 01:26

[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

ricmadeira - March 1, 2007 - 01:30

[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

yngens - March 1, 2007 - 15:03

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

charles.thompson - March 3, 2007 - 04:06
Title:primary links don't appear» primary links don't appear in Color

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

gurukripa - March 13, 2007 - 11:27
Version:5.x-1.x-dev» 5.x-1.0

any update on this theme for 5.1 ?
someone pls do something to help us..else the top of the theme looks horrible :(

#15

xDaveN - March 13, 2007 - 16:13

agreed. Waiting patiently on our end too. If I knew the code, I'd help.

#16

gurukripa - March 16, 2007 - 03:58
Title:primary links don't appear in Color» primary links don't appear in Color. You can give it colors of ur choice

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

yngens - March 18, 2007 - 17:56

gurukripa, why don't you post your modifications of style.css file and template.php?

#18

gurukripa - March 22, 2007 - 05:22

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

yngens - March 26, 2007 - 20:27

gurukripa, you just copied the code from the original css file. that does not work.

#20

ricmadeira - March 27, 2007 - 14:29

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

jbartek - April 9, 2007 - 17:53

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.

 
 

Drupal is a registered trademark of Dries Buytaert.