Jump to content

Ecwid Shopping Bag Icon

Recommended Posts

This isn’t CSS, it is HTML. It can be inserted in Settings > Advanced > Code Injection.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Ive attempted to inject the HTML into the Header and Footer Coding Windows with not luck. I have my Ecwid store code injected into the Footer per their instructions, and the store works great, but I can't get their little shopping bag icon to appear on my sites header.

Link to comment
On 2/18/2021 at 12:24 AM, paul2009 said:

This isn’t CSS, it is HTML. It can be inserted in Settings > Advanced > Code Injection.

Figured out step one of the issue: the icon is there in the header, but it remains hidden beneath the header's theme. In other words, it doesn't show up unless I make my header color theme "transparent". Any way I can get the icon to appear on top of a color theme? Thank you!

Link to comment
On 2/25/2021 at 10:17 AM, AL-FQR said:

Figured out step one of the issue: the icon is there in the header, but it remains hidden beneath the header's theme. In other words, it doesn't show up unless I make my header color theme "transparent". Any way I can get the icon to appear on top of a color theme? Thank you!

What is access password?

image.thumb.png.47f270f5620c3fafd114838b091cd0ac.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 3/7/2021 at 9:36 PM, nicolettely said:

How do you get this Ecwid Shopping bag aligned right with the existing header elements?  . I would love for it to be next to the button. 

www.tothebrimrefill.com

Hi. It looks like you solved this?

Footer on tablet doesn't look good. Do you want to resize contact column width?

image.thumb.png.3b31d51aa120b016c539eec484d2d471.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 3/15/2021 at 5:01 AM, tuanphan said:

Hi. It looks like you solved this?

Footer on tablet doesn't look good. Do you want to resize contact column width?

 

Thanks for pointing that out! I will fix the footer, but I still need help with the shopping bag. I had to delete it temporarily  until I figure out what code I need. 

Here is the code to add to  the site:

<div class='ec-cart-widget'></div>

What do I need to add to line it up to the left of the social symbols?

 

Link to comment
On 3/19/2021 at 9:20 PM, nicolettely said:

@tuanphan I added the shopping bag back- Its hidden under the announcement banner on my screen. How can I move it down into the navigation bar? 

Add to Design > Custom CSS

.ec-cart-widget {
    top: 40px;
    z-index: 999;
    position: relative;
    right: 50px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 3/22/2021 at 10:01 PM, nicolettely said:

Thanks so much @tuanphan! Hate to bother you with this more, but is there a way to position it so it doesn't overlap any navigation on tablet and mobile? 

Try adding to Design > Custom CSS

/* ecwid on mobile */
@media screen and (max-width:991px) {
.ec-cart-widget {
    top: 150px;
    right: 0;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

HI @tuanphan

I was wondering if i can get some assistance for my site - universalbakehouse.my/beta. 

I am trying to move my cart to the right hand side as well, but it's still not working. 

the code i'm using is this

.ec-cart-widget {
    top: 40px;
    z-index: 999;
    position: relative;
    right: 50px;
}

 

Currently my theme has this css that was suggested by you previously

@media screen and (max-width:767px) {
/* Careers */
body#collection-5f522ac37f1ce932fd6c872b #page section:first-child {
    min-height: 20vh;
    margin-top: 5vh;
}
/* about us slide */
body#collection-5f4efaea74b92128fd3cf61e .gallery-fullscreen-slideshow {
    height: 45vh !important;
}
/* homepage first slide */
.homepage .gallery-fullscreen-slideshow {
    height: 45vh !important;
}

}

 

Hoping you will be able to help 🙂
Thanks in advance. 

Edited by UniversalBakehouse
Link to comment
On 3/27/2021 at 7:42 PM, UniversalBakehouse said:

HI @tuanphan

I was wondering if i can get some assistance for my site - universalbakehouse.my/beta. 

I am trying to move my cart to the right hand side as well, but it's still not working. 

the code i'm using is this


.ec-cart-widget {
    top: 40px;
    z-index: 999;
    position: relative;
    right: 50px;
}

 

Currently my theme has this css that was suggested by you previously


@media screen and (max-width:767px) {
/* Careers */
body#collection-5f522ac37f1ce932fd6c872b #page section:first-child {
    min-height: 20vh;
    margin-top: 5vh;
}
/* about us slide */
body#collection-5f4efaea74b92128fd3cf61e .gallery-fullscreen-slideshow {
    height: 45vh !important;
}
/* homepage first slide */
.homepage .gallery-fullscreen-slideshow {
    height: 45vh !important;
}

}

 

Hoping you will be able to help 🙂
Thanks in advance. 

Hi. The url doesn't exist. Can you check it again?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 10 months later...
17 hours ago, smarta said:

I'm having issues getting the Ecwid shopping bag showing up in the navigation.

There are some errors on the site right now, so it's difficult to test externally:

  • The site isn't connecting to the Ecwid store - I can't see any products. 
  • Some script is expecting jQuery but this hasn't been added to the site.

That said, I think you'll need some amended CSS for the site to resolve the cart positioning issue. Instead of the CSS you've used from the thread above, try this:

.ec-cart-widget {
  position: absolute;
  right: 150px;
  top: 49px;
  z-index: 11;
}

 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

THANK YOU @paul2009!! That totally fixed it. You rock!! 

6 hours ago, paul2009 said:

There are some errors on the site right now, so it's difficult to test externally:

  • The site isn't connecting to the Ecwid store - I can't see any products. 
  • Some script is expecting jQuery but this hasn't been added to the site.

That said, I think you'll need some amended CSS for the site to resolve the cart positioning issue. Instead of the CSS you've used from the thread above, try this:

.ec-cart-widget {
  position: absolute;
  right: 150px;
  top: 49px;
  z-index: 11;
}

 

 

Link to comment
  • 4 weeks later...

Hi - I have managed to get my ECWID cart icon over to the right, but want to make it so it is responsive and stays in that space regardless of size of window or device being used to view it. Also - since it putting it in code injection header I no longer am able to view the store.

Site:  magnolia-sawfish-bdxx.squarespace.com

Pass: Employee180!

 

This is the code I was using, that I took down in order to have the store visible while editing:

<div data-layout="MEDIUM_ICON_COUNTER" class='ec-cart-widget'></div>
<div><script data-cfasync="false" type="text/javascript"
src="https://app.ecwid.com/script.js?72483289&data_platform=code" 
charset="utf-8"></script><script>Ecwid.init();</script></div>

Edited by dv_louise_designs
Link to comment
On 2/25/2022 at 2:47 AM, dv_louise_designs said:

Hi - I have managed to get my ECWID cart icon over to the right, but want to make it so it is responsive and stays in that space regardless of size of window or device being used to view it. Also - since it putting it in code injection header I no longer am able to view the store.

Site:  magnolia-sawfish-bdxx.squarespace.com

Pass: Employee180!

 

This is the code I was using, that I took down in order to have the store visible while editing:

<div data-layout="MEDIUM_ICON_COUNTER" class='ec-cart-widget'></div>
<div><script data-cfasync="false" type="text/javascript"
src="https://app.ecwid.com/script.js?72483289&data_platform=code" 
charset="utf-8"></script><script>Ecwid.init();</script></div>

It looks like you removed icon? We don't see ecwid icon on header now

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 5 weeks later...

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.