WordPress.org

Forums

[resolved] Background color of a static post (7 posts)

  1. eriwes
    Member
    Posted 12 months ago #

    Hey guys!

    I know this seems to be a common issue among the noobies, and believe me, Ive tried to search for help, but I just cant seem to understand what to do.

    The problem is; Ive made a static homepage, and now Id like to change the background-color of the page to something other than white. Ive tried serching in the HTML and CSS, but Ive been unable to change anything.

    I`m running the Twenty Eleven theme, and here is a link to the page I want to change: http://streken-design.no/

  2. esmi
    Forum Moderator
    Posted 12 months ago #

    Have you tried looking in Appearance -> Background?

  3. eriwes
    Member
    Posted 12 months ago #

    I did. But from there Im only able to change the whole sites background. What Im trying to do is edit the background-color of a regular post on the site.

  4. alchymyth
    Forum Moderator
    Posted 12 months ago #

    the theme uses body_class() which outputs a page specific CSS class;
    http://codex.wordpress.org/Function_Reference/body_class

    you can either look into the html output of the page in the browser (browser tool bar: 'view source' or similar) or use a browser inspection tool to find out which CSS you need to edit.

    example:
    .home #page { background: green; }

  5. esmi
    Forum Moderator
    Posted 12 months ago #

    That's not possible without first creating a child theme for your changes. Or installing a custom CSS plugin.

  6. eriwes
    Member
    Posted 12 months ago #

    Ok, I`ll look into that! Thanks a ton for the super-quick replies!

  7. alchymyth
    Forum Moderator
    Posted 12 months ago #

    That's not possible without first creating a child theme for your changes. Or installing a custom CSS plugin.

    @esmi
    in this case, I did not mention child theme or custom CSS as the site uses a clone of Twenty Eleven with its own theme name and folder .....

    @eriwes
    it is generally a good idea to get familiar with child themes :-)

Reply

You must log in to post.

About this Topic