Support » Plugin: Draft List » Add css-class for customization

  • Hi, is it possible, to add a admin config field within the widget, to hold css-class-name(s) used in ul/ol? thank you!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Artiss

    (@dartiss)

    Hi @silversmurf,

    Just to confirm, are you wanting to be able to specify the CSS class for the widgets?

    I wanna be able to specify the CSS class for the generated list (ul/ol) within your code.

    generate-code.php:213

    $className = getFromOptions("userClassName");
    $code .= '<' . $list_type . ( !empty($className) ? ' class="' . $className . '"' : ''  ) . ">\n";

    instead of:
    $code .= '<' . $list_type . ">\n";

    Do you understand?

    Plugin Author David Artiss

    (@dartiss)

    Yes. Normally, I wouldn’t do this but just provide a set class name, which you can provide custom CSS for you, if you wish.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add css-class for customization’ is closed to new replies.