LaraSingsVintage Posted May 31, 2023 Share Posted May 31, 2023 (edited) @creedon Hi there, I'd also like to add brief text descriptions for individual product category pages. https://www.larasingsvintage.com PW: successfulbusiness I've downloaded this code and followed the instructions to the best of my ability. I created a not-linked Link page, uploaded the file to it and injected the code into the header as instructed. Then I placed this code into the store header page with the text I'd hoped to include 'sets' : 'Sets cannot be broken up, they are rentable together only' Could you please let me know what I did wrong? Apologies if it's something obvious. Thanks very much for the help! Edited May 31, 2023 by LaraSingsVintage Link to comment
creedon Posted May 31, 2023 Share Posted May 31, 2023 30 minutes ago, LaraSingsVintage said: I'd also like to add brief text descriptions for individual product category pages. The password didn't work. 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
LaraSingsVintage Posted May 31, 2023 Share Posted May 31, 2023 (edited) @creedon - sorry, try it now, just updated it UPDATE - client asked me to take down the code as it was malfunctioning. Edited May 31, 2023 by LaraSingsVintage Link to comment
creedon Posted May 31, 2023 Share Posted May 31, 2023 1 hour ago, LaraSingsVintage said: Could you please let me know what I did wrong? Apologies if it's something obvious. You did nothing wrong. I need to make a small change either to the instructions or to the code to make things easier for folks. In the meantime change the following... 'sets' : 'Sets cannot be broken up, they are rentable together only' ...to... '/sets' : 'Sets cannot be broken up, they are rentable together only' 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
LaraSingsVintage Posted May 31, 2023 Share Posted May 31, 2023 (edited) ah ok - thank you! that's easy enough. Will try it later when client isn't looking 🙂 Edited May 31, 2023 by LaraSingsVintage Link to comment
creedon Posted May 31, 2023 Share Posted May 31, 2023 I have updated my code cited in my May 6, 2021 post. From the changes. make code for urlSlugs work the way the text describes to enter them. also be flexible with either starting with a forward slash or not 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
shishkabobbett Posted June 16, 2023 Share Posted June 16, 2023 @creedon is it possible to edit part of the code to have the description added after the product listings on the category pages instead of before? Trying to improve my SEO with mini blog posts about each category per my seo guy, but I don't want it to interfere with user experience. Link to comment
creedon Posted June 16, 2023 Share Posted June 16, 2023 19 hours ago, shishkabobbett said: is it possible to edit part of the code to have the description added after the product listings on the category pages instead of before? I don't have a solution but I have updated my code cited in my May 6, 2021 post to make it possible to place the description in other locations than the top. One would have to change the settings to accomplish whatever placement scenario you want. From the changes. make code more flexible in where the description can be placed shishkabobbett 1 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
shishkabobbett Posted June 16, 2023 Share Posted June 16, 2023 33 minutes ago, creedon said: I don't have a solution but I have updated my code cited in my May 6, 2021 post to make it possible to place the description in other locations than the top. One would have to change the settings to accomplish whatever placement scenario you want. From the changes. make code more flexible in where the description can be placed Thanks a ton! creedon 1 Link to comment
shishkabobbett Posted June 20, 2023 Share Posted June 20, 2023 (edited) On 6/16/2023 at 4:29 PM, creedon said: I don't have a solution but I have updated my code cited in my May 6, 2021 post to make it possible to place the description in other locations than the top. One would have to change the settings to accomplish whatever placement scenario you want. From the changes. make code more flexible in where the description can be placed @creedon So the new code isn't working at all for me, even without editing the the placement settings. I had to go back to the previous edition to get it to work. Any thoughts on what I'm doing wrong? Edited June 20, 2023 by shishkabobbett Link to comment
creedon Posted June 20, 2023 Share Posted June 20, 2023 37 minutes ago, shishkabobbett said: So the new code isn't working at all for me, even without editing the the placement settings. I had to go back to the previous edition to get it to work. Any thoughts on what I'm doing wrong? When I install the code here locally on your site, it works. tuanphan 1 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
hglondon Posted June 26, 2023 Share Posted June 26, 2023 I'm trying to add descriptions to specific category pages for SEO. Because this workaround is Javascript generated, do you know if there will be any SEO benefit? Link to comment
creedon Posted June 26, 2023 Share Posted June 26, 2023 10 hours ago, hglondon said: do you know if there will be any SEO benefit? I do not know. Given that it is JavaScript there is no way to guarantee that a search engine will pick up the information. Some engines run some JavaScript, some don't. tuanphan and hglondon 1 1 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
hglondon Posted August 7, 2023 Share Posted August 7, 2023 Thanks creedon! How do I get this to work for subcategories, e.g. Jackets/Cotton? Link to comment
hglondon Posted August 7, 2023 Share Posted August 7, 2023 Also, is there any way to add links to the description? Link to comment
creedon Posted August 7, 2023 Share Posted August 7, 2023 8 hours ago, hglondon said: is there any way to add links to the description? Yes. You can use HTML in the descriptions. <a href="[enter your link here between single quotes replacing square brackets]">[enter your text here between single quotes replacing square brackets]</a> Quote How do I get this to work for subcategories, e.g. Jackets/Cotton? Please post the URL for a page on your site where we can see your issue. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/. Please set up a site-wide password, if your site is not public and you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the site-wide password and how to share a link documentation to understand how they work. We can then take a look at your issue. You may find How to post a forum question post useful. 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
hglondon Posted August 8, 2023 Share Posted August 8, 2023 Thanks Creedon. I've implemented it for Top Level categories: https://www.heronsghyll.com/shop/jackets But I want to implement it for subcategories: https://www.heronsghyll.com/shop/jackets/bamboo Link to comment
creedon Posted August 8, 2023 Share Posted August 8, 2023 I have updated my cited code in my May 6, 2021 post. From the changes. support nested categories 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
creedon Posted August 24, 2023 Share Posted August 24, 2023 I have updated my cited code in my May 6, 2021 post. From the changes. reworked the parsing code to be a bit more flexible fix disparity between how the read me said to configure category list and how the code works 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
creedon Posted August 25, 2023 Share Posted August 25, 2023 I have updated my cited code in my May 6, 2021 post. From the changes. fix for code hiding product detail page contents 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
hglondon Posted August 28, 2023 Share Posted August 28, 2023 Thank you. Unfortunately, the description no longer supports links. Link to comment
hglondon Posted August 28, 2023 Share Posted August 28, 2023 The nested category description also doesn't break to the next line: https://www.heronsghyll.com/shop/suits/linen Link to comment
creedon Posted August 28, 2023 Share Posted August 28, 2023 14 hours ago, hglondon said: Unfortunately, the description no longer supports links. Quote The nested category description also doesn't break to the next line Thank you for hanging in and the reports. Obviously the 0.7.x release was/is a little rougher that I would have liked but I think I'm making progress. Please get the latest release and replace the code you have installed. You should be able to leave the <x-twc-splcda> code in place. I have updated my cited code in my May 6, 2021 post. From the changes fix parsing errors including description html not coming through Let me 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
creedon Posted August 28, 2023 Share Posted August 28, 2023 By the way I also added a link to a demo so that in at least some circumstances you can see the code can work! 🙂 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
hglondon Posted August 31, 2023 Share Posted August 31, 2023 Thanks so much! I'm hoping to find the time to implement in a few days, will let you know how it goes. PS. I was able to fix the nested description not breaking to the next row by changing the flex direction of the parent div to "column" 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