How can I add a new CSS class to <ul> tag?

I want to assign a new CSS class to default <ul> widget in Page/Post creating page in wordpress. How can I do this?

See the image below.

Read More

enter image description here

Related posts

Leave a Reply

1 comment

  1. All you have to do is create and upload a new style rule for the <ul> with the class name you want to assign to it in your themes/themename/style.css.

    Example

    ul.new-style {
        /* styles */
    }
    

    Then add in a HTML list using the “Text” view on the editor.

    enter image description here

    Example

    <ul class="new-style">
        <li>Item 1</li>
        <li>Item 2</li>
    </ul>
    

    You can also hard code styles if you want a quick fix: <ul style="list-style-type: disc;">