WordPress.org

Ready to get started?Download WordPress

Forums

background question (5 posts)

  1. marginwalker
    Member
    Posted 8 years ago #

    How do I change the colour of my background? IS it in the CSS?

  2. hbalagh
    Member
    Posted 8 years ago #

    yes

    usually in the body tag

  3. moshu
    Member
    Posted 8 years ago #

    In many themes it's an image. Give a link or at least tell which theme...

  4. marginwalker
    Member
    Posted 8 years ago #

    http://www.marginalwalker.co.uk

    Ive tried it but it only seems to affect part of the page, or something lol

  5. syncbox
    Member
    Posted 8 years ago #

    If you have access to the body tag, you can pass an ID or class to set the body background-color, which you specify in the style.css page. For example:

    body#red {
    background-color:#ff0000;
    }
    body#blue {
    background-color:#336699;
    }
    This would be true for just about any element, assuming you can set an ID on the body tag...but it requires that the body tag be available for editing in each Page or Category template.

    I'm new to this but have managed to set mine up for it, and have asked the question if it's possible to pass an id for the body tag dynamically, but have had no replies indicating HOW, if possible.

    I'm all ears, btw, if anyone knows how to set the id of the <body> dynamically (on a link?)(without breaking anything else?)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags