• I m having trouble to style widget title backgrounds.What i want is ,on sidebar ,every widget title to replace with some different color or background.

    Only thing i was able to change is all title backgrounds to same with this

    h1.widget {background : #color or url}

    For example i have 3 widgets on sideber which uses post pulled from catgories.This is example of one which i found with firebug

    `<div class=”widget”><div class=”widgettitle”><h1 class=”widget”>Fastnews</h1></div>

    As i can se in code there isnt div id,just class
    And i try everything,but cant found solution.
    Any help ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • dig further with firebug and you should find a text-# id you can use if you used text-widgets. 🙂

    can you post a link to your site for me?

    Thread Starter oneruffryderst

    (@oneruffryderst)

    Yea sure..this is site where i testing it and editing before uploading on real site.

    http://glospedit.net23.net/

    I wasnt able to found any text-# id.And also the other problem i have i cant found anywhere opening for the post text.Only thing i have to modify text is .body () but where i do it that way it also changes text on front page (home page) which i dont want.I just want to add some padding-left and right on post page.
    Thx

    You need to edit the register_sidebars function in your theme’s function.php file to apply unique ids or classes to each widget. See the examples on http://codex.wordpress.org/Function_Reference/register_sidebar

    Thread Starter oneruffryderst

    (@oneruffryderst)

    Ok i look to it,but i m newbie so ,it gonna be problem for me.I know only css and hmtl ..But il try..and idea for how to add padding left and rigth on post pages?

    Thx

    On what post pages? Archives? Single posts?

    Thread Starter oneruffryderst

    (@oneruffryderst)

    Every one.As you can see i put the border.So text on all pages need some paddings.But only thing where i have ability to change font of it and add padding is .body which also changes the same on home page which i dont want..

    I found on register sidebar this..

    [Code moderated as per the Forum Rules. Please use the pastebin]

    for 3 widgets or ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to add different backgrounds for widget title’ is closed to new replies.