How use an image for a button background in Squarespace - 7 & 7.1 // Squarespace CSS Tutorial

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 54

  • @InsideTheSquare
    @InsideTheSquare  Рік тому +1

    ⚠ IMPORTANT CSS UPDATE ⚠ When logging into Squarespace, if you see the word "Website" at the top of your menu, you are using their new internal navigation!
    To edit the CSS of your Squarespace website, click on the word "Website" and scroll to the bottom of the list of pages. Here you'll see "Website Tools" - click on that option and select "Custom CSS" to open the CSS panel and add your code here. For more information, watch this tutorial: ua-cam.com/video/euJqHXs_L1M/v-deo.html

    • @stinesrensen1133
      @stinesrensen1133 Рік тому +1

      Great tutorial - but after the latest update here in August there doesn't seem to be any small, medium and large buttons only primary, secondary and tertiary. Just replacing the name in the code from large -> primary doesn't seem to help. I'm completely new to Squarespace and finding information about the newest update and the changes is quite difficult.

    • @chocopie79
      @chocopie79 Рік тому

      I am also having this issue. I have managed to target all the primary buttons with the 'medium' code, but I'm now trying to apply it to a secondary button, and although 'large' is targeting it, it won't add the image, it just makes it transparent!

    • @instrumentofbeing
      @instrumentofbeing 10 місяців тому

      @@stinesrensen1133 i was able to target all 3 buttons (primary, secondary, and tertiary) with a single CSS element ID: .sqs-block-button-element ... IMPORTANT: to make the image appear in my buttons, i needed to re-create all buttons! whew. only took me 3 hours to figure this out.

  • @karinvonmay
    @karinvonmay 2 роки тому

    This is fantastic. The way you laid everything out was clear and concise. Thank you.

  • @tenayawieczorek3665
    @tenayawieczorek3665 3 роки тому

    This is absolutely amazing!!! What a gift~ Thank you and I can't wait to watch more of your tutorials!

  • @InsideTheSquare
    @InsideTheSquare  2 роки тому

    In July 2022, Squarespace made a big change to the way sites are edited, and this tutorial is a little outdated! For the latest info, check out insidethesquare.co/fluid

  • @tramhuynh1132
    @tramhuynh1132 4 роки тому +1

    Thank you so much! You are a very good teacher

  • @jaimemkirby
    @jaimemkirby 3 роки тому

    Thank you so much! This is exactly what I was wanting.

  • @jennifercurtice5031
    @jennifercurtice5031 4 роки тому

    This is the coolest thing ever and the solution I've been looking for! Thanks for creating such helpful and amazing videos!

  • @madmex5555
    @madmex5555 Рік тому +1

    Love your videos, you're a great speaker! Is there a way to make the text transparent too so just the image is showing? I'm basically trying to make the nav button just a custom PNG. (latest SS version) cheers!

    • @InsideTheSquare
      @InsideTheSquare  Рік тому

      I am not quite sure what you are trying to create but I would love to help! Feel free to submit a code help request with more info here: insidethesquare.co/code-help

  • @abixedits7515
    @abixedits7515 4 роки тому

    Wow wow wow speechless! You are an amazing teacher! thanks

  • @md.imranhossain2769
    @md.imranhossain2769 4 роки тому

    Thanks a million for your Tutorial

  • @JirocTheViking
    @JirocTheViking 2 роки тому +1

    Hello. Can you tell me how I can change the form button? I'd like to make it match the other buttons on my site. Skål!

    • @InsideTheSquare
      @InsideTheSquare  2 роки тому

      I'd be happy to help! This tutorial covers all kinds of form customizations, including the submit button: insidethesquare.co/squarespace-tutorials/contact-form-style

  • @JaiSequoia
    @JaiSequoia 2 роки тому +1

    this is great thanks @InsideTheSquare Question. If one was doing this same effect as in your video (gold brush stroke) and wanted the affect on all 3 buttons... isn't there a way to amalgamate all that CSS so it's nice and tidy and not repeated 3 times for each button size? I'm trying to get tidier with my CSS so thought I'd ask. Cheers

    • @InsideTheSquare
      @InsideTheSquare  2 роки тому +1

      Great question! You can separate multiple selectors with a comma and have the same properties and values applied to them. This example would turn an h1 and h3 text red: h1, h3 {color:red}

    • @JaiSequoia
      @JaiSequoia 2 роки тому

      @@InsideTheSquare thank you!

  • @blythekunderman7878
    @blythekunderman7878 3 роки тому +1

    How big should the image be? I'm having difficulty getting my image to be big enough. Thanks!

  • @gabrielle8833
    @gabrielle8833 4 роки тому

    This is great! Is there a way to isolate the image background to a button in the header?

    • @InsideTheSquare
      @InsideTheSquare  4 роки тому +1

      Hey Gabrielle - great question - and totally! Just use the "Code name" for that button type. Are you using 7.1 or Bedford? Or a different template? Let me know and I will help you track down the right one :)

  • @AnnaRoger-nm1yc
    @AnnaRoger-nm1yc 4 роки тому

    @insidethesquare can this be done for radio buttons? really interested in that such that the radio button clicked is an image??

  • @rafidjokosoetono6257
    @rafidjokosoetono6257 2 роки тому

    Is this possible for individual buttons? Let's say I want a different background photo for each button I have. The code that you showed changes it for all the buttons of the same type I believe.

    • @InsideTheSquare
      @InsideTheSquare  2 роки тому

      You can use a unique block ID to target a specific thing on your site; check out this tutorial for more info: ua-cam.com/video/h8qfZdaATbU/v-deo.html

  • @rachelfrederickmoura5026
    @rachelfrederickmoura5026 3 роки тому +1

    Is there a way you can zoom in to the codes? I can not read it

  • @laurencalicutt5960
    @laurencalicutt5960 3 роки тому

    How do you put a button on an image ? For instance a graphic with purses and the button underneath says shop now (but it's on that image)

    • @InsideTheSquare
      @InsideTheSquare  3 роки тому +1

      Hey Lauren! You an add a button to any image - click on the image block itself, and on the content tab, click on link and select button. This will put a button under or on the image, depending on the design you select on the design tab. Hope that info helps! You've inspired me to do a tiny tutorial on this so stay tuned 😎

  • @motherpuppersstudio
    @motherpuppersstudio 10 місяців тому

    Is it possible to use just the image as a button so without any text on it?

    • @InsideTheSquare
      @InsideTheSquare  10 місяців тому +1

      For that situation, I would skip the button aspect and just add a link to the image! Hope that suggestion helps and best of luck with your project :)

    • @motherpuppersstudio
      @motherpuppersstudio 10 місяців тому

      Thank you so much for answering! The thing is, I wanted to place this in my header to replace the button

  • @sk8girl182
    @sk8girl182 4 роки тому

    Just a clarification: To get the codes for the other types of buttons i have to buy your cheat sheet?

    • @InsideTheSquare
      @InsideTheSquare  4 роки тому

      That's the fastest way, but you can also search my free tutorial library for a specific button type tutorial. 👍👍 I have a ton of free tutorials on my blog that cover blog post read more buttons, form submit, newsletter, lightbox, header 7.1 or header Bedford, all 6 image types etc. There are so many types that there aren't enough characters in a UA-cam description to fit them all in here!! 😂 Visit insidethesquare.co/buttons if you want to learn about more than just these 4 main ones 😁

  • @shalenawhite
    @shalenawhite 3 роки тому +1

    I cant seem to get this to work. I tried this as well as the code in the css cheat sheet and the error message I got back was:
    expected ')' got '''
    Can you assist please?

  • @JoseAngelFlores
    @JoseAngelFlores 4 роки тому

    Hi, I love your videos. This code gives an error "expected ')' got '''

    • @bythangho
      @bythangho 4 роки тому

      did you ever get a solution for this

    • @JoseAngelFlores
      @JoseAngelFlores 4 роки тому

      @@bythangho .sqs-block-button-element, .image-button a, .header-actions .btn {
      background-image:url('your url image here');
      background-size:cover;
      background-position: center;
      text-color: transparent,!important;
      color:white;
      border: 2px solid white;
      &:hover{
      border: 4px solid white;
      margin:-2px;
      }
      &:active{
      transform:scale(.98)
      }
      }

    • @Sader98
      @Sader98 3 роки тому

      @@JoseAngelFlores when I use this it still repeats the image

  • @vasia-aliki.zisimou
    @vasia-aliki.zisimou 2 роки тому

    It doesn't work for me I have four big buttons and the image it doesn't appear in any of them.

    • @InsideTheSquare
      @InsideTheSquare  2 роки тому

      Hey There! This is a pretty standard code, so I'd need to look at your code to see why it wouldn't respond. Feel free to submit a code help request here: insidethesquare.co/code-help

  • @badgyalgab
    @badgyalgab 4 роки тому

    I'm using 7.1 but my photo isn't showing up. The button just disappears completely :( help!

    • @InsideTheSquare
      @InsideTheSquare  4 роки тому

      Ruh-roh; that's not supposed to happen! It's ha Feel free to submit a help request with more info and I'd be happy to hop into the source code to see why it's not working the way it should :)
      insidethesquare.co/contact/help

    • @mcclariesl1
      @mcclariesl1 4 роки тому

      Mine did the same thing!

    • @erikvdo
      @erikvdo 3 роки тому +1

      @@InsideTheSquare Please tell us, what was the solution? I'm trying this with 7.1 and when I save the code - either as page-specific (which is how I really need it) or in the general CSS panel, the page reloads and the button just blinks then goes back to its original appearance.

  • @paitowin830
    @paitowin830 2 роки тому +1

    This isn’t working for me

    • @InsideTheSquare
      @InsideTheSquare  2 роки тому

      Make sure the code you are using is the right one for your theme and version. Squarespace 7 sites are built in different themes and don't use the same code names for the same features. Squarespace 7.1 sites also have some unique code names. If you don't know what version you are using, check out this article for help. insidethesquare.co/resources/squarespace-theme-families