Where do I modify anchor colors for {NAV_ROW}?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
colech
Posts: 178
Joined: Thu 25. Mar 2004, 01:01
Location: Washington, USA
Contact:

Where do I modify anchor colors for {NAV_ROW}?

Post by colech »

I haven't been able to find the CSS that controls the {NAV_ROW} text color yet and wondered if anyone else knew where it was.
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
Pappnase

Post by Pappnase »

hello

look in the standard.css

Code: Select all

a, a:link, a:visited, a:active {
	color: #FFffff;
	text-decoration: none
}
a:hover {
	color: #FF3300;
	text-decoration: underline;
sayitfast1
Posts: 21
Joined: Fri 5. Mar 2004, 07:32

Post by sayitfast1 »

I think what you are looking for is here:

include/inc_conf/conf.template_default.inc.php




:shock:
Last edited by sayitfast1 on Sat 8. May 2004, 09:46, edited 1 time in total.
Pappnase

Post by Pappnase »

hello colech

i test it before i post it! :wink:

and ou have also in the include/inc_conf/conf.template_default.inc.php

the following lines

Code: Select all

// row based navigation
$template_default["nav_row"]["before"]				= '';
$template_default["nav_row"]["after"]				= '';
$template_default["nav_row"]["between"]				= ' | ';
$template_default["nav_row"]["link_before"]			= '';
$template_default["nav_row"]["link_after"]			= '';
$template_default["nav_row"]["link_before_active"]	= '<span style="text-decoration:none;font-weight:bold;">';
$template_default["nav_row"]["link_after_active"]	= '</span>';
colech
Posts: 178
Joined: Thu 25. Mar 2004, 01:01
Location: Washington, USA
Contact:

Post by colech »

I found this as an exmple Oliver gave on how to modify NAV_ROW:

Code: Select all

// row based navigation 
$template_default["nav_row"]["before"]            = '<table cellspacing="0" cellpadding="3" border="0" bgcolor="#FFFFFF"><tr>'; 
$template_default["nav_row"]["after"]            = '</tr></table>'; 
$template_default["nav_row"]["between"]            = "\n"; 
$template_default["nav_row"]["link_before"]         = '<td>'; 
$template_default["nav_row"]["link_after"]         = '</td>'; 
$template_default["nav_row"]["link_before_active"]   = '<td bgcolor="#DDDDDD" style="text-decoration:none;font-weight:bold">'; 
$template_default["nav_row"]["link_after_active"]   = '</td>';
...BUT I want to stick to DIV/CSS if possible. I tried the following with the CSS placed before the php content in conf.template_default.inc.php. Where should I be placing my CSS? I know it shouldn't go in conf.template_default.inc.php but where does it go then? AND is there a better way to change the menu anchor attributes of the NAV_ROW menu altogether?

Code: Select all

// row based navigation 
$template_default["nav_row"]["before"]				= '<div id="nav_row_div" style="color:#DCCEBA; display:inline; font-weight:bold">';
$template_default["nav_row"]["after"]				= '</div>';
$template_default["nav_row"]["between"]				= '&nbsp;&nbsp;&nbsp;';
$template_default["nav_row"]["link_before"]			= '<div id="nav_row_div" style="display:inline; display:inline; color:#DCCEBA;">';
$template_default["nav_row"]["link_after"]			= '</div>';
$template_default["nav_row"]["link_before_active"]	= '<div id="nav_row_div" style="color:#DCCEBA; display:inline; text-decoration:none; font-weight:bold">';
$template_default["nav_row"]["link_after_active"]	= '</div>';

Code: Select all

<style type="text/css" media="all">
	div#nav_row_div a:link    {color: #DCCEBA}
	div#nav_row_div a:active  {color: #DCCEBA}
	div#nav_row_div a:visited {color: #DCCEBA}
	div#nav_row_div a:hover   {color: #FF9900}
</style>
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

I have made a few replacement tags that will give you control over such things as font/size/colour and class for most content text including {NAV_ROW} as well as image captions etc.
http://www.phpwcms.de/forum/viewtopic.php?t=1876

note: I know NAV_TABLE_COLUMN is excluded and will test others soon.
colech
Posts: 178
Joined: Thu 25. Mar 2004, 01:01
Location: Washington, USA
Contact:

Post by colech »

pSouper wrote:I have made a few replacement tags that will give you control over such things as font/size/colour and class for most content text including {NAV_ROW} as well as image captions etc.
http://www.phpwcms.de/forum/viewtopic.php?t=1876

note: I know NAV_TABLE_COLUMN is excluded and will test others soon.
You RULE pSouper! I'll check that out.
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

thanks, but i don't rule anthing but the TV remote control (only when the wife is out of course).
These rep tags were quicker to write than to post :)
Last edited by pSouper on Sun 9. May 2004, 22:23, edited 1 time in total.
colech
Posts: 178
Joined: Thu 25. Mar 2004, 01:01
Location: Washington, USA
Contact:

Post by colech »

I'm just watching and learning. (Talking about the code... not the remote. I must stay AWAY from the remote :shock: ) It's 3:09am for me right now and I'm still going strong. For those of us new to the field we have to do double duty if you know what I mean. Catch ya later!
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

don't think to difficult - it's very easy:

<span class="myrowclass">{NAV_ROW}</span>

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply