Jump to content

[Share] Turn a text link in Accordion Block to Button

Recommended Posts

To turn a text link in Accordion Block to Button, you can follow these. 

If you can't make it work, you can share link to page where you use Accordion. I will check it again.

#1. First, find the Accordion Block ID. Use below tool.

In my example, we have: #block-yui_3_17_2_1_1722754225107_12085

image.png.b57fb4c82bbc438146ffb223c2808bbf.png

#2. Next, identify the URL inserted into the text.

In my example, the URL is /book-now

image.png.1739d4cd6eccdce8a3eb16b6d499c38f.png

#3. Use this code to Custom CSS box

#block-yui_3_17_2_1_1722754225107_12085 a[href="/book-now"] {
    background-color: #000;
    color: #fff;
    padding: 5px 20px;
    display: inline-block;
    font-size: 16px;
    margin-top: 10px;
    border-radius: 10px;
}

image.png.a6d70e39717af9bbeae50d8a772b59e5.png

#4. Result

image.thumb.png.1a74605c05881b7ba14002ad4f5b50dd.png

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 704
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.