This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Styles of ul and li

7 years ago · Last reply by Andrew Misplon 7 years ago

When I go to put a list in the body of a post or page, it comes out unformatted and I have to put style codes on every ul and li if I want it to look like a normal list (indented with bullet points). Here’s a good example of a page on the site: http://www.elycct.org/get-help-now/lonely-or-isolated/

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 7 years, 10 months ago

    Hi Irene

    Thanks for posting. I’m sure I can help clear this up. I think there is a bit of misconception.

    The SiteOrigin Editor Widget is a clone of the core WordPress TinyMCE editor. We’re providing the core TinyMCE in a widget format.

    Usually, your theme would handle list formatting. What’s probably happened here is your theme expects widgets to be in theme widget areas so it has styled lists assuming they’ll only be in those areas. Two possible fixes:

    1. Go to SettingsPage BuilderWidgets and disable: Add Widget Class.

    That’ll prevent the theme from targeting Page Builder widgets in the same way it would widgets in a theme widget area.

    2. Or you can add global styling for all your lists, it doesn’t need to be done for each list. This is a bit rough, I can clean it up if you’d like. You added classes for help and help.sub. Why not just target:

    ul  {
    	list-style:disc;
    	padding-left: 10px;
    	list-style-position: outside !important;
    	margin-bottom: 20px;
    }
    
    ul ul {
    	list-style:circle;
    	padding-left: 10px;
    	list-style-position: outside !important;
    	margin-bottom: 20px;
    }

    Or if you want to make it specific to the Editor widget, prefix it:

    .textwidget ul  {
    	list-style:disc;
    	padding-left: 10px;
    	list-style-position: outside !important;
    	margin-bottom: 20px;
    }
    
    .textwidget ul ul {
    	list-style:circle;
    	padding-left: 10px;
    	list-style-position: outside !important;
    	margin-bottom: 20px;
    }

    In this last example, you’re targeting lists and lists within lists if they are in a container with class textwidget.

    Try disabling the widget class first, idea 1, that’ll most likely fix this.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread