Jump to content

[Share] How to remove icon in Accordion Block

Recommended Posts

To remove icon (arrows or plus/minus) icon in Accordion Block, you can follow these.

image.png.f8f829dc5e57cd1f3918dbd6e9d59af0.png

#1. All Accordions

Use this to Custom CSS box

div.accordion-icon-container {
    display: none;
}

image.png.008a439e7eb818a269d7e243ec33f874.png

#2. All accordions (on One Page)

First, you need to find Page ID.

In my example, we will have: #collection-66b1ea3b1c30c22054d0a383

image.png.89bbd0e3b6fc2bb5d8fb13ecc63b645b.png

Next, use CSS code like this

#collection-66b1ea3b1c30c22054d0a383 div.accordion-icon-container {
    display: none;
}

#3. Specific Accordion Block

First, you need to find Accordion Block ID. Use #2 tool.

Next, use CSS code like this

#block-yui_3_17_2_1_1722935850341_3420 div.accordion-icon-container {
    display: none;
}

#4. Specific item in specific accordion block

First, find Accordion Block ID, use #2 tool. 

Next, use CSS code like this

#block-yui_3_17_2_1_1722935850341_3420 li:nth-child(2) div.accordion-icon-container {
    display: none;
}

image.png.57ff7a8b24522e04dc79899c2504bede.png

#5. Remove accordion icon on Desktop only

Use this CSS code

@media screen and (min-width:768px) {
  div.accordion-icon-container {
      display: none;
  }
}

#6. Remove accordion icon on Mobile Only

@media screen and (max-width:767px) {
  div.accordion-icon-container {
      display: none;
  }
}

 

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
  • Replies 0
  • Views 369
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.