How to Add SVG Icons to Squarespace

  Рет қаралды 10,737

S-E Web Design

S-E Web Design

Күн бұрын

Пікірлер: 83
@Sheeporino
@Sheeporino 2 жыл бұрын
Thanks man! I learned something new from this video!
@SEWebDesign
@SEWebDesign 2 жыл бұрын
No problem! Great to hear!
@oriehi_raphael_paul
@oriehi_raphael_paul 2 жыл бұрын
Hi Chris, I'm grateful for this video but while I now understand how to put an icon on my website, I don't understand how to put the icon of a particular business on my website. For instance, how do I put the icon of Klaviyo on my website? Please help
@felixglasenapp6192
@felixglasenapp6192 3 жыл бұрын
you are insanely good man
@SEWebDesign
@SEWebDesign 3 жыл бұрын
Thank you Felix!
@DanielLeftwich
@DanielLeftwich 2 жыл бұрын
Excellent video, thanks again Chris. Is it a hop, skip, and a jump to add an SVG pattern as a section background? Or perhaps a full bleed code block (in fluid Engine) is the way to go now 🤔
@SEWebDesign
@SEWebDesign 2 жыл бұрын
I haven't added an SVG as a pattern to a background yet, so I am not sure the best way to go about it to be honest. Uploading the file to internal storage and then adding it a background image to the section via CSS seems like the best route just on instinct though.
@DanielLeftwich
@DanielLeftwich 2 жыл бұрын
@@SEWebDesign yup, me too. If I have any joy, happy to let you know - cheers!
@kondjanegongo796
@kondjanegongo796 4 жыл бұрын
Thanks a million. I most deff will. I do have one question, how do you change the colour of the icon to a certain shade of red for example.
@SEWebDesign
@SEWebDesign 4 жыл бұрын
Hi Kondja, I cover that in the video! You change the fill color
@kondjanegongo796
@kondjanegongo796 4 жыл бұрын
@@SEWebDesign Yeah but you typed in the colour name (example RED) lets say i want #304D73 as a colour, do i just add that in as is?
@SEWebDesign
@SEWebDesign 4 жыл бұрын
@@kondjanegongo796 correct!
@kondjanegongo796
@kondjanegongo796 4 жыл бұрын
@@SEWebDesign Thanks.
@stephanyjones7469
@stephanyjones7469 3 жыл бұрын
This is SO helpful, thank you for creating this! I have 1 question - When I enter that View Box code to change the size, the box surrounding my icon changes but the icon itself stays the same size. Anyway to fix that? Looking to make my icon a bit bigger. Thank you!!
@BirdzEyeViewAV
@BirdzEyeViewAV 2 жыл бұрын
VERY helpful! Thank you for your time and the great video!!!
@SEWebDesign
@SEWebDesign 2 жыл бұрын
I'm so glad! No problem!
@jordanc2489
@jordanc2489 2 жыл бұрын
Nice tutorial! Is there an easy way to remove the padding around the icons? Particularly the white space between the icon and the text underneath. Cheers!
@SEWebDesign
@SEWebDesign 2 жыл бұрын
Since the icon is in a code block and the text is in a text block and all Squarespace blocks get 17px of padding, there will always be 34px of padding in between. So if you want to make them closer together, I would give the icon a negative bottom-margin
@ThePresentPerspective
@ThePresentPerspective 4 жыл бұрын
This was great! I’m glad that now I know about iconmonster. I hate having to add affiliate links. May I suggest the next video be “how to add/layer/position your graphics to your site” ? 🙈 I feel like there are so many different ways and so many different file types. Do I stick with svg? But what if I need my page to load faster and I have a lot of graphics to place around and layer? Do I create it as an image block? Or just upload it through CSS and position it through there? I’ve been searching for a while for a solid answer to this question and haven’t been able to find it. I don’t know how there isn’t a tutorial on it. You would be revolutionary if you were the first to post an answer ;)
@SEWebDesign
@SEWebDesign 4 жыл бұрын
I would recommend always using svg icons over image icons. Svg icons are generally much smaller in file size than images. For example, the svg icon in this video was 775 bytes. So not even 1kb.
@ThePresentPerspective
@ThePresentPerspective 4 жыл бұрын
@@SEWebDesign OK I had no idea! I suppose I just assumed they were larger size because they are so responsive and can do so much more. Once again, your channel is so amazing and I'm so grateful. A solid 50% of all that I've learned so far has been directly from you! Thank you!
@SEWebDesign
@SEWebDesign 4 жыл бұрын
@@ThePresentPerspective that is awesome to hear! You are welcome!
@hendrikwilhelmpsi
@hendrikwilhelmpsi 3 жыл бұрын
Really added value! Thanks a lot my site looks so much nicer now! :)
@PilateBeljour
@PilateBeljour 4 жыл бұрын
You just save my life. Thanks a lot.
@SEWebDesign
@SEWebDesign 4 жыл бұрын
I'm glad it was helpful! No problem!!
@annaseragarcia4076
@annaseragarcia4076 4 жыл бұрын
This is so helpful thanks for providing this content! I'm currently using SVG's on a Squarespace site and am using them as larger images vs. just smaller icons. Unfortunately while they look great on desktop, they aren't scaling down to Mobile size which results in having my images cropped outside of the browser area. Is there a way to keep them contained and scaled appropriately according to browser size? Was looking for this information for ages, would love it if you could provide any suggestions. Thank you 🤗
@SEWebDesign
@SEWebDesign 4 жыл бұрын
I recommend opening them in illustrator and then re-exporting them as svg's with "responsiveness" checked. That is all I can think of at the moment if the viewbox trick from the video doesn't work.
@annaseragarcia4076
@annaseragarcia4076 4 жыл бұрын
@@SEWebDesign Yes, that seemed to work! Thank you so much for the swift response, greatly appreciate your videos :)
@TonyWebslinger
@TonyWebslinger 4 жыл бұрын
Nice! Great info!
@n.d.wilson2975
@n.d.wilson2975 4 жыл бұрын
It's probably best practice to assign a class (and even id) to the container div in use cases similar to the one you showcase in this video so that the styling can be modified easily in the Custom CSS window.
@SEWebDesign
@SEWebDesign 4 жыл бұрын
Yes that is a great point especially if you will have lots of icons throughout your site!
@ilze524
@ilze524 4 жыл бұрын
Brilliant. This worked like a charm. Thank you :-)
@SEWebDesign
@SEWebDesign 4 жыл бұрын
Great! You are welcome!
@jaymak1307
@jaymak1307 3 жыл бұрын
Thanks very much for this video - I have been searching for days trying to find exactly this. I have two questions: 1. How would I change the colour to a very specific colour using a colour code? 2. I would love to know how to add a link to the .svg file so that it is clickable on the website - is that difficult to do?
@SEWebDesign
@SEWebDesign 3 жыл бұрын
I cover changing the svg color in the video. All you would need to do is put in the valid hex code, rgb value, or color name. To make it a link, surround the svg tag in a link tag: (svg code goes here). You can Google creating links in html for more on that
@karolinebrydebl9424
@karolinebrydebl9424 3 жыл бұрын
Thank you for the great and easy to follow video, I really appreciate it! I have one question - I entered several svg codes in individual code blocks in squarespace (evenly scattered across the page in a grid form) and it looked fine when I edited and saved. But when I enter the page now, all the icons (svg) and all the text from further down the page is all cramped up very narrowly in the left side and all the way down. (so all the text boxes have also been affected and it looks as though there is something big and invisible on the rest of the page that "pushes" it all together in the left). Can it be something in the coding that causes this?
@SEWebDesign
@SEWebDesign 3 жыл бұрын
Is there a text block or spacer block that is pushing the content over? If you have an error in one of the code blocks perhaps that could be the problem as well. If you would like to hire me to troubleshoot you can do so through my website!
@labrini3572
@labrini3572 3 жыл бұрын
@@SEWebDesign Yeah having the same problem as well, nothing wrong in the code. Tried making the block larger size and made it worse!
@floatingonwater70
@floatingonwater70 3 жыл бұрын
sorry newbie here... where do you find the code to embed? i am able to donwload png and svg but do not have option, do i have to open in illustrator and copy the code from somewhere?
@SEWebDesign
@SEWebDesign 3 жыл бұрын
You can open the icon in illustrator and do save as SVG and then copy the code. I'd look up "embed svg on website from illustrator"
@floatingonwater70
@floatingonwater70 3 жыл бұрын
@@SEWebDesign Genial!!! So appreciate the sharing the knowledge to us web newbies. Be well..
@ebonybullock1696
@ebonybullock1696 2 жыл бұрын
I am in the 7.1 version and I cannot figure out how to format this in the same manner as you. If I choose the a section list template, I cannot add another block. If I do a blank section, I cannot get it to align correctly. Any ideas how to get this layout when the new version?
@SEWebDesign
@SEWebDesign 2 жыл бұрын
I am using 7.1 in this tutorial. Each icon can be placed in its own code block in a blank section - just drag the code blocks next to each other
@ebonybullock1696
@ebonybullock1696 2 жыл бұрын
@@SEWebDesign Thank you!
@moragcheshire
@moragcheshire 3 жыл бұрын
Hey thanks heaps for the video. I put up my icons and it all looks great on editor view, however as soon as I save it, the icons stack ontop of each other on the left-hand side. I've put 4 code blocks side by side, the icon size is 120 and I got one from iconmonstr and the other 3 from Material Design Icons as SVG files following your direction. How can I get 4 icons sitting side by side across the page? Any help would be appreciated
@SEWebDesign
@SEWebDesign 3 жыл бұрын
Make sure you have closed all open div tags. 4 code blocks will be next to each other until they stack on mobile. So if you are seeing them stack on desktop it must be an error in the code - usually not closing open divs
@moragcheshire
@moragcheshire 3 жыл бұрын
@@SEWebDesign I’ve checked all that, sadly it’s still not working. I was real pleased when I saw your video and worked it out. It looks great on a mobile but terrible on a desktop. I’m at a loss
@moragcheshire
@moragcheshire 3 жыл бұрын
@@SEWebDesign I got it! I hadn't closed one of the divs. Thank you so much!!!
@SEWebDesign
@SEWebDesign 3 жыл бұрын
@@moragcheshire glad to hear it!
@AmrAlchalati
@AmrAlchalati 3 жыл бұрын
Thanks for the video. I'm having an issue, when I add the icon it looks right in the edit, but when I click done they stock on top of each other? I'm using the same scenario as you when it comes to text blocks and icons from icon monster... any idea?
@AmrAlchalati
@AmrAlchalati 3 жыл бұрын
Update, I found when I remove this line it removes the issue, did squarespace do some updates on how to use the code? I need the icons to be in the center :(
@SEWebDesign
@SEWebDesign 3 жыл бұрын
@@AmrAlchalati you have to add a closing below. Any time you open a tag in html you have to close the tag.
@AmrAlchalati
@AmrAlchalati 3 жыл бұрын
@@SEWebDesign It worked and I can't thank you enough!!!!!!!!!!! For us average people we won't catch these basic stuff lol for it's a common sense. Thanks again! ❤️
@SEWebDesign
@SEWebDesign 3 жыл бұрын
@@AmrAlchalati no problem!
@mmazz414
@mmazz414 3 жыл бұрын
Hey man, love this tutorial. Although, I'm a designer, and create my own icons. How the heck do I do this without the .svg code?
@SEWebDesign
@SEWebDesign 3 жыл бұрын
You can save your icon designs as images and upload them to image blocks. But I prefer svgs when it comes to icons because of their crispness
@christopheprunier1851
@christopheprunier1851 3 жыл бұрын
Thank you very much for these explanations, it works perfectly! Nevertheless, as a designer, I would have liked to be able to integrate my own icons (made under Illustrator in .svg) but I can't find how to do it :( I tried by making a link (instead of the one to Iconmonstr) to my .svg deposited on Google drive or Dropbox, but nothing works. Do you have a solution for me? Thanks again for sharing your knowledge this way!
@SEWebDesign
@SEWebDesign 3 жыл бұрын
You can export svg's from illustrator and copy the embed code into the code block
@christopheprunier1851
@christopheprunier1851 3 жыл бұрын
@@SEWebDesign Thanks!
@EmmaCOW93
@EmmaCOW93 3 жыл бұрын
@@SEWebDesign Hi Chris, so if a designer sends me an SVG file and I'm adding it to the site, is there a way for me to grab the embed code for it?
@SEWebDesign
@SEWebDesign 3 жыл бұрын
@@EmmaCOW93 yeah open it in illustrator and then follow the steps to get the embed code!
@EmmaCOW93
@EmmaCOW93 3 жыл бұрын
@@SEWebDesign Well dang. I don't have access to that :/ Thanks for your response!
@MitchelJerome
@MitchelJerome Жыл бұрын
Could you put the re-center code in the comments I can’t make it work
@SEWebDesign
@SEWebDesign Жыл бұрын
//svg code goes here
@laurencalicutt5960
@laurencalicutt5960 3 жыл бұрын
What to do if the icon is not centering and the coding is correct? Could it be the type of template that I'm using for squarespace?
@SEWebDesign
@SEWebDesign 3 жыл бұрын
I don't think the template would effect the centering. Perhaps it is the svg itself. You can also try giving the svg a style of display: block like so and adding that to your custom CSS window: .code-block svg { display:block; }
@buuraors
@buuraors 2 жыл бұрын
how can I align that icon vertically?
@SEWebDesign
@SEWebDesign 2 жыл бұрын
The height of the div container will be the height of the icon. So there shouldn't be extra vertical space for the logo to be centered in, since the height of the container div is determined by the height of the logo
@buuraors
@buuraors 2 жыл бұрын
@@SEWebDesign thank you !
@SuperCd09
@SuperCd09 3 жыл бұрын
Hi i replicated your steps but the SVG wont centre align. Dont know whats wrong
@SEWebDesign
@SEWebDesign 3 жыл бұрын
You can hire me through my site to troubleshoot your CSS!
@charliebirch9335
@charliebirch9335 3 жыл бұрын
What if your svg is an original file vs an icon hosted on a stock site with an embed code?
@SEWebDesign
@SEWebDesign 3 жыл бұрын
If you google svgOMG you can upload your file and then copy the svg code into the code block.
@charliebirch9335
@charliebirch9335 3 жыл бұрын
@@SEWebDesign rocking resource thanks man.
@SEWebDesign
@SEWebDesign 3 жыл бұрын
@@charliebirch9335 no problem!
@SenecaWan
@SenecaWan 4 жыл бұрын
How do you add the icon to the nav bar?
@SEWebDesign
@SEWebDesign 4 жыл бұрын
You can't add inline svgs to the nav bar, the only way to add an icon there would be to save it as a .png and add it to a link using an after pseudo element. Check out my multi row header tutorial, I use that technique in it
@SenecaWan
@SenecaWan 4 жыл бұрын
@@SEWebDesign thanks!
Squarespace CSS Deep Dive: Adding SVG Icons to Buttons
17:05
S-E Web Design
Рет қаралды 2,2 М.
How to add an SVG to Squarespace //  Squarespace SVG Tutorial
6:46
InsideTheSquare with Becca Harpain
Рет қаралды 10 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Create Stylish Pricing Tables in Squarespace
12:08
S-E Web Design
Рет қаралды 8 М.
Squarespace How to Add Icons to Your Website
14:03
David Alex
Рет қаралды 8 М.
Adding Parallax Effect to Background Image in Squarespace 7.1
6:23
How to Reorder Blocks on Mobile in Squarespace 7.1
13:05
S-E Web Design
Рет қаралды 7 М.
51 Squarespace Tips for Creating an Amazing Website
18:32
Curious Refuge
Рет қаралды 222 М.
How to Edit your BUTTON DESIGN in Squarespace 7.1
12:22
Big Cat Creative - Squarespace Tips & Templates
Рет қаралды 10 М.
Custom Gallery Layouts with CSS Grid in Squarespace
20:41
S-E Web Design
Рет қаралды 13 М.
How to create a slider testimonial in Squarespace // Squarespace Testimonial Slider Tutorial
15:06
InsideTheSquare with Becca Harpain
Рет қаралды 3,6 М.
How to Properly Layout A Website (For Beginners)
14:50
The Website Architect
Рет қаралды 668 М.
I redesigned YOUR websites
20:44
DesignSpo
Рет қаралды 104 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН