WordPress.org

Support

Support » How-To and Troubleshooting » How do I target my Text Widgets with my CSS Stlye Sheet

How do I target my Text Widgets with my CSS Stlye Sheet

  • artistwantab
    Member

    @artistwantab

    How do I target my Text Widgets with my CSS Stlye Sheet?

    Basically, I have tons on sidebar widgets and all are styles the same. I recently added a text widget but for some reason my style sheet is not targeting that widget.

    Any help?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Samuel Wood (Otto)
    WordPress.org Tech Dude

    @otto42

    Giving us a link to your site would help the most.

    artistwantab
    Member

    @artistwantab

    moshu
    Member

    @moshu

    <link href="file:///C|/Documents and Settings/Temp/My Documents/www.elio.ws/Website 2/blog/wp-content/themes/connections-reloaded-15/style.css" rel="stylesheet" type="text/css">

    Why do you think a stylesheet on your own cmputer would have any effect on your website?
    The above line is in your widget – the one that looks different than the others.
    Check your source and see how the other widgets work – i.e. what is the output. Usually, it is a nested list. So, make this one a nested list, too. It should work.

    artistwantab
    Member

    @artistwantab

    Sorry, Ignore that…FIXED…I only include that so I can create the post in dreamweaver with the styles and then paste the code onto the dashboard…I must have forgotten to remove the attached styles sheet.

    I am sorry but I am not the most advanced coder. I figured everything else out but for some reason I just cant find how to target this ONE widget?

    moshu
    Member

    @moshu

    EVERY widget has its own class or ID (sometimes both).
    Reading your source code is always a good idea…
    http://codex.wordpress.org/Finding_Your_CSS_Styles

    EDIT. You can argue as long as you want – but putting the text widget content in between ul and li tags would solve your problem.

    artistwantab
    Member

    @artistwantab

    thank you….fixed

    Hi there, if anyone cares, I was able to change my widgets code by changing the sidebar code on my theme. The widgets themselves did not have individual css.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How do I target my Text Widgets with my CSS Stlye Sheet’ is closed to new replies.