Site logo

Archived topic

Need some changes in code

1 reply · Started by Shivam on September 26, 2019

Viewing posts 1–2 of 2

Hey team,

Recently I applied this code to change icon of bullet list. But i get this code is applied on everything from table of content to social share button.

can you help me remove table of content and social share from this code. You can have a look at any of my blog post.

.entry-content ul li::before {
    content: '✱';
    margin-right: 10px;
 color:#b142ec;
	line-height: 26pt;
}
.entry-content ul li {
    list-style: none;
}

Hi there,

you can change the selectors behaviour to target direct descendants of the entry-content like so:

.entry-content > ul li::before {
    content: '✱';
    margin-right: 10px;
 color:#b142ec;
	line-height: 26pt;
}
.entry-content > ul li {
    list-style: none;
}
This archived topic is closed to new replies.