Site logo

Archived topic

Unable to add CSS styling for list

3 replies · Started by Vijaykumar on May 11, 2019

Viewing posts 1–4 of 4

Hi
I have a list of related posts and I am trying to add CSS styling for the list of links but it's not getting applied.
Example see the list styling for the "Recommended reading" list of links at the end of the post url I shared.

I want to apply the "Disc" list style for this list as

list-style-type: disc

but it's not getting applied. What CSS change I need to do?

Hi there,

The related posts plugin you are using is adding a lot of !important which makes the style really hard to overwrite.

I gave it a quick go but couldn't get it to work either.

Have you checked with the plugin support?

Let me know :)

Yes I logged the issue with them but plugin author saying there are lot of overrides by theme for the CSS hence simple CSS for that list style not getting applied. :(

That's not what I'm seeing:
https://www.screencast.com/t/QWDYL2v9d

The theme's style can usually be overwritten easily, for example, to add disc to the "Top FREE Training Tutorials" in the sidebar, we can just do this:

.widget ul li {
    list-style-type: disc;
}

Can you ask them what CSS you'd need if you were using the default twenty series WP theme? It should be the same using GP.

This archived topic is closed to new replies.