Jump to content

Button images not showing up *recent*

Recommended Posts

  • Replies 7
  • Views 519
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

6 hours ago, mhouseofsport said:

My large buttons on my site are now coming up as invisible. Has squarespace recently changed the naming conventions in the code?

Yes, this undocumented change was made at the end of February.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Great to know it's not just me going crazy. I have it in the CSS code to change all "large" buttons to my image like so:

 

.sqs-block-button-element--large{background-color:transparent!important; background-image:url('https://static1.squarespace.com/static/60bd7f06fc7c64423c37fcc3/t/61be8daef06d6905b236e09a/1639878062359/toppng.com-black-button-icon-501x129.png'); background-size:contain!important; background-position:center;background-repeat:no-repeat!important}
.sqs-block-button-element--large:hover{opacity:1!important;filter:drop-shadow(4px 4px 4px #222)}

So what would I need to now change it to for it to work as it once did?

 

Link to comment

Bit of a legend around these parts Tuan was nice enough to solve this privately for me. Just in case anyone else is struggling with this adding "important" to the code in the below way solved the issue.

 

(add !important to 2 attribute in the code)

.sqs-block-button-element--large {
    background-color: transparent!important;
    background-image: url('https://static1.squarespace.com/static/60bd7f06fc7c64423c37fcc3/t/61be8daef06d6905b236e09a/1639878062359/toppng.com-black-button-icon-501x129.png') !important;
    background-size: contain!important;
    background-position: center !important;
    background-repeat: no-repeat!important
}
.sqs-block-button-element--large:hover {
    opacity: 1!important;
    filter: drop-shadow(4px 4px 4px #222);
}
Link to comment
  • 2 months later...

Hi there.

I'm having the same problem. I tried creating an image for a button today, but it just appears as blank. I tried both the code suggested in this thread and the following code, with no luck. Any help much appreciated...

 

.sqs-block-button-element--large{background-color:transparent!important; background-image:url('https://static1.squarespace.com/static/5e5ec4efc85e7f05d4300da4/t/62e9855c798edf172f7e451c/1659471197080/The+Girl+downloaded+logo+and+C%27est+la+vie+trimmed.png'); background-size:contain!important; background-position:center;background-repeat:no-repeat!important}
.sqs-block-button-element--large:hover{opacity:1!important; }

Link to comment

Site URL: https://www.musicbythegirl.com/clv

Hi there.

I'm trying to create an image for a button today, but it just appears as blank. I tried both the following code, as suggested on an expert video tutorial, with no luck. Any help much appreciated...

 

.sqs-block-button-element--large{background-color:transparent!important; background-image:url('https://static1.squarespace.com/static/5e5ec4efc85e7f05d4300da4/t/62e9855c798edf172f7e451c/1659471197080/The+Girl+downloaded+logo+and+C%27est+la+vie+trimmed.png'); background-size:contain!important; background-position:center;background-repeat:no-repeat!important}
.sqs-block-button-element--large:hover{opacity:1!important; }

Link to comment
10 hours ago, Ibe said:

Hi there.

I'm having the same problem. I tried creating an image for a button today, but it just appears as blank. I tried both the code suggested in this thread and the following code, with no luck. Any help much appreciated...

 

.sqs-block-button-element--large{background-color:transparent!important; background-image:url('https://static1.squarespace.com/static/5e5ec4efc85e7f05d4300da4/t/62e9855c798edf172f7e451c/1659471197080/The+Girl+downloaded+logo+and+C%27est+la+vie+trimmed.png'); background-size:contain!important; background-position:center;background-repeat:no-repeat!important}
.sqs-block-button-element--large:hover{opacity:1!important; }

Hi,

Can you share link to page where you use button? We can take a look

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.