Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Apply CSS in single posts and pages only

Home / Forums / Kadence Theme / Apply CSS in single posts and pages only

This topic is: Resolved
[Resolved]
Posted in: Kadence Theme
June 8, 2021 at 6:25 pm

Hello, I want to apply custom CSS to all unordered lists in posts and pages, basically I want to add an icon in front of all items of the list. But the icon is appearing in my menu and also in the “tabs” block and in other blocks also
How can I exclude these ?
Ive tried adding “single-entry” before, but it is not working

.single-entry ul {
list-style: none;
}
.single-entry ul li::before {
content:”📍”;
display: inline-block;
margin-right: 0.2rem;
}

.single-entry ul ul li::before {
content: “📌”;
}
.single-entry ul ul ul li::before {
content: “🤷‍♀️”;
}

  • The forum ‘Kadence Theme’ is closed to new topics and replies.