• Hi I wanted to make my contact form pink. But the rest of my pages white.. Does anyone know how to make a separate header and stylesheet for one page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • make a separate template for that page
    upload template(anyname.php) to your theme folder
    & use that template in your page

    for separate header use
    <?php include (TEMPLATEPATH . ‘/header-1.php’); ?>
    in your new template
    “header-1.php ur separate header’

    for Background color: add custom & modified background-color values in style.css
    & use in template file

    put this in your header.php right before the <?php wp_head(); ?>

    <?php if (is_page('contact')) { ?>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/new-styles.css" type="text/css">
    <?php }; ?>

    make sure your contact page is called contact and your new style sheet is called new-styles.css and voila.

    hey guys i want to do the same thing but i don’t know what you guys are talking about.

    i’m interested in using a different header for a certain page that has a different javascript than the main page so the two javascripts don’t intermingle with eachother and get screwed up.

    what is contact page? TEMPLATEPATH . ??
    and where do i put that?

    i don’t need a new style page i don’t think for this.

    lag47

    (@lag47)

    @ tugbucket. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Separate stylesheet and header for one page’ is closed to new replies.