gabrilof Posted January 6, 2021 Share Posted January 6, 2021 Dear All, I have built a bilingual site thanks to the explanation found on this forum; precisely, building two versions of each page and hiding the 'other lenguage' navigation header and footer. (How to create a multilingual site on Squarespace 7.1 — Creations by Faria | Squarespace Website Design) However, the code injection on each page does not give results on the shopping cart page, in which the complete navigation bar and the doubled footer are still visible. Do you know how to solve this problem? I imagine 2 ways, repeating the trick done on the other pages somehow or removing directly the header and the second footer... Thank you so much! I hope you'll help me to find a solution 🙂 Link to comment
tuanphan Posted January 8, 2021 Share Posted January 8, 2021 With the footer, the only solution is to hide both the footer and navigation. Or use both languages alternating, for example Home (Home) - About (Aboute) - Contact Us (Contacto) .. Likewise, you can put language text 2 below text 1. If you want this, please share site url, we can give the code. 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
gabrilof Posted January 9, 2021 Author Share Posted January 9, 2021 Quote On 1/8/2021 at 8:40 AM, tuanphan said: With the footer, the only solution is to hide both the footer and navigation. Or use both languages alternating, for example Home (Home) - About (Aboute) - Contact Us (Contacto) .. Likewise, you can put language text 2 below text 1. If you want this, please share site url, we can give the code. Hi Tuanphan, thanks for your answer. Is it possible to hide the navigation and the footer on the shopping cart page only, without affecting the other pages of the site? It would probably be the best solution. Have a nice day! Link to comment
tuanphan Posted January 10, 2021 Share Posted January 10, 2021 22 hours ago, gabrilof said: Hi Tuanphan, thanks for your answer. Is it possible to hide the navigation and the footer on the shopping cart page only, without affecting the other pages of the site? It would probably be the best solution. Have a nice day! Yes. Possible. If you share link to cart page, we can give code easer 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
gabrilof Posted January 10, 2021 Author Share Posted January 10, 2021 Quote 11 hours ago, tuanphan said: Yes. Possible. If you share link to cart page, we can give code easer Okay, thank you. Here you can find the link to the cart page. https://www.vcubeitalia.com/cart Link to comment
tuanphan Posted January 12, 2021 Share Posted January 12, 2021 On 1/11/2021 at 6:20 AM, gabrilof said: Okay, thank you. Here you can find the link to the cart page. https://www.vcubeitalia.com/cart Add to Design > Custom CSS /* Cart page */ body#cart { header#header, footer.sections { display: none; } } 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
gabrilof Posted January 12, 2021 Author Share Posted January 12, 2021 Quote 8 hours ago, tuanphan said: /* Cart page */ body#cart { header#header, footer.sections { display: none; } } Thank you TuanPhan! It works perfectly. So, to call in the code a precise page '/*Page name*/' is needed? Link to comment
creedon Posted January 12, 2021 Share Posted January 12, 2021 3 hours ago, gabrilof said: '/*Page name*/ Is just a comment to identify what the code is changing. It has no effect on the actual page. The critical bit, the selector, which targets a specific page is 'body#cart', in the case of the cart page. That would need to be changed in the code for each page where you want to hide stuff. One has to look at the source for each page to be hidden and discover the correct selector to use for each page. 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
gabrilof Posted January 13, 2021 Author Share Posted January 13, 2021 Quote Quote 23 hours ago, creedon said: Is just a comment to identify what the code is changing. It has no effect on the actual page. The critical bit, the selector, which targets a specific page is 'body#cart', in the case of the cart page. That would need to be changed in the code for each page where you want to hide stuff. One has to look at the source for each page to be hidden and discover the correct selector to use for each page. Thank you Creedon! Very clear explanation. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.