[Support request] Need some changes in code

Home Forums Support Need some changes in code

  • This topic has 1 reply, 2 voices, and was last updated 12 months ago by David.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1019767
    Shivam

    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;
    }
    #1019792
    David
    Staff
    Customer Support

    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;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.