WordPress.org

Ready to get started?Download WordPress

Forums

Using HTML in the widget title (6 posts)

  1. cruxwireweb
    Member
    Posted 3 years ago #

    I need to be able to use HTML in widget title tags. I want the text color of some title words to be different than others. The way I'm doing this is using a span like this:

    Widget <span>Title</span>

    In the stylesheet:

    .widget-title: ( color:red; )
    .widget-title span ( color:blue; )

    But, it's not working since WP scrubs the title of HTML.

    Can anyone suggest a solution, or tell me where the scrub is in the code? I've commented out a couple instances esc_html($title) in widgets.php, but no luck yet.

    Thanks.

  2. cruxwireweb
    Member
    Posted 3 years ago #

    P.S. I'm using a child of twentyten.

  3. cruxwireweb
    Member
    Posted 3 years ago #

    Anyone?

  4. sagive
    Member
    Posted 3 years ago #

    Same Issue in case anyone got a solution.. Kind of weird since i did use html in widget titles on other websites.

  5. cruxwireweb
    Member
    Posted 3 years ago #

    I never did find a solution. I left the titles blank and put the title text in the widget with its html.

  6. sagive
    Member
    Posted 3 years ago #

    Yee :), did it the same way

Topic Closed

This topic has been closed to new replies.

About this Topic