News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[gelöst] Schriftfarbe in header und footer ändern?

Started by hackepeter, April 10, 2004, 07:54:33 AM

Previous topic - Next topic

hackepeter

hi,

ich hab den weißen Hintergrund oben und ganz unten in schwarz geändert (im index.template)
um das forum an das restliche seitendesign anzupassen.
aber jetzt sind natürlich der schwarze boardtitel oben links, die "erweiterte suche"  und die copyrightsachen ganz unten nicht mehr zu sehen.

wo kann ich das auf weiss ändern, ohne das auch in den postings und in der liste der boards/beiträge die schrift weiss wird?

und bitte nicht nur mit : "im style.css" antworten. wenn das da geht dann bitte verraten WO da  :D 

andrea

Öffne die Datei "index.template.php" und suche dort die Stelle wo das Copyright hingepflanzt wird. Wo? Suche im Text nach dem String "copyright". Ändere entweder dort direkt ab oder die entsprechende Klasse im "style.css". Wo im style.css? Suche nach dem String ...

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



hackepeter

also:
<td  valign="middle" align="center"

style="white-space: nowrap;color: white;">
               ', theme_copyright(), '

hat geklappt.

bleiben im footer noch zwei probleme:

1. die schriftfarbe von "Seite erstellt in ....sec" konnte ich auf weiß ändern,
indem ich im style.css eine neue klasse erstellt habe:

.footertext
{
        color: #FFFFFF;
   font-size: x-small;
   font-family: Tahoma, arial, helvetica, serif;
}

und im template dann:

// Show the load time?
   if ($context['show_load_time'])
      echo '
      <span class="footertext">', $txt['smf301'], $context 'load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

gesetzt habe.

das zweite problem konnte ich bisher nicht lösen:
die links im copyright weiß bekommen.

erfolglos:
im style.css

a.footer:link
{
        color: #FFFFFF;
        text-decoration: none;
}
a.footer:visited
{
        color: #eeeeee;
        text-decoration: underline;
}
a.footer:hover
{
        color: #FFFFFF;
        text-decoration: underline;
}
a.footer:active
{
        color: #eeeeee;
        text-decoration: none;
}

angelegt und dann im template

<td  valign="middle" align="center"

style="white-space: nowrap;color: white;" class=footer>
               ', theme_copyright(), '

funzt nicht.

was mache ich falsch? ich will schliesslich für dieses super forum sichtbar werben


andrea

Am einfachsten geht es wenn Du eine css Klasse "copyright" eröffnest und diese in der Datei "index.template.php" an der richtigen Stelle aktivierst. Link Farben etc. in der Klasse "copyright" setzen.

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



hackepeter

ja das war ja mein ansatz...meine klasse heisst halt footer statt copyright.
ich habs jetzt so gelöst und es geht auch:

css:

Quote.footer
{
        background-color: #000000
        color:            #FFFFFF
}
.footer a:link
{
        color: #FFFFFF;
        text-decoration: none;
}
.footer a:visited
{
        color: #eeeeee;
        text-decoration: underline;
}
.footer a:hover
{
        color: #FFFFFF;
        text-decoration: underline;
}
.footer a:active
{
        color: #eeeeee;
        text-decoration: none;
}

template:

Quote<td  class=footer valign="middle" align="center"

style="white-space: nowrap;color: white; " >
               ', theme_copyright(), '
            </td>

den text unten inkl. links hab ich nun also weiss.

der Titel geht mit:

Quote<tr>
            <td style="color: white" colspan="2"

valign="bottom" style="padding: 5px; font-family: Verdana, serif; font-size:

xx-large; white-space: nowrap; ">
               <img src="', $settings['images_url'],

'/smflogo.gif" width="250" style="float: right;" alt="" />
               ', $context['forum_name'], '
            </td>

der link "erweiterte suche" hab ich leider nur einfarbig weiß hinbekommen - also ohne farbänderung
bei hover - nicht schön aber wenigstens weiß:

Quote<a style="color: white" href="',

$scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
                  <input type="hidden"

name="advanced" value="0" />';

andrea

Ergänze in style.css noch die Klasse ".footer" auf ".footer, .footer td".

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



Advertisement: