Custom Bullet Point Images

  • Unknown's avatar

    Is there a way to edit the currently displayed bullet points? I’d like to use something that’s a little less “business” and a little more “child”/”preschool”, but cannot seem a way to alter that. I’m hoping there’s a way to do so with a CSS edit. Any assistance you may be able to provide would be greatly appreciated… thanks!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi !

    Using the ::before selector, it’s possible to use any image you want as a bullet point. Could you find an image to would suit you ? I’ll assist you with the CSS part afterward.

  • Unknown's avatar

    You can use these two as examples, please and thanks!

  • Unknown's avatar

    Hi there !

    .entry-content ul li{
      list-style-image: url('https://oswcca.files.wordpress.com/2014/08/bullet-point_purple.gif');
    }

    But you’ll need to make a proper list by pressing the ‘Bulleted List’ icon for it to work.

  • Unknown's avatar

    @francisbob – if I wanted to use a couple different colored versions of the image I’ve found, what would be the specific CSS for that?

  • Unknown's avatar

    You can alternate colors (not randomize them) by using something like that :

    .entry-content ul li{
    list-style-image: url(‘img1’);
    }
    .entry-content ul li:nth-child(2){
    list-style-image: url(‘img2’);
    }
    .entry-content ul li:nth-child(3){
    list-style-image: url(‘img3’);
    }

    Or you can assign a specific color to a list by using this :

    CSS:

    .entry-content #listequelconque{
      list-style-image: url('img');
    }

    In the Post editor, go in the ‘Text’ tab and you’ll see your lists ( they begin with

      ) Change it for something like this, while making sure your ID matches what you wrote before the ‘#’ in the CSS part.
    <ul id="listequelconque">
    	<li>ITEM 1</li>
    	<li>ITEM 2</li>
    	<li>ITEM 3</li>
    	<li>ITEM 4</li>
    </ul>

    Hope this helps !

  • The topic ‘Custom Bullet Point Images’ is closed to new replies.