pirwin Posted February 25, 2020 Share Posted February 25, 2020 I would like to make the caption on a gallery grid 2 lines and have the first line be bold. Can anyone suggest custom code to do this? Link to comment
tuanphan Posted February 25, 2020 Share Posted February 25, 2020 What template (or Squarespace version) do you use? or Can you share link to your site? 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
pirwin Posted February 25, 2020 Author Share Posted February 25, 2020 I am using Avenue template. site is dirwinart.com but it is not public yet...pw is 2Begin. Thank you. Link to comment
tuanphan Posted February 26, 2020 Share Posted February 26, 2020 try adding this to caption here is <br/>caption or here is <span>caption 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
pirwin Posted February 26, 2020 Author Share Posted February 26, 2020 Not sure where to add this code - could you provide a little bit more info? I appreciate your help. Link to comment
OliviaEarle Posted February 27, 2020 Share Posted February 27, 2020 Any luck with this? I am wanting to accomplish something very similar. Link to comment
tuanphan Posted February 27, 2020 Share Posted February 27, 2020 1 hour ago, olivianearle said: Any luck with this? I am wanting to accomplish something very similar. 10 hours ago, pirwin said: Not sure where to add this code - could you provide a little bit more info? I appreciate your help. I just tested on my demo site. If you want to add 2 line, you can use CSS. If you share link to your site, I can take a look If you don't want to share link, you can try these code. 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
pirwin Posted February 27, 2020 Author Share Posted February 27, 2020 Could you post the CSS code you used? Link to comment
tuanphan Posted February 28, 2020 Share Posted February 28, 2020 18 hours ago, pirwin said: Could you post the CSS code you used? /* image 1 */ .sqs-gallery-block-grid .slide:nth-child(1) .image-slide-title:after { content: "Dinosaur line 2"; display: block; font-size: 13px; font-family: monospace; margin-top: -5px; } /* Image 2 */ .sqs-gallery-block-grid .slide:nth-child(2) .image-slide-title:after { content: "Banana 02"; display: block; font-size: 13px; font-family: monospace; margin-top: -5px; } Repeat to do other images (nth-child(3), nth-child(4),...) 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
pirwin Posted February 28, 2020 Author Share Posted February 28, 2020 Thanks for all your help. I can't get it to work; probably some pieces of CSS I don't understand well enough. Not going to dig deeper at this time. Link to comment
tuanphan Posted February 29, 2020 Share Posted February 29, 2020 18 hours ago, pirwin said: Thanks for all your help. I can't get it to work; probably some pieces of CSS I don't understand well enough. Not going to dig deeper at this time. Can you share link to gallery on your site? 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
pirwin Posted February 29, 2020 Author Share Posted February 29, 2020 The site is not public yet - the URL is dirwinart.com and the password is 2Begin. (I assume this is what you mean by sharing a link?) dirwinart.com/landscapes is a page that has one of the gallery grids. I would like to have 2 caption lines for any picture on that page. Link to comment
Solution paul2009 Posted February 29, 2020 Solution Share Posted February 29, 2020 @pirwin and @olivianearle, I wrote a guide some time ago that explains how to split Gallery titles into two lines. You'll find it here: https://sf.digital/squarespace-solutions/how-can-i-add-line-breaks-to-gallery-grid-titles tuanphan 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
pirwin Posted March 1, 2020 Author Share Posted March 1, 2020 (edited) paul2009, thank you so much! I had to put the code on the Page injection because it didn't work on the Site Code Injection (or I didn't go the the right place). I'll push my luck and add one last question - is there an easy way to 'bold' the first line? I'm familiar with Java code but not CSS - got a recommendation on a course, book, article, etc. Thank you again for solving this! UPDATE - Figured out how to modify your code make 1st line Bold. Really appreciate your help. Edited March 1, 2020 by pirwin Link to comment
derricksrandomviews Posted March 12, 2020 Share Posted March 12, 2020 Nice site, I am also an Avenue User, two sites. Its a great classic look, really good for photographers and artists, in my opinion. https://www.dcmrblueridge.com/ https://www.myrandomviews.com/ inside_the_square 1 Link to comment
Kas_ Posted October 19, 2021 Share Posted October 19, 2021 @pirwin @paul2009 Hey, I was wondering if you would share how to make the first line of the caption bold from the code you shared. Thank you! Link to comment
Kas_ Posted October 19, 2021 Share Posted October 19, 2021 On 3/1/2020 at 12:07 PM, pirwin said: paul2009, thank you so much! I had to put the code on the Page injection because it didn't work on the Site Code Injection (or I didn't go the the right place). I'll push my luck and add one last question - is there an easy way to 'bold' the first line? I'm familiar with Java code but not CSS - got a recommendation on a course, book, article, etc. Thank you again for solving this! UPDATE - Figured out how to modify your code make 1st line Bold. Really appreciate your help. @pirwin @paul2009 Hey, I was wondering if you would share how to make the first line of the caption bold from the code you shared. Thank you! Link to comment
Guest Posted October 19, 2021 Share Posted October 19, 2021 (edited) On 3/1/2020 at 10:07 PM, pirwin said: paul2009, thank you so much! I had to put the code on the Page injection because it didn't work on the Site Code Injection (or I didn't go the the right place). I'll push my luck and add one last question - is there an easy way to 'bold' the first line? I'm familiar with Java code but not CSS - got a recommendation on a course, book, article, etc. Thank you again for solving this! UPDATE - Figured out how to modify your code make 1st line Bold. Really appreciate your help. Can you help me out too? how you bold 1st line? Edited October 19, 2021 by halenadrisns Link to comment
catalin Posted November 30, 2021 Share Posted November 30, 2021 Hi @paul2009 I used the code injection from your website to split gallery grid titles into 2 lines -- and it worked! But how can I get the first line to be bold? And the second line to wrap? site: heyfieldday.com/about pw: test@FD (They're team photos -- first line is name, second line is title.) Link to comment
tuanphan Posted December 2, 2021 Share Posted December 2, 2021 On 12/1/2021 at 5:39 AM, catalin said: Hi @paul2009 I used the code injection from your website to split gallery grid titles into 2 lines -- and it worked! But how can I get the first line to be bold? And the second line to wrap? site: heyfieldday.com/about pw: test@FD (They're team photos -- first line is name, second line is title.) Add this to Design > Custom CSS /*First line bold */ .image-slide-title:first-line { font-weight: bold; } 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
catalin Posted December 2, 2021 Share Posted December 2, 2021 Great advice as always!! Thanks so much for this solution @tuanphan! Link to comment
clockyer Posted June 23, 2022 Share Posted June 23, 2022 This looks great and just what I need but when I add the script I can't get it to work on my site: https://www.gsmcs.co.uk/gasps Am i doing something wrong? Thanks Link to comment
tuanphan Posted June 24, 2022 Share Posted June 24, 2022 23 hours ago, clockyer said: This looks great and just what I need but when I add the script I can't get it to work on my site: https://www.gsmcs.co.uk/gasps Am i doing something wrong? Thanks I see text already bold here 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
clockyer Posted June 25, 2022 Share Posted June 25, 2022 Sorry, I meant how do I code it to appear on two lines? Thanks Link to comment
tuanphan Posted June 26, 2022 Share Posted June 26, 2022 14 hours ago, clockyer said: Sorry, I meant how do I code it to appear on two lines? Thanks Just sent the code in another your post 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment