WordPress.org

Ready to get started?Download WordPress

Forums

How do I target my Text Widgets with my CSS Stlye Sheet (8 posts)

  1. artistwantab
    Member
    Posted 6 years ago #

    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?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

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

  3. artistwantab
    Member
    Posted 6 years ago #

  4. moshu
    Member
    Posted 6 years ago #

    <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.

  5. artistwantab
    Member
    Posted 6 years ago #

    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?

  6. moshu
    Member
    Posted 6 years ago #

    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.

  7. artistwantab
    Member
    Posted 6 years ago #

    thank you....fixed

  8. Roar
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.