Jump to content

Hiding a product from the store page, but still accessible via URL

Go to solution Solved by tuanphan,

Recommended Posts

19 hours ago, sarah_cowan said:

Amazing, thank you so much Tuanphan! 
Is there anything I can add so that the thumbnail doesn't show on the summary block on the homepage too?
https://www.manorbarnorganics.com/

HIde all summary thumbnail on homepage?

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
12 hours ago, sarah_cowan said:

Hi Tuanphan, no sorry, I only want to hide one thumbnail on the summary block so the rest will still show. 

E.g. in this image here I want the first thumbnail to be hidden but not the rest.

 

Hide thumbnail.jpg

Add to Design > Custom CSS

/* Home summary */
div#block-yui_3_17_2_1_1574354436041_19694 .summary-item:first-child .summary-thumbnail-outer-container {
    visibility: hidden;
}

 

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
  • 2 months later...
On 8/13/2021 at 9:45 PM, RISSCWGalway said:

Hi @tuanphan I'm not sure if you're still monitoring this but I'm having the same issues as others in this thread and I can't seem to hide a product in my store

Store: https://www.risscw.com/shop

Product: https://www.risscw.com/shop/serbia

Can you give me any tips on how to hide this product?

Hi. I don't see serbia in shop page? https://www.risscw.com/shop

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
  • 2 months later...

Hi @tuanphan and @creedon

I am another one who struggles to hide a product from my page. I tried the code injections posted above but it doesn't change. Would you please help me?

My page:https://www.kinestheticskills.com/

Product I want to hide:https://www.kinestheticskills.com/products/dns-exercise-course-nemus

Best regards!

Fysiotherapist bored of Wordpress hoping Squarespace will make a huge difference for his freelance job.

Link to comment
18 minutes ago, creedon said:

@Zewel

The first thing you'll want to take care of errors in Design > Custom CSS.

1336996174_ScreenShot2021-11-02at1_50_24PM.png.17edd23005a105a1f495f639658f5480.png

 

Hello, Thank you for fast reply!

I wish I would know how to fix that! It says Syntax Error on this one: https://static1.squarespace.com/static/57c0aaa8bebafbec82d0fbfe/t/61603b23e842ed0479100cf3/1633696550032/OLY+background/IMG_5513.jpg

I cant find out whats the issue.

Fysiotherapist bored of Wordpress hoping Squarespace will make a huge difference for his freelance job.

Link to comment
7 minutes ago, Zewel said:

Hello, Thank you for fast reply!

I wish I would know how to fix that! It says Syntax Error on this one: https://static1.squarespace.com/static/57c0aaa8bebafbec82d0fbfe/t/61603b23e842ed0479100cf3/1633696550032/OLY+background/IMG_5513.jpg

I cant find out whats the issue.

Actually every time i remove the error line, it jumps on the following line saying syntax error..

Fysiotherapist bored of Wordpress hoping Squarespace will make a huge difference for his freelance job.

Link to comment

@JackGas

Change the line...

div#thumb-nylon-quilted-slouch-messenger-bag-pre-order {

...to...

a#thumb-nylon-quilted-slouch-messenger-bag-pre-order {

The element you want to target is an anchor not a div.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 2 months later...

Hi @tuanphan or @creedon, I was wondering if you could share the "equation" for lack of better word on how exactly I can repeat this for my specific site and product(s)?  I am in the beginning phases of building my website and don't want to publish it yet (I'm worried customers will find it through search engines and confuse it with my current website) so sharing a link to get a quick answer doesn't seem like an option.

Link to comment
1 hour ago, E_wes said:

so sharing a link to get a quick answer doesn't seem like an option.

With a site-wide password on your site we can see your issue but a search engine can not. They don't know how to login to your site with a password so they can't crawl it.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 4 months later...
5 hours ago, cchambers said:

I've put "hide-product" in tags for all of them.

I checked the first product detail item you linked to and it has no tags.

The top article is your product. The bottom one is an example from my site.

475890525_ScreenShot2022-06-22at4_47_21PM.thumb.png.68dab0b6bdd897d43381b741d1189910.png

Without the tags on the products the code will not work.

When you edit your products make sure there are tags on them.

89637618_ScreenShot2022-06-22at4_50_43PM.png.7ff8ec5a5b81718b725110bff8562846.png

 

And of course be sure to Save so the tags stick.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 2 weeks later...
On 6/22/2022 at 6:52 PM, creedon said:

I checked the first product detail item you linked to and it has no tags.

The top article is your product. The bottom one is an example from my site.

475890525_ScreenShot2022-06-22at4_47_21PM.thumb.png.68dab0b6bdd897d43381b741d1189910.png

Without the tags on the products the code will not work.

When you edit your products make sure there are tags on them.

89637618_ScreenShot2022-06-22at4_50_43PM.png.7ff8ec5a5b81718b725110bff8562846.png

 

And of course be sure to Save so the tags stick.

Let us know how it goes.

I had been failing to hit enter after putting "hide-product" in tags (yes really) so they weren't saving. That fixed it. Thank you SO much!

Link to comment
  • 3 months later...
On 1/30/2021 at 6:34 PM, creedon said:

The reason it didn't work is likely due to the fact that your site version and or the template is different  from the other solutions.

Remove the following CSS, make a copy somewhere.

.grid-item.tag-hide-product {
    display: none
}

div#thumb-online-training-session-members {
    display: none
}

div#thumb-online-group-training-session-members {
    display: none
}

Add the following CSS.

#productList .tag-hide-product {

  display : none;
  
  }

This is for a v7.0 using the Bedford template.

Let us know how it goes.

How do we achieve this with SS 7.1 please? Even the later CSS syntax is not working and I'd like to hide products based on tags instead of item by item thanks.

Many thanks!

PS CANNOT believe that this is not just a simple product configuration option in SS...sigh.

Link to comment
On 10/20/2022 at 9:52 AM, jagnz said:

How do we achieve this with SS 7.1 please? Even the later CSS syntax is not working and I'd like to hide products based on tags instead of item by item thanks.

Many thanks!

PS CANNOT believe that this is not just a simple product configuration option in SS...sigh.

You can add a tag, then share link to product list page, we can check easier

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
  • 2 months later...
1 hour ago, BrittanyChandlerDesign said:

I am trying to hide all products with the tag "custom". 

I tried adding this code to the CSS: 

.grid-item.tag-custom-hide-product {
    display: none
}

Your tag is custom but you've targeted .tag-custom-hide-product in your CSS selector. You need to target .tag-custom.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 4 months later...
On 6/12/2023 at 9:54 AM, BrookeAlexander said:

Hi @tuanphan

I tried copying the CSS code but it's not working for me.

My shop is https://www.saltydownunder.com/shop-lmnt

And I'm trying to hide https://www.saltydownunder.com/shop-lmnt/p/sample-pack

Any help would be greatly appreciated.

Which item?

image.thumb.png.d35eabac77d54b58825977807cea0861.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

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.