• Resolved ryanmk54

    (@ryanmk54)


    I made a 2012 child theme by changing the background of most of the page elements in the style.css. Is there a way I could have the background of all the elements change to be the same as the custom background that is set in the wordpress Appearance settings?

    Thanks in advance,

Viewing 4 replies - 1 through 4 (of 4 total)
  • This in child theme stylesheet will do just that. This code works only if there is a color or an image set in Custom Background theme setting.

    .site { background-color: transparent; }
    
    @media screen and (min-width: 960px) {
    	body .site { box-shadow: none; }
    }
    Thread Starter ryanmk54

    (@ryanmk54)

    Thank you. That is exactly what I was looking for! 🙂

    alhabboub

    (@alhabboub)

    i need your support. i have installed twenty twelve theme. and in the middle there is white background inside it there is posts and header. i need to control this white background to make it transparent and change the colour. can you guide me how i should do it.. and which php file i should edited.

    Thread Starter ryanmk54

    (@ryanmk54)

    Look in the wiki on how to create a child theme. In the child theme you can use a styles.css file to change the background of a particular class of elements. Use the inspect element feature of your web browser to find the class name of the element you want to change.

    I don’t have wordpress installed anymore so I can’t help you much more than that.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘using custom background for child theme’ is closed to new replies.