Farbe des horizontalen Menüs ändern

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
tastosteron
Posts: 12
Joined: Sat 23. Dec 2006, 12:29

Farbe des horizontalen Menüs ändern

Post by tastosteron »

Hallo, ich hab schon das ganze Forum durchsucht, komme aber zu keinem Ergebnis.

Ich möchte nur die Farbe des horizontalen Menüs ändern.

Vielleicht kann jemand eine Schritt für Schritt-Anleitung posten, welche Codes ich ändern muss....


Mercy!

Grüsse

Tasto
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hallo Tasto,

welches horizontale Menü meinst du? Wir hätten da etwa 5 bis 10 verschiedene (mit RT´s) Varianten in der Auswahl.

Knut.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
tastosteron
Posts: 12
Joined: Sat 23. Dec 2006, 12:29

horizontales Menü

Post by tastosteron »

Hallo Knut,

ich meine das Menü, das nach der ersten Installation (Anleitung Pepe) erscheint.
Bin absoluter Anfänger, aber mit Pepes Anleitung bin ich schon ziemlich weit gekommen.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi, fast jeder deutschsprachig phpWcms-User wird mit dieser Anleitung von Pepe die ersten Systemerfahrungen gesammelt haben.
Ich weiß aber nicht mehr welchen RT er dort verwendet.

Bitte nenne den replacement Tag (RT) der für die Navi aufgerunfen wird. Ich vermute mal {NAV_ROW}.
Dabei wird ein <div class="nav_row"> im Quelltext erzeugt, also in der Datei frontend.css die Klasse .nav_row suchen. Wenn diese nicht vorhanden ist, einfach anlegen.
z.B.

Code: Select all

/* ------ NAV_ROW ------*/
.nav_row a {
	color: #4A69AA;
	font-weight: bold;
	text-decoration: none;
}

.nav_row a:active {
	color: #000080;
	font-weight: bold;
	text-decoration: none;
}

.nav_row a:link {
	color: #FF3300;
	font-weight: bold;
	text-decoration: none;
}

.nav_row a:visited {
	color: #999999;
	font-weight: bold;
	text-decoration: none;
}



.nav_row a:hover {
	color: #FFCC00;
	font-weight: bold;
	text-decoration: underline;
}

/* ----- ENDE NAV_ROW ----- */
Weiterhin schaue bitte in die Datei conf.template_default.inc.php unter // row based navigation nach. Dort können auch einige Sachen eingestellt werden.

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
tastosteron
Posts: 12
Joined: Sat 23. Dec 2006, 12:29

Post by tastosteron »

ja RT ist {NAV_ROW}

Hier mal der Quelltex der Kopfzeile:

<!-- Horizontale Navigation ANFANG -->
<table width="750" border="0" cellpadding="0" cellspacing="0">
<tr><td height="20" align="center" bgcolor="#FF0000">{NAV_ROW}</td></tr>
<tr><td height="1" colspan="5" bgcolor="#999999"><img src="img/leer.gif" width="1" height="1" alt="" /></td></tr>




hier fronted.css:

.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: 10px;
color: #000000;
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: 10px;
color: #000000;
font-weight: bold;
text-decoration: none;


}

Wenn ich deinen Code einfüge passiert aber nix, was mache ich falsch?
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Du verwechselst da was:

Code: Select all

.navRow A:link, .navRow A:visited, .navRow A:hover {
   font-size: 10px; color: #333333; text-align: center;
}
.navRow {
   font-size: 10px; color: #333333; margin: 0px 0px 0px 0px; padding: 5px 0px 5px 0px;
}
.navRow SPAN {
   color: #333333; font-weight: normal; 
}
Entweder du änderst hier....

oder fügst deine Formatierungen unterhalb der vorhandenen ein. Damit sie auch übernommen werden :idea:
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Oh Ha, da fehlt noch etwas.

Trage in der conf.template_default.inc.php folgendes unterhalb // row based navigation ein:

Code: Select all

$template_default["nav_row"]["before"]				= '<div class="nav_row">';
$template_default["nav_row"]["after"]				= '</div>'; 
Dann klappt´s auch mit der Klasse.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
tastosteron
Posts: 12
Joined: Sat 23. Dec 2006, 12:29

Post by tastosteron »

Vielen Dank!!!!!!!!!!!!!!



jetzt funktioniert das!!!



ein frohes Fest!

Tasto
Post Reply