CSS, HTML and Widgets

Community Forums Forums Design Tips and Tricks CSS, HTML and Widgets

This topic is: resolved

Tagged: , ,

This topic contains 3 replies, has 2 voices, and was last updated by  David Chu 11 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #40884

    WiggleChicken
    Participant
    Post count: 123

    Someone asked how to accomplish a certain design element via a widget. When I mentioned that they can add some div tags to their widget, they told me that they only use CSS in widgets.

    Is there a problem using HTML in a widget? I’ve always used CSS and HTML in my widgets and have never heard that you shouldn’t do this. But if I’m wrong, please let me know, and I’d like to know why.

    Thanks!

    #40905

    David Chu
    Participant
    Post count: 1184

    You’re right. I use HTML in text widgets all the time. I’d actually be less likely to use CSS in a widget.

    I’m sure there are widgets for various plugins and things that may get pretty well messed up by throwing HTML in, and with others you may find that they strip out your HTML.

    But yes, it’s very possible. Just avoid putting PHP in there. :-)

    Dave


    David Chu · Custom WordPress Developer – likes collaborating with Designers

    #40941

    WiggleChicken
    Participant
    Post count: 123

    Awesome, that’s what I wanted to know. Thanks. I use text widgets quite a bit, so this surprised me when someone said this to me. Whew!

    The chicken is relieved. I repeat. The chicken is relieved!

    #40942

    David Chu
    Participant
    Post count: 1184

    I repeat myself when under stress I repeat myself when under stress I…… :-)


    David Chu · Custom WordPress Developer – likes collaborating with Designers

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.