Separate stylesheet and header for one page (5 posts)

  1. jennytc
    Posted 7 years ago #

    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?

  2. PuNK DeSi
    Posted 7 years ago #

    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

  3. tugbucket
    Posted 7 years ago #

    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.

  4. mykidcandance
    Posted 6 years ago #

    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.

  5. lag47
    Posted 6 years ago #

    @ tugbucket. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.