Forums

[resolved] Changing the colors and header on a single page (3 posts)

  1. eastpath
    Member
    Posted 1 year ago #

    Hello. I have a custom theme I've done for a website, and I was wondering if it is possible to create a page within that theme that loads a different header, different background colours and different link colours while still maintaining the general theme on all other pages.

    I'm just not sure where to begin attempting it and would love to be pointed in the right direction if it is possible to do such a thing.

    Thanks for the help! :)

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    one possibility:

    page templates:
    http://codex.wordpress.org/Pages#Page_Templates
    and include a different header file:
    http://codex.wordpress.org/Function_Reference/get_header

    other possibility:

    if the html structure stays the same (= while still maintaining the general theme on all other pages. )

    using body_class() would give you a page-(template-)-specific css class to use in styling
    http://codex.wordpress.org/Function_Reference/body_class

    this would particularly work if the header image is a background image

    third possibility:

    conditional tags:
    http://codex.wordpress.org/Conditional_Tags
    probably: is_page() or is_page_template()

  3. eastpath
    Member
    Posted 1 year ago #

    The first two links were exactly what I needed. Thank you so much! :D

    I'm working on the colour aspect now, but the templates info was super super helpful.

    Totally appreciate your help :) :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags