• Resolved dirkmat1971

    (@dirkmat1971)


    Hello,

    I want to put an image background in a text widget?
    I found this information but it won’t work

    /* Add transparency to Guarantee Text widget */
    div#text-4{
    background: transparent url(/wp-content/themes/atahualpa353/images/transparent.png);
    border: solid 0px;
    }

    I can’t give a link because i run my website local on Xampp
    Can someone help me?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dirkmat1971

    (@dirkmat1971)

    i found it

    this is the correct code

    /* Add transparency to Guarantee Text widget */
    aside#text-2.widget.widget_text {
    background: transparent url(‘/wp-content/uploads/NAMEOFFILE.png’);
    border: solid 0px;
    }

    #text-4 {
    background: transparent url/wp-content/themes/atahualpa353/images/transparent.png);
    border: solid 0px;
    }

    should work. Use this one

    #text-4 .textwidget {
    background: transparent url(/wp-content/themes/atahualpa353/images/transparent.png);
    border: solid 0px;
    }

    if you want image only in widget body and not in the title. Of course you need to know text widget id e.g. 1,2,…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add image backgound in text widget’ is closed to new replies.