vivaaweb Posted March 20, 2020 Posted March 20, 2020 Site URL: https://www.soulwines.ch Hello, I was wondering if there is anyway of adding line breaks to product titles? Here is my site www.soulwines.ch Thanks for your help Sean
humxahafeex Posted March 20, 2020 Posted March 20, 2020 1 hour ago, vivaaweb said: Site URL: https://www.soulwines.ch Hello, I was wondering if there is anyway of adding line breaks to product titles? Here is my site www.soulwines.ch Thanks for your help Sean Hi , Do you want spacing between first and second line of product title?
tuanphan Posted March 20, 2020 Posted March 20, 2020 Here you go. https://sf.digital/squarespace-solutions/how-can-i-add-line-breaks-to-gallery-grid-titles edit .image-slide-title to .grid-title 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!)
vivaaweb Posted March 21, 2020 Author Posted March 21, 2020 Hi thanks for you answers, Tuanphan i tried what you proposed but it doesn't work and I look on the site to see the other options none work. Maybe it was for the 7.0 version? At the moment the site adds automatic spacing but i would like to add a line break where i want for example. Gamay | Nature Rouge Domaine de Beauvent Instead of Gamay | Nature Rouge | Domaine de Beauvent Thanks for you help i really appreciate it
tuanphan Posted March 22, 2020 Posted March 22, 2020 8 hours ago, vivaaweb said: Hi thanks for you answers, Tuanphan i tried what you proposed but it doesn't work and I look on the site to see the other options none work. Maybe it was for the 7.0 version? At the moment the site adds automatic spacing but i would like to add a line break where i want for example. Gamay | Nature Rouge Domaine de Beauvent Instead of Gamay | Nature Rouge | Domaine de Beauvent Thanks for you help i really appreciate it Can you keep above code & let me know? I will check again. 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!)
vivaaweb Posted March 24, 2020 Author Posted March 24, 2020 I ask sf digital and it doesn't work with squarespace 7.1
paul2009 Posted March 24, 2020 Posted March 24, 2020 59 minutes ago, vivaaweb said: I ask sf digital and it doesn't work with squarespace 7.1 The code referred to was for 7.0 and needed to be modified for Squarespace 7.1. Here's a version that should work in your situation. https://sf.digital/squarespace-solutions/display-product-titles-on-two-lines-with-squarespace-71 Let me know how you get on. tuanphan, Renesis, lincoln and 1 other 1 3 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
vivaaweb Posted March 24, 2020 Author Posted March 24, 2020 Thank you so much it's working perfect. My product page is much more clear and logic for my clients now!!!! 😀 paul2009 1
lincoln Posted March 27, 2020 Posted March 27, 2020 Thanks Paul, that worked a treat. Really appreciate the help/link..
emset Posted June 25, 2020 Posted June 25, 2020 On 3/24/2020 at 9:27 PM, paul2009 said: The code referred to was for 7.0 and needed to be modified for Squarespace 7.1. Here's a version that should work in your situation. https://sf.digital/squarespace-solutions/display-product-titles-on-two-lines-with-squarespace-71 Let me know how you get on. HI @paul2009, im struggling with achieving the same for my website.... probably not injecting code where it should be... can you point me into the right direction? https://greenvitamin.com/products-probiotics on hover product name shows up but would be great to have weight in line below...
paul2009 Posted June 25, 2020 Posted June 25, 2020 1 hour ago, emset said: im struggling with achieving the same for my website Did you add the symbol to any of the product titles? I couldn't see it. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
emset Posted June 27, 2020 Posted June 27, 2020 On 6/25/2020 at 10:28 PM, paul2009 said: Did you add the symbol to any of the product titles? I couldn't see it. yeah first one.. RAW COCONUT YOGURT natural 300g... as far as code injection... I guess that's where I am missing mark, i struggle to find other place than - design\custom CSS but it is obviously wrong
amandadrienne Posted September 3, 2020 Posted September 3, 2020 (edited) Hi all, Indeed, I'm struggling with the same issue of the code injection not working. Squarespace's code injection on 7.1 allows it to affect only header, footer, and lockscreen. So in order for @paul2009's clever javascript to work... where do you put it? And finally: will this code injection work anywhere a product is displayed (i.e. shop, product block, gallery block displaying products)? Kind thanks! Amanda Edited September 3, 2020 by amandadrienne
paul2009 Posted September 3, 2020 Posted September 3, 2020 2 hours ago, amandadrienne said: Squarespace's code injection on 7.1 allows it to affect only header, footer, and lockscreen. So in order for [it] to work... where do you put it? When you "inject" code, you have the option of adding it within the header or the footer (or the lock screen). Injecting it in the footer does not mean that it will only affect the footer, it means that it will load after the page content has loaded. It’s important to insert code in the footer so that the elements that you want to affect have loaded before the code, otherwise the code cannot affect them. Therefore, add the code to Settings > Advanced > Code Injection > Footer. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
amandadrienne Posted September 3, 2020 Posted September 3, 2020 (edited) @paul2009 Thank you! I so appreciate your clear explanation of not just how to do this, but why it works. I'll keep your company, SF Digital, in mind for advanced services and help in the future. Thanks again. Edited September 3, 2020 by amandadrienne paul2009 1
misuba Posted September 5, 2020 Posted September 5, 2020 (edited) @paul2009 thank you this worked for me partially. I was able to create two lines for product title on my shop page but it did not change on the product page itself where I initiated the change. Instead it looks like this there: be awake | modern breakfast. I thought the "|" would disappear here as well and break to two lines. Any thoughts? Edited September 5, 2020 by misuba
paul2009 Posted September 5, 2020 Posted September 5, 2020 4 hours ago, misuba said: it did not change on the product page itself where I initiated the change To help you, I’ll need to view the product in your site. Please post a working link. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
misuba Posted September 5, 2020 Posted September 5, 2020 (edited) @paul2009 you will see shop page is fine but product pages it did not execute if you also have a way to adjust vertical padding between price and variant box on product pages that would be wonderful. Edited September 5, 2020 by misuba
paul2009 Posted September 5, 2020 Posted September 5, 2020 5 hours ago, misuba said: you will see shop page is fine but product pages it did not execute The code snippet was only ever designed for Product List pages which is why it didn't work on your Product Detail pages. However, I've updated it now - use the same link as before. 6 hours ago, misuba said: if you also have a way to adjust vertical padding between price and variant box on product pages that would be wonderful. You can add this to Custom CSS and adjust the margin to suit (it is 25px by default): .ProductItem-details .ProductItem-product-price { margin-bottom: 5px; } If this helps you, please click "Like" below ⬇️ Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
misuba Posted September 5, 2020 Posted September 5, 2020 Wow thanks -- that's a lot of extra code. Worked like a charm! Much appreciated!!
simonkeeping Posted September 14, 2020 Posted September 14, 2020 Hi there, I've added in the code and it's worked on the product page (so thanks for that!) but on the main products grid the text looks really untidy. Is there a way of adding in hard returns to push some of these widows onto the next line? Thanks
tuanphan Posted September 14, 2020 Posted September 14, 2020 13 hours ago, simonkeeping said: Hi there, I've added in the code and it's worked on the product page (so thanks for that!) but on the main products grid the text looks really untidy. Is there a way of adding in hard returns to push some of these widows onto the next line? Thanks Can you share link to page in screenshot? 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!)
CptFeeny Posted November 19, 2020 Posted November 19, 2020 (edited) This has been a helpful thread! Now, I would like to make the second line normal and a lighter weight. For example: "Chehalem Fall (2)" Fine Art Print Is it possible to make the text to the right of the ( - ) normal and a lighter weight? Website: www.BrendanAlexPhoenix.com Version: 7.0 Family/Template: York Family (Jones Template) Thank you! CptFeeny Edited November 26, 2020 by CptFeeny Removing copyrighted material
tuanphan Posted November 19, 2020 Posted November 19, 2020 3 hours ago, CptFeeny said: This has been a helpful thread! I have successfully added this Javascript from SF.Digital to achieve a line break for product titles. @tuanphan @paul2009 https://sf.digital/squarespace-solutions/how-can-i-add-line-breaks-to-gallery-grid-titles Now, I would like to build on that code and make the second line normal and a lighter weight. For example: "Chehalem Fall (2)" Fine Art Print Is it possible to make the text to the right of the ( - ) normal and a lighter weight? Website: www.BrendanAlexPhoenix.com Version: 7.0 Family/Template: York Family (Jones Template) Thank you! CptFeeny Can you share link to product in screenshot? 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!)
CptFeeny Posted November 19, 2020 Posted November 19, 2020 (edited) 15 minutes ago, tuanphan said: Can you share link to product in screenshot? We can check easier https://www.brendanalexphoenix.com/prints-oregon Edited November 19, 2020 by CptFeeny proper link
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment