• hi,
    I’m trying to customize the wordpress widgets. I have absolutely no clue where the css for these widgets are; or the php code for them. Soidebar.php doesn’t include anything regarding the widget except the categories and archives. Where and how can I customize them?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Some of the widget markup may be specified in your theme’s functions.php but you can change the display using CSS in your theme’s stylesheet.

    Thread Starter dyakub

    (@dyakub)

    Ok I’ve found the css for it. Is there any way I can edit the stylesheet for a specific widget (not for all). I think php would be responsible for this. If a widget is displayed then show a different stylesheet. Like:

    <?php if ( widget('Archives'))
    <link rel="stylesheet2.css".........>
    ?>

    something like that

    It’s handled by the CSS (assuming that the widget markup applies appropriate classes automatically). A link to your site might help here.

    Thread Starter dyakub

    (@dyakub)

    ok http://www.burnnoticefanatic.com
    The widget I’m trying to customize is the Burn Notice Twitter Widget on the sidebar right (2nd one under the subscribe bar). The text is black and the links are gray. I want to change this just for this widget not for the rest of em

    You’d need to first edit the register_sidebar function in your theme’s functions.php file and add add an id (or class) to the before_widget parameter. Right now, your widgets do not have individual classes, so there’s nothing you can use to style them independently.

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

The topic ‘how do I customize widgets’ is closed to new replies.