WordPress.org

Support

Support » Plugins and Hacks » How to add a class?

How to add a class?

  • Hello

    I’m trying to add a widget that does not display the title, and has a specific class I can use to add CSS to it.

    I’ve managed to hide the title, but no matter what I do, I can’t figure out how to add a class.

    What should I add in the CSS Classes textbox so that the class is added, instead of the default “textwidget” class?

    http://wordpress.org/extend/plugins/enhanced-text-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bostondv
    Member

    @bostondv

    You can enter any text into the css class field. Such as my-class-name or class1 class2.

    These classes will be added to the “before_widget” element. The classes are not added to the “textwidget” element.

    Make sure you do not enable the “Do not output before/after_widget/title” option if you want to use the css class field.

    Dave
    Member

    @dave861

    The classes seems to be a bit broken…

    http://imgur.com/xr3Rjmn

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add a class?’ is closed to new replies.