Page 1 of 1
How to change font size in NAV_TABLE_COLUMN and NAV_ROW?
Posted: Mon 27. Feb 2006, 10:32
by andras
I was able to change background colour for NAV_TABLE_COLUMN editing conf.template_default.inc.php, but I haven't succeded to change the font size.
I've changed the default css from ADMIN, but nothing happened:
Code: Select all
.nav_table, .nav_table a, .nav_table a:link, .nav_table a:active, .nav_table a:visited, .nav_table a:hover {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 11px;
color: #4A5966;
font-weight: normal;
text-decoration: none;
}
.nav_table a:hover {
text-decoration: underline;
}
.nav_table_active, .nav_table_active a, .nav_table_active a:link, .nav_table_active a:active, .nav_table_active a:visited, .nav_table_active a:hover {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 11px;
color: #4A5966;
font-weight: bold;
text-decoration: none;
Then I'd like to change the font size for NAV_ROW too, but I don't even see anything in the default css for NAV_ROW.
What I'm missing? What shall I do?
Thank you for your attention!
Andras
Posted: Mon 27. Feb 2006, 17:01
by DeXXus
http://www.phpwcms.de/forum/viewtopic.php?p=9595#9595
If you view the rendered source of a page containing {NAV_ROW ... you can see what class is referred to and then enter your desired settings.
Here's an answer to a poster (in German) asking the same sort of questions:
http://www.phpwcms.de/forum/viewtopic.php?p=59763#59763
Posted: Tue 28. Feb 2006, 01:17
by andras
DeXXus, thank you for your reply, but I still don't understand.
If you view the rendered source of a page containing {NAV_ROW ... you can see what class is referred to and then enter your desired settings.
I looked into source and generated source using Firefox Web Developer extension, but there is no "NAV_ROW" text in the whole page. And there is no "NAV_ROW" in the default css too. As I'm not mastering well html or css at this point I don't know what to look for.
Before opening this topic I've read also the post you indicated, but I could not find trace of:
<span class="my_nav_row_class">{NAV_ROW}</span>
indicated by Oliver Georgi.
And unfortunately I don't speak German.
I have no doubt that you've explained the right solution, just I need some lower level explanation for newbies.
Posted: Tue 28. Feb 2006, 03:10
by DeXXus
As pointed out in that first thread... the design mode is to wrap the replacement tag like below (if you are an Admin / User creating the menu for the first time):
Code: Select all
<span class="my_nav_row_class">{NAV_ROW}</span>
my_nav_row_class ABOVE can be any class name you want to use.
-OR- if you are an Admin / User taking over an existing site (where menu has already been created)... you can check in the rendered source (or the content part) to see if -and- which class has already been assigned.
-NOW- editing "conf.template_default.inc.php" can also provide the mechanism:
Original:
Code: Select all
// row based navigation
$template_default["nav_row"]["before"] = '';
$template_default["nav_row"]["after"] = '';
Can become:
Code: Select all
// row based navigation
$template_default["nav_row"]["before"] = '<span class="my_nav_row_class">';
$template_default["nav_row"]["after"] = '</span>';
The pertinent section in question is below:
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>';
$template_default["nav_row"]["link_direct_before"] = '';
$template_default["nav_row"]["link_direct_after"] = '';
$template_default["nav_row"]["link_direct_before_active"] = '';
$template_default["nav_row"]["link_direct_after_active"] = '';
$template_default["nav_row"]["show_active_hidden"] = 0;
Posted: Tue 28. Feb 2006, 04:37
by andras
DeXXus, Now I see. I was confused because I thought that my_nav_row_class is something already there somewhere.

Now it seems clear even at 4,30 AM without having slept yet.Thank you very much for your help!

Posted: Tue 28. Feb 2006, 05:45
by DeXXus
I'm just GLAD if any "confusion" can be driven far-far away!
