WordPress.org

Ready to get started?Download WordPress

Forums

search this if page home get home css and menusite.css in a template header.php (1 post)

  1. Baudry
    Member
    Posted 6 years ago #

    In my header template i make this but it don't run i would like to associate page to css `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

    <?php elseif ( is_page('home') ) { // Charger la CSS pour la page "home" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/stylehome.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('home') ) { // Charger la CSS pour la page "home" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('home') ) { // Charger la CSS pour la page "home" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('biography') ) { // Charger la CSS pour la page "biography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/workingprogress.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('biography') ) { // Charger la CSS pour la page "biography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('randomizer') ) { // Charger la CSS pour la page "randomizer" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('randomizer') ) { // Charger la CSS pour la page "randomizer" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('randomizer') ) { // Charger la CSS pour la page "randomizer" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('randomizer') ) { // Charger la CSS pour la page "randomizer" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/randomizer.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('randomizer') ) { // Charger la CSS pour la page "randomizer" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('randomizer') ) { // Charger le script pour la page "randomizer" ?><script src="/machines.js" type="text/javascript"></script>;
    <?php elseif ( is_page('workingprogress') ) { // Charger le CSS pour la page "workingprogress" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/workingprogress.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('workingprogress') ) { // Charger le CSS pour la page "workingprogress" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('play') ) { // Charger le CSS pour la page "play" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/workingprogress.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('play') ) { // Charger le CSS pour la page "play" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('videos') ) { // Charger le CSS pour la page "videos" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/workingprogress.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('videos') ) { // Charger le CSS pour la page "videos" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('pictures') ) { // Charger le CSS pour la page "pictures" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/stylehome.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('pictures') ) { // Charger le CSS pour la page "pictures" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('pictures') ) { // Charger le CSS pour la page "pictures" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('pictures') ) { // Charger le CSS pour la page "pictures" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/pictures.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('sounds') ) { // Charger le CSS pour la page "sounds" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/stylehome.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('sounds') ) { // Charger le CSS pour la page "sounds" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('sounds') ) { // Charger le CSS pour la page "sounds" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;

    <?php elseif ( is_page('software') ) { // Charger la CSS pour la page "software" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('software') ) { // Charger la CSS pour la page "software" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('software') ) { // Charger la CSS pour la page "software" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('software') ) { // Charger la CSS pour la page "software" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/software.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('software') ) { // Charger la CSS pour la page "software" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('software') ) { // Charger le script pour la page "software" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('exhibition') ) { // Charger la CSS pour la page "exhibition" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('exhibition') ) { // Charger la CSS pour la page "exhibition" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('exhibition') ) { // Charger la CSS pour la page "exhibition" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('exhibition') ) { // Charger la CSS pour la page "exhibition" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/exhibition.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('exhibition') ) { // Charger la CSS pour la page "software" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('exhibition') ) { // Charger le script pour la page "exhibition" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('abstracts') ) { // Charger la CSS pour la page "abstracts" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('abstracts') ) { // Charger la CSS pour la page "abstracts" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('abstracts') ) { // Charger la CSS pour la page "abstracts" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('abstracts') ) { // Charger la CSS pour la page "abstracts" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/abstracts.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('abstracts') ) { // Charger la CSS pour la page "abstracts" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('abstracts') ) { // Charger le script pour la page "abstracts" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('diagrams') ) { // Charger la CSS pour la page "diagrams" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('diagrams') ) { // Charger la CSS pour la page "diagrams" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('diagrams') ) { // Charger la CSS pour la page "diagrams" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('diagrams') ) { // Charger la CSS pour la page "diagrams" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/diagrams.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('diagrams') ) { // Charger la CSS pour la page "diagrams" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('diagrams') ) { // Charger le script pour la page "diagrams" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('machines') ) { // Charger la CSS pour la page "machines" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('machines') ) { // Charger la CSS pour la page "machines" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('machines') ) { // Charger la CSS pour la page "machines" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('machines') ) { // Charger la CSS pour la page "machines" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/machines.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('machines') ) { // Charger la CSS pour la page "machines" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('machines') ) { // Charger le script pour la page "machines" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('artists') ) { // Charger la CSS pour la page "artists" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('artists') ) { // Charger la CSS pour la page "artists" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('artists') ) { // Charger la CSS pour la page "artists" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('artists') ) { // Charger la CSS pour la page "artists" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/artists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('artists') ) { // Charger la CSS pour la page "artists" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('artists') ) { // Charger le script pour la page "artists" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('bibliography') ) { // Charger la CSS pour la page "bibliography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('bibliography') ) { // Charger la CSS pour la page "bibliography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('bibliography') ) { // Charger la CSS pour la page "bibliography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('bibliography') ) { // Charger la CSS pour la page "bibliography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/bibliography.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('bibliography') ) { // Charger la CSS pour la page "bibliography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('bibliography') ) { // Charger le script pour la page "bibliography" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('webography') ) { // Charger la CSS pour la page "webography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('webography') ) { // Charger la CSS pour la page "webography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('webography') ) { // Charger la CSS pour la page "webography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('webography') ) { // Charger la CSS pour la page "webography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/webography.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('webography') ) { // Charger la CSS pour la page "webography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('webography') ) { // Charger le script pour la page "webography" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('discography') ) { // Charger la CSS pour la page "discography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('discography') ) { // Charger la CSS pour la page "discography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('discography') ) { // Charger la CSS pour la page "discography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('discography') ) { // Charger la CSS pour la page "discography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/discography.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('discography') ) { // Charger la CSS pour la page "discography" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('discography') ) { // Charger le script pour la page "discography" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('citations') ) { // Charger la CSS pour la page "citations" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('citations') ) { // Charger la CSS pour la page "citations" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('citations') ) { // Charger la CSS pour la page "citations" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('citations') ) { // Charger la CSS pour la page "citations" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/citations.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('citations') ) { // Charger la CSS pour la page "citations" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('citations') ) { // Charger le script pour la page "citations" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('lexicon on interactivity') ) { // Charger la CSS pour la page "lexicon on interactivity" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('lexicon on interactivity') ) { // Charger la CSS pour la page "lexicon on interactivity" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('lexicon on interactivity') ) { // Charger la CSS pour la page "lexicon on interactivity" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('lexicon on interactivity') ) { // Charger la CSS pour la page "lexicon on interactivity" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lexique.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('lexicon on interactivity') ) { // Charger la CSS pour la page "lexicon on interactivity" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('lexicon on interactivity') ) { // Charger le script pour la page "lexicon on interactivity" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('links') ) { // Charger la CSS pour la page "links" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('links') ) { // Charger la CSS pour la page "links" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('links') ) { // Charger la CSS pour la page "links" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('links') ) { // Charger la CSS pour la page "links" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/workingprogress.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('links') ) { // Charger la CSS pour la page "links" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('links') ) { // Charger le script pour la page "links" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('forum') ) { // Charger la CSS pour la page "forum" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('forum') ) { // Charger la CSS pour la page "forum" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('forum') ) { // Charger la CSS pour la page "forum" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('forum') ) { // Charger la CSS pour la page "forum" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/workingprogress.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('forum') ) { // Charger la CSS pour la page "forum" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('forum') ) { // Charger le script pour la page "forum" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('upload') ) { // Charger la CSS pour la page "upload" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('upload') ) { // Charger la CSS pour la page "upload" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('upload') ) { // Charger la CSS pour la page "upload" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('upload') ) { // Charger la CSS pour la page "upload" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/workingprogress.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('upload') ) { // Charger la CSS pour la page "upload" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('upload') ) { // Charger le script pour la page "upload" ?><script src="/machines.js" type="text/javascript"></script>;

    <?php elseif ( is_page('thanks') ) { // Charger la CSS pour la page "thanks" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/common.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('thanks') ) { // Charger la CSS pour la page "thanks" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/links.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('thanks') ) { // Charger la CSS pour la page "thanks" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/lists.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('thanks') ) { // Charger la CSS pour la page "thanks" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/workingprogress.css" type="text/css" media="screen" />;
    <?php elseif ( is_page('thanks') ) { // Charger la CSS pour la page "thanks" ?><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/menusite.css" type="text/css" media="screen" />;

    <?php elseif ( is_page('thanks') ) { // Charger le script pour la page "thanks" ?><script src="/machines.js" type="text/javascript"></script>;

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <style type="text/css" media="screen">

    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !$withcomments && !is_single() ) {
    ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    <?php } ?>

    </style>

    <?php wp_head(); ?>

    </head>
    <body>
    <div id="page">

    <div id="header">
    <div id="headerimg">
    <h1>/"><?php bloginfo('name'); ?></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>
    <hr />
    '

    But is it possible to mage function css in php per page like if page is home send home.css and menusite.css

    I try to make a function but it's bad work :

    <?php
    // Home Css attribution
    // Definition creation de fonction attributions de css par page
    // Version test
    // Autor Olivier Baudry
    
    function php_template_home ($hook,$vars) {
    
    	  // intialize css for   home
    	 global $thèmehome;
    	 switch ($hook){
    	 //thème home appele à chaque fois qu'on est sur 'home'
    	 case 'home':
    	 <?echo get_template_directory_uri('thème,$thèmehome);?>. '/stylehome.css);
    	 <?echo get_template_directory_uri('thème,$thèmehome);?>. '/common.css);
    	 <?echo get_template_directory_uri('thème,$thèmehome);?>. '/menusite.css);
    	 break;
    
    	 }
    	 return $vars;
    	 }

    and after how ask a function in a template header.php

Topic Closed

This topic has been closed to new replies.

About this Topic