• Hi,

    I am not using Gutenberg but the plain text editor. How can I add a <p>-div around an unordered list? When I add it in the text editor, it is getting removed in the site html.

    • This topic was modified 5 years, 4 months ago by andi0tx.
    • This topic was modified 5 years, 4 months ago by andi0tx.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The <p> tag is a paragraph tag, not a div. You could add:

    <div class="your-class-name">
    <ul>
    <li></li>
    </ul>
    </div>
    
    Thread Starter andi0tx

    (@andi0tx)

    The strange thing is it works with Gutenberg when I add it in an html block…but not in the plain text editor.

    I have some css p + p {...} and I also want it to be applied to the ul. Of course I could use p + ul {...} , I just thought I could achieve it in a better way.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a p-div around an ul-div’ is closed to new replies.