Jump to content

Need Help with Custom Bullets and Accordions!

Recommended Posts

Hello! I need help please. I created a custom bullet and used custom code to get it working really well on my site. But it seems to have applied the bullets now to my accordion pages. Ugh. I found this snippet of code online and tweaked the spacing, etc. but can someone please advise me on how to get this off the accordion pages? Code below as well as screenshots. Thank you!

.sqs-block-content ul {
  list-style-type: none;}

.sqs-block-content li:before {
    content: '';
    display: block;
    height: 20px;
    position: relative;
    top: 25px;
    left: -30px;
    width: 20px;
    background-image: url(https://static1.squarespace.com/static/636d9e7382f20b5a05d0f2f3/t/638ba8689c6261251d69ef77/1670097000042/Untitled+design+%282%29.png);
    background-size: contain;
    margin-right: 5px;}
.sqs-block-html .sqs-block-content ul {
  margin-top: -30px
}
.sqs-block-html .sqs-block-content ul li:before {
  top: 20px;
}
.sqs-block-html .sqs-block-content ul li p {
  margin: 0
}

 

Custom Bullets on Accordions.PNG

Custom Bullets.PNG

Link to comment
  • Replies 1
  • Views 240
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try changing your code to this

.html-block .sqs-block-content ul {
  list-style-type: none;}

.html-block .sqs-block-content li:before {
    content: '';
    display: block;
    height: 20px;
    position: relative;
    top: 25px;
    left: -30px;
    width: 20px;
    background-image: url(https://static1.squarespace.com/static/636d9e7382f20b5a05d0f2f3/t/638ba8689c6261251d69ef77/1670097000042/Untitled+design+%282%29.png);
    background-size: contain;
    margin-right: 5px;}
.sqs-block-html .sqs-block-content ul {
  margin-top: -30px
}
.sqs-block-html .sqs-block-content ul li:before {
  top: 20px;
}
.sqs-block-html .sqs-block-content ul li p {
  margin: 0
}

If it doesn't work, please share link to accordion page, we can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.