WordPress.org

Ready to get started?Download WordPress

Forums

Separate stylesheet and header for one page (5 posts)

  1. jennytc
    Member
    Posted 5 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
    Member
    Posted 5 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
    Member
    Posted 5 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
    Member
    Posted 4 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
    Member
    Posted 4 years ago #

    @ tugbucket. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.