Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there a better way to do this? Widget backgrounds


  • AAShepAA
    Participant

    @aashepaa

    I am using a child theme and have added a few things to that theme’s CSS. I was thrying to add a backbround to the widgets in the sidebar. This code works, but there has to be a better way than having to do this for every widget:

    div#content
    {
    background: url(images/background.gif) left top repeat;
    }
    div#theme-my-login-5
    {
    background: url(images/background.gif) left top repeat;
    }
    div#loginwithajaxwidget-4
    {
    background: url(images/background.gif) left top repeat;
    }
    div#pm4wp-widget-5
    {
    background: url(images/background.gif) left top repeat;
    }
    div#useronline-6
    {
    background: url(images/background.gif) left top repeat;
    }
    div#eshopw_cart-3
    {
    background: url(images/background.gif) left top repeat;
    }
    div#bbp_topics_widget-2
    {
    background: url(images/background.gif) left top repeat;
    }
    div#slideshow-7
    {
    background: url(images/background.gif) left top repeat;
    }

You must be logged in to reply to this topic.