Ja ID und Name ist klar. Wo muss die neue css Datei dann eigentlich hin? Selbes Verzeichnis wie die Styles.css?
Beiträge von takkyu
-
-
Hi Forum,
normalerweise bekomme ich immer alles mit Hilfe von Google und viel Zeit irgendwann hin. Doch diesmal kapituliere ich :wink: Ich muss dazu sagen ich habe nicht so sehr viel Ahnung von dem ganzen Codesalat :grin:
Ich möchte auf einer bestimmten Seite eine andere Farbe für "Links" haben. Jetzt hab ich verschiedene Seiten gefunden die sagen man müsste sowas in der Art in die Header.php schreiben:PHP<?php if ( is_page('681') ) { <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/beispiel.css"Aber ich bekomme es einfach nicht hin. Meine Seite ist dann meistens ganz weiß :lol: Kann mir da vielleicht schnell mal jemand helfen? Hier meine Header.php:
PHP
Alles anzeigen<?php // Prevent users from directly loading this theme file defined( 'K2_CURRENT' ) or die ( 'Error: This file can not be loaded directly.' ); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="http://purl.org/uF/2008/03/ http://purl.org/uF/hAtom/0.1/"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="template" content="K2 <?php k2info('version'); ?>" /> <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_url'); ?>/style.css" /> <?php /* Child Themes */ if ( K2_CHILD_THEME ): ?> <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('stylesheet_url'); ?>" /> <?php endif; ?> <?php if ( is_singular() ): ?> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php endif; ?> <?php wp_head(); ?> <?php wp_get_archives('type=monthly&format=link'); ?> </head> <body class="<?php k2_body_class(); ?>"> <?php /* K2 Hook */ do_action('template_body_top'); ?> <div id="page"> <?php /* K2 Hook */ do_action('template_before_header'); ?> <div id="header"> <a href="<?php bloginfo('url') ?>/" style="display:block; width:100%; height:100%;"> <span style="visibility:hidden"><?php bloginfo('name') ?></span> </a> <?php locate_template( array('blocks/k2-header.php'), true ); ?> <?php /* K2 Hook */ do_action('template_header'); ?> </div> <!-- #header --> <hr /> <?php /* K2 Hook */ do_action('template_before_content'); ?>Danke schon mal :smile: