melaniejaane Posted November 22, 2022 Share Posted November 22, 2022 Does anyone know why my CSS is not applying to summary items after the Load More button and how I can fix it? I'm using Universal Filter, Lazy Summaries, and a js snippet for hiding/showing content on selection. Thanks 🙂 Link to comment
Ziggy Posted November 22, 2022 Share Posted November 22, 2022 Strange problem, have you tried the plugin support forum? It's an issue that has probably come up there already: https://squarewebsites.slack.com/join/shared_invite/zt-1g24gqlgy-5GhVXknjGXe_gGijC8ARDQ#/shared-invite/email Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
melaniejaane Posted November 23, 2022 Author Share Posted November 23, 2022 15 hours ago, Ziggy said: Strange problem, have you tried the plugin support forum? It's an issue that has probably come up there already: https://squarewebsites.slack.com/join/shared_invite/zt-1g24gqlgy-5GhVXknjGXe_gGijC8ARDQ#/shared-invite/email Hey Ziggy, thanks for sending through the link. Yeah I posted it in their support forum last week but hasn't been solved yet. I know Michael gets so many requests, so thought I'd try asking here rather than adding more weight on his plate. 🙂 Link to comment
tuanphan Posted November 25, 2022 Share Posted November 25, 2022 On 11/23/2022 at 8:33 AM, melaniejaane said: Hey Ziggy, thanks for sending through the link. Yeah I posted it in their support forum last week but hasn't been solved yet. I know Michael gets so many requests, so thought I'd try asking here rather than adding more weight on his plate. 🙂 Which CSS code did you use + link to your site? We can check easier 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
melaniejaane Posted November 25, 2022 Author Share Posted November 25, 2022 (edited) Site: https://www.beehyve.health/adhd-support Hey @tuanphan I received this response on the plugin support forum: Quote "From what I can see, the issue isn’t CSS, it’s the jQuery you are using for the accordion style function. This function only modifies the elements that are already on the page, but when you click load more, it doesn’t run again. You’d need to re-write or run it again on ‘load more’ by using one of the hooks in the plugin." Seems to be issue with the JQuery you helped with on other question (below) not targeting posts below load more button. Would you please be able to help me hook this in? This is the final code snippet I used for the dropdown / accordion feature. <!------DROPDOWN SUMMARY CONTENT------> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.summary-item').each(function(i, e) { $(this).click(function() { $(this).toggleClass('tp-list-des-open'); }); }) }); </script> <style> .summary-content:hover /*, p.sqsrte-large strong*/{ cursor: pointer; } p:empty, .summary-excerpt.summary-excerpt-only p, .summary-v2-block h4~* /*summary block description excluding para1 text)*/{ height: 0; overflow: hidden; /* transition: all 0.1s ease!;*/ transition: none!important; display:none; } .tp-list-des-open .summary-excerpt.summary-excerpt-only p, .tp-list-des-open~* /*summary block description excluding para1 text)*/{ height: 100%; /* transition: all 0.1s ease!;*/ transition: none!important; display:block; } .summary-title, .summary-metadata-container{pointer-events: none;} </style> <!------END DROPDOWN SUMMARY CONTENT------> Thanks so much again! 🙂 Edited November 25, 2022 by melaniejaane Link to comment
tuanphan Posted November 29, 2022 Share Posted November 29, 2022 On 11/26/2022 at 6:11 AM, melaniejaane said: Site: https://www.beehyve.health/adhd-support Hey @tuanphan I received this response on the plugin support forum: Seems to be issue with the JQuery you helped with on other question (below) not targeting posts below load more button. Would you please be able to help me hook this in? This is the final code snippet I used for the dropdown / accordion feature. <!------DROPDOWN SUMMARY CONTENT------> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.summary-item').each(function(i, e) { $(this).click(function() { $(this).toggleClass('tp-list-des-open'); }); }) }); </script> <style> .summary-content:hover /*, p.sqsrte-large strong*/{ cursor: pointer; } p:empty, .summary-excerpt.summary-excerpt-only p, .summary-v2-block h4~* /*summary block description excluding para1 text)*/{ height: 0; overflow: hidden; /* transition: all 0.1s ease!;*/ transition: none!important; display:none; } .tp-list-des-open .summary-excerpt.summary-excerpt-only p, .tp-list-des-open~* /*summary block description excluding para1 text)*/{ height: 100%; /* transition: all 0.1s ease!;*/ transition: none!important; display:block; } .summary-title, .summary-metadata-container{pointer-events: none;} </style> <!------END DROPDOWN SUMMARY CONTENT------> Thanks so much again! 🙂 Can you share link to page where you have problem? We can adjust code easier 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
melaniejaane Posted November 30, 2022 Author Share Posted November 30, 2022 19 hours ago, tuanphan said: Can you share link to page where you have problem? We can adjust code easier @tuanphan Sorry link was at the beginning, it's Site: https://www.beehyve.health/adhd-support Thanks so much! Link to comment
melaniejaane Posted December 8, 2022 Author Share Posted December 8, 2022 Hey @tuanphan have you had any luck amending this code to work with items below load more button? Thanks so much!Site: https://www.beehyve.health/adhd-support Link to comment
tuanphan Posted December 11, 2022 Share Posted December 11, 2022 On 12/9/2022 at 3:31 AM, melaniejaane said: Hey @tuanphan have you had any luck amending this code to work with items below load more button? Thanks so much!Site: https://www.beehyve.health/adhd-support Sorry, forgot your question. I will check & let you know soon. 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
melaniejaane Posted January 23 Author Share Posted January 23 @tuanphan hi just wondering if it's possible to change your JQuery so it also applies to summary items after the 'load more' button? https://www.beehyve.health/adhd-support Current code: <!------DROPDOWN SUMMARY CONTENT------> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('.summary-item').each(function(i, e) { $(this).click(function() { $(this).toggleClass('tp-list-des-open'); }); }) }); </script> <style> .summary-content:hover /*, p.sqsrte-large strong*/{ cursor: pointer; } p:empty, .summary-excerpt.summary-excerpt-only p, .summary-v2-block h4~* /*summary block description excluding para1 text)*/{ height: 0; overflow: hidden; /* transition: all 0.1s ease!;*/ transition: none!important; display:none; } .tp-list-des-open .summary-excerpt.summary-excerpt-only p, .tp-list-des-open~* /*summary block description excluding para1 text)*/{ height: 100%; /* transition: all 0.1s ease!;*/ transition: none!important; display:block; } .summary-title, .summary-metadata-container{pointer-events: none;} </style> <!------END DROPDOWN SUMMARY CONTENT------>   Link to comment
Solution melaniejaane Posted February 25 Author Solution Share Posted February 25 <!------DROPDOWN SUMMARY CONTENT------> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $(document).on("click", ".summary-item", function () { $(this).toggleClass('tp-list-des-open'); }) }) </script> <style> .summary-content:hover /*, p.sqsrte-large strong*/{ cursor: pointer; } p:empty, .summary-excerpt p, .summary-v2-block h4~* /*summary block description excluding para1 text)*/{ height: 0!important; overflow: hidden!important; /* transition: all 0.1s ease!;*/ transition: none!important; display:none!important; } .tp-list-des-open .summary-excerpt p, .tp-list-des-open~* /*summary block description excluding para1 text)*/{ height: 100%!important; /* transition: all 0.1s ease!;*/ transition: none!important; display:block!important; } .summary-title, .summary-metadata-container{pointer-events: none;} </style> <!------END DROPDOWN SUMMARY CONTENT------> Wanted to post the solution for others looking in the future. Thank you to Michael the The Lazy Summaries plugin creator for fixing the first couple lines of code and making this snippet work! 😄 tuanphan 1 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