WordPress.org

Ready to get started?Download WordPress

Forums

[Theme Pinboard] change content background from color to image (6 posts)

  1. Templeflower
    Member
    Posted 1 year ago #

    Hi Everyone,

    I'm having a bit of trouble with my custom css for my new site, http://irisaffiliates.info/frizzle. I'm trying to alter the content background to match the page background- which is an image. The theme has the ability to pick a specific background color for the content background, but not to select an image instead.

    I tried the following custom css: '#main {background-image:url('http://irisaffiliates.info/frizzle/wp-content/uploads/2013/05/leather1.jpg');}'

    Which didn't seem to do the trick. I'm sure I am missing something obvious. Can someone point me in the right direction please?

  2. Aditya Pandey
    Member
    Posted 1 year ago #

    There's no id main in your site. That's why.

    Can you tell exactly of what element you want to change background?

  3. Templeflower
    Member
    Posted 1 year ago #

    well this is the php in the functions.php which calls the content background
    '<?php if( $default_options['content_background'] != pinboard_get_option( 'content_background' ) ) : ?>
    .entry,
    #comments,
    #respond,
    #posts-nav {
    background: <?php echo esc_attr( pinboard_get_option( 'content_background' ) ); ?>;
    }'
    Does that help at all?

  4. Aditya Pandey
    Member
    Posted 1 year ago #

    No, not at all.

    I am asking which element of site you want to change background? Can you give me screenshot of that element?

  5. Templeflower
    Member
    Posted 1 year ago #

    go here:

    http://irisaffiliates.info/frizzle/products

    I want the content background ie: the frame in which the actual blog text appears, to be the same as the main, leather texture background of the page.

    In this page the content is the dark brown box which contains the text starting with "Products" and ending with "one of a kind look".

    Thanks for your help

  6. Aditya Pandey
    Member
    Posted 1 year ago #

    You might want to target .onecol .hentry .entry

    Or all of these
    .onecol .hentry .entry, .onecol .hentry #comments, .onecol .hentry #respond, .category-filter
    instead of #main depending on your need.

    Also please get familiar with Firebug. That'll help you to quickly find the selector.
    Read here: http://www.studiopress.com/tips/using-firebug.htm

Topic Closed

This topic has been closed to new replies.

About this Topic