- This topic has 20 replies, 4 voices, and was last updated 1 year, 10 months ago by Fernando.
-
AuthorPosts
-
June 14, 2022 at 12:54 am #2252820Fernando Customer Support
Hello,
It seems that you may have accidentally removed some code in Appearance > Customize > Additional CSS. Particularly, in
/*— SINGLE PRODUCT —*/
section.If this is not intentional, the entire code is:
/*=== WOOCOMMERCE ===*/ /*--- SINGLE PRODUCT ---*/ /* Stacked Gallery for desktop and sticky summary */ @media (min-width: 769px) { .woocommerce-product-gallery { display: none; } .woo-summary-wrap { display: grid; grid-template-columns: 60% 40%; grid-template-rows: auto; margin-bottom: 80px; } .woo-gallery-stack { grid-column: 1; grid-row: 1 / 3; } .woo-gallery-stack img { margin-bottom: 20px; } .woocommerce-tabs { grid-column: 1; } .woocommerce div.product div.summary { grid-column: 2; grid-row: 1; margin-left: 80px; position: -webkit-sticky; position: sticky; top: 105px; bottom: 100px; padding-right: 80px; } .single-product span.onsale { position: absolute; top: 0; } }
If it’s intentional, and you want to retain the sticky-ness of the product summary on tablet and desktop, you can try this code:
/*=== WOOCOMMERCE ===*/ /*--- SINGLE PRODUCT ---*/ /* Stacked Gallery for desktop and sticky summary */ @media (min-width: 769px) { .woocommerce div.product div.summary { grid-column: 2; grid-row: 1; margin-left: 80px; position: -webkit-sticky; position: sticky; top: 105px; bottom: 100px; padding-right: 80px; } .single-product span.onsale { position: absolute; top: 0; } }
Or, you can delete that entire code if you prefer.
Hope this clarifies!
June 14, 2022 at 1:36 am #2252858M.schreijer@gmail.comThank you for the quick response.
It’s good on mobile now. But now it’s not good on the desktop. see picture:
https://i.postimg.cc/RhrG8vgN/desktop.jpghttps://i.postimg.cc/RhrG8vgN/desktop.jpg
http://www.marktstore.nl/index.php/product/geboorte-knuffel-meisje/June 14, 2022 at 5:33 pm #2253589Fernando Customer SupportI see. It seems that if we make the product summary sticky, it won’t fit the viewport and it wont look good.
Example: https://share.getcloudapp.com/mXuxynYb
As shown, the product summary is too long, and it exceeds the viewport height.
With that said, one option we have is to delete that code entirely and it should look like this: https://share.getcloudapp.com/4gur9b5m
Kindly let us know.
June 15, 2022 at 12:16 pm #2254587M.schreijer@gmail.comThank you very much! Everything is working fine again!
But I hardly dare to ask…
It’s about the cart sub-menuThis one is not beautiful and clearly the font is also different. I’ve already searched the forum for how to solve this problem, but I can’t find it…..
See the picture.June 15, 2022 at 12:35 pm #2254605M.schreijer@gmail.comcan the sub-menu also be turned off?
June 15, 2022 at 5:13 pm #2254764Fernando Customer SupportYes, the sub menu can be turned off. It can be done through Appearance > Customize > Layout > WooCommerce > General.
You’ll need to uncheck the “Display mini cart sub-menu” setting: https://share.getcloudapp.com/v1uO2kZe
Alternatively, if you want, you can also remove the variations in the sub menu to make it look neater. You can do this by adding this CSS in Appearance > Customize > Additional CSS:
#wc-mini-cart ul.woocommerce-mini-cart dl.variation { display: none; }
Then you can also modify the font size of the product title for instance through this CSS:
#wc-mini-cart ul.woocommerce-mini-cart .woocommerce-mini-cart-item > a:nth-of-type(2){ font-size:16px; }
Kindly modify
16px
to your preferred value.You can also modify this font through the Typography module. Just set the target element to Custom and the target to
#wc-mini-cart ul.woocommerce-mini-cart .woocommerce-mini-cart-item > a:nth-of-type(2)
Hope this helps!
-
AuthorPosts
- You must be logged in to reply to this topic.