background color of blocks section on product theme

is it possible to make the background of just the 3 blocks a specific color? so far I have only been able to change the background color for all content. is it possible to make the background of the blocks a different color then the rest of the content areas?

  • Tammie
    • WordPress Wizard

    @danieldalonzo: If you look in firebug you can do this and then put in child theme.

    #content-block-wrapper {
    background:none repeat scroll 0 0 #444444;
    padding:20px 0 20px 20px;
    }

    However, you will have a white border around it. If you wanted it fully to be a different colour you would need to attach a new class and create one for that section which is: library/components/content-blocks.php - you'd need to change the style in home.php:

    <div id="content">
    <div class="padder">
    <?php
    $contentshow = get_option('dev_product_contentshow');{
    if ($contentshow == "yes"){
    locate_template( array( '/library/components/content-blocks.php' ), true );
    }
    else if ($contentshow == "no"){

    }
    else{
    locate_template( array( '/library/components/content-none.php' ), true );
    }
    }
    ?>
    </div><!-- .padder -->
    </div><!-- #content -->

    That calls the blocks so you can just change content to another class or add a class.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.