• froggysky

    (@froggysky)


    First, yes, I have searched the forums and read the documentation on making one’s own theme and have found related information but man, I am so stupid that I need someone to dumb it down for me.

    I am using Kubrick theme. I have made a static home page and want to use a different sub-theme for that. Kubrick comes with a couple like “links” that I am trying to tweak so it has a black background (I am so illerate about this that I couldn’t tackle one from scratch). That’s all I need. The “problem” is that I don’t want to change the style sheet it calls on because I want that for other pages. Using the page editor, I don’t know how to change the background color either.

    Just go ahead and mock me 🙂

Viewing 1 replies (of 1 total)
  • esmi

    (@esmi)

    Everyone has to start somewhere…

    You need to create a custom page template with it’s own CSS class – eg:

    <div id="content" class="narrowcolumn custom">

    you can then use this new class within style.css to change the page content background color.

    If that doesn’t give you enough additional control, the next solution would be to edit header.php and render a new id to <div id="page"> based upon whether this page was using your new custom template. So, if your new page template file was called mypage.php, you could do something like:

    <?php if(is_page_template('mypage.php')):?><div id="page2">
    <?php else :?><div id="page">
    <?php endif;?>

    That should give you a new page id to style on whenever you have assigned the new template to one of your pages.

    and if you haven’t read them already,, you might want to look at:

    Basic WordPress Theme Editing for the Non-Techie
    http://educhalk.org/blog/?p=170
    and
    http://codex.wordpress.org/Pagess#Page_Templates

    Hope that helps

Viewing 1 replies (of 1 total)

The topic ‘black background’ is closed to new replies.