Nikitaly Posted February 1, 2023 Posted February 1, 2023 PW: 1mageproblem Hi, I'd like to move the related products section which currently shows at the bottom of the product page to undernearth the social share buttons in the left hand column. Please can anyone help? I've tried but can't seem to nail down the reviews section selector. Any ideas much appreciated. thanks
Nikitaly Posted February 1, 2023 Author Posted February 1, 2023 9 minutes ago, Nikitaly said: PW: 1mageproblem Hi, I'd like to move the related products section which currently shows at the bottom of the product page to undernearth the social share buttons in the left hand column. Please can anyone help? I've tried but can't seem to nail down the reviews section selector. Any ideas much appreciated. thanks ..sorry have to use live site because reviews don't show on the copy site. See following instead. Link: https://www.rebelrebel.co.uk/order-online/our-lips-are-sealed
tuanphan Posted February 3, 2023 Posted February 3, 2023 On 2/1/2023 at 4:58 PM, Nikitaly said: ..sorry have to use live site because reviews don't show on the copy site. See following instead. Link: https://www.rebelrebel.co.uk/order-online/our-lips-are-sealed Hi, Move to this? 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!)
Nikitaly Posted February 9, 2023 Author Posted February 9, 2023 Hi Tuanphan, Thanks for getting back to me. Been tied up. No. I don't want ot move the reviews. I want to put the Related Products section under the social share buttons (left hand column) please.
tuanphan Posted February 11, 2023 Posted February 11, 2023 On 2/9/2023 at 5:15 PM, Nikitaly said: Hi Tuanphan, Thanks for getting back to me. Been tied up. No. I don't want ot move the reviews. I want to put the Related Products section under the social share buttons (left hand column) please. You mean move this? 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!)
tuanphan Posted February 16, 2023 Posted February 16, 2023 On 2/15/2023 at 3:07 PM, Nikitaly said: Yes please! Is it possible? Add to Last Line in Code Injection > Footer <script> $(document).ready(function() { $('section.ProductItem-relatedProducts').insertAfter('.ProductItem-details-share'); }); </script> <style> section.ProductItem-relatedProducts { order: 11; } </style> 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!)
Nikitaly Posted February 16, 2023 Author Posted February 16, 2023 1 hour ago, tuanphan said: Add to Last Line in Code Injection > Footer <script> $(document).ready(function() { $('section.ProductItem-relatedProducts').insertAfter('.ProductItem-details-share'); }); </script> <style> section.ProductItem-relatedProducts { order: 11; } </style> Thank you! This works great except that the text 'Perhaps you might also like' has not moved with it. Also I need to set related products to 2 products/columns wide for it to be readable but when I do this only one item shows. Setting it to 3 columns doesn't help. Any suggestions? Thank you for the help.
Solution tuanphan Posted February 21, 2023 Solution Posted February 21, 2023 On 2/16/2023 at 4:37 PM, Nikitaly said: Thank you! This works great except that the text 'Perhaps you might also like' has not moved with it. Also I need to set related products to 2 products/columns wide for it to be readable but when I do this only one item shows. Setting it to 3 columns doesn't help. Any suggestions? Thank you for the help. Use this new code <script> $(document).ready(function() { $('section.ProductItem-summary.clear~*').insertAfter('.ProductItem-details-share'); }); </script> <style> section.ProductItem-relatedProducts, h2.ProductItem-related-label { order: 11; } .ProductItem-relatedProducts-item { width: calc(50% - 50px) !important; } </style> Nikitaly 1 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!)
Nikitaly Posted February 21, 2023 Author Posted February 21, 2023 Oh sorry.... I need this for desktop only.... could you possibly help one more time? thanks
tuanphan Posted February 25, 2023 Posted February 25, 2023 On 2/21/2023 at 7:38 PM, Nikitaly said: Oh sorry.... I need this for desktop only.... could you possibly help one more time? thanks Use this new coe <script> $(document).ready(function() { if ($(window).width() > 901) { $('section.ProductItem-summary.clear~*').insertAfter('.ProductItem-details-share'); } }); </script> <style> section.ProductItem-relatedProducts, h2.ProductItem-related-label { order: 11; } .ProductItem-relatedProducts-item { width: calc(50% - 50px) !important; } </style> 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!)
Nikitaly Posted February 27, 2023 Author Posted February 27, 2023 Hi @tuanphan Thank you for staying with this. The above doesn't work. It's not moving the 'related products' section into the left hand column. They're displaying full screen at the bottom of the page. This leaves a big gap if the all store reviews are displayed. Can you help again please? Thanks a million.
tuanphan Posted March 5, 2023 Posted March 5, 2023 On 2/27/2023 at 11:24 PM, Nikitaly said: Hi @tuanphan Thank you for staying with this. The above doesn't work. It's not moving the 'related products' section into the left hand column. They're displaying full screen at the bottom of the page. This leaves a big gap if the all store reviews are displayed. Can you help again please? Thanks a million. It works to me. Which exact code did you add to Code Injection? 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!)
Nikitaly Posted March 6, 2023 Author Posted March 6, 2023 Hi @tuanphan, Thanks. Erm I used the following in code injection footer: It does now appear to work on Desktop but on mobile phones the 'also like' products are now appearing in a single column after the reviews. (so I've taken the code out again) I tried adding a media query for the columns but then everything went haywire on mobiles. Sorry if I sound confused. I'm trying to get mobiles to display in the same sequence, ie, 'You may also like' under the 'social share' icons but in single column. Then reviews under that. Please can I ask your help on this one more time? <script> $(document).ready(function() { if ($(window).width() > 901) { $('section.ProductItem-summary.clear~*').insertAfter('.ProductItem-details-share'); } }); </script> <style> section.ProductItem-relatedProducts, h2.ProductItem-related-label { order: 11; } .ProductItem-relatedProducts-item { width: calc(50% - 50px) !important; } </style>
tuanphan Posted March 8, 2023 Posted March 8, 2023 On 3/6/2023 at 11:40 PM, Nikitaly said: Hi @tuanphan, Thanks. Erm I used the following in code injection footer: It does now appear to work on Desktop but on mobile phones the 'also like' products are now appearing in a single column after the reviews. (so I've taken the code out again) I tried adding a media query for the columns but then everything went haywire on mobiles. Sorry if I sound confused. I'm trying to get mobiles to display in the same sequence, ie, 'You may also like' under the 'social share' icons but in single column. Then reviews under that. Please can I ask your help on this one more time? <script> $(document).ready(function() { if ($(window).width() > 901) { $('section.ProductItem-summary.clear~*').insertAfter('.ProductItem-details-share'); } }); </script> <style> section.ProductItem-relatedProducts, h2.ProductItem-related-label { order: 11; } .ProductItem-relatedProducts-item { width: calc(50% - 50px) !important; } </style> It make error on Real Mobile or Squarespace Mobile Preview Mode? 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!)
Nikitaly Posted March 14, 2023 Author Posted March 14, 2023 Hi @tuanphan Its on real mobile (android). The reviews come before the 'you may also like' and these products list in single column half width instead of full width single column. Any ideas gratefully received! Thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment