CaresaCreativeCo Posted July 19, 2023 Share Posted July 19, 2023 Hello, I was wondering if there is some code that would allow me to create a pop-up for a link in the announcement bar (there are 3 links - only one would show a popup). We want the popup to show when clicking the Financing Available link. Attached is the image of what we would like. Passcode for website is 1234 Thanks! Link to comment
Ziggy Posted July 19, 2023 Share Posted July 19, 2023 This is a good plugin: https://www.sqspthemes.com/plugins/ultimate-squarespace-lightbox-plugin Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
CaresaCreativeCo Posted July 19, 2023 Author Share Posted July 19, 2023 1 hour ago, Ziggy said: This is a good plugin: https://www.sqspthemes.com/plugins/ultimate-squarespace-lightbox-plugin I do not want to purchase a plug-in. Only straight code Thanks! Link to comment
tuanphan Posted July 22, 2023 Share Posted July 22, 2023 You can create a section in footer, then we can give code to achieve 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!) Link to comment
CaresaCreativeCo Posted July 25, 2023 Author Share Posted July 25, 2023 On 7/21/2023 at 7:16 PM, tuanphan said: You can create a section in footer, then we can give code to achieve this. Hello, I already add the section in the top section of the footer. Thanks! Link to comment
tuanphan Posted July 26, 2023 Share Posted July 26, 2023 12 hours ago, CaresaCreativeCo said: Hello, I already add the section in the top section of the footer. Thanks! I forgot to ask. What is your site url? 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!) Link to comment
CaresaCreativeCo Posted July 26, 2023 Author Share Posted July 26, 2023 7 hours ago, tuanphan said: I forgot to ask. What is your site url? https://arizonaturfmasters.squarespace.com/ password: 1234 Thanks! Link to comment
tuanphan Posted July 27, 2023 Share Posted July 27, 2023 16 hours ago, CaresaCreativeCo said: https://arizonaturfmasters.squarespace.com/ password: 1234 Thanks! Thank you. Click on Get a free quote or? will make this section in lightbox? 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!) Link to comment
CaresaCreativeCo Posted July 27, 2023 Author Share Posted July 27, 2023 3 hours ago, tuanphan said: Thank you. Click on Get a free quote or? will make this section in lightbox? The "financing available" link - thanks! Link to comment
tuanphan Posted July 28, 2023 Share Posted July 28, 2023 21 hours ago, CaresaCreativeCo said: The "financing available" link - thanks! Add to Settings > Developer Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('#announcement-bar-text-inner-id a[href*="#financ"]').click(function(){ $(' footer.sections section:first-child').addClass('show'); }); $('footer.sections section:first-child').click(function(){ $(this).removeClass('show'); }); }) </script> <style> footer.sections section:first-child { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 90%; z-index: 999999; visibility: hidden; } .show { visibility: visible !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!) Link to comment
CaresaCreativeCo Posted July 28, 2023 Author Share Posted July 28, 2023 4 hours ago, tuanphan said: Add to Settings > Developer Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('#announcement-bar-text-inner-id a[href*="#financ"]').click(function(){ $(' footer.sections section:first-child').addClass('show'); }); $('footer.sections section:first-child').click(function(){ $(this).removeClass('show'); }); }) </script> <style> footer.sections section:first-child { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 90%; z-index: 999999; visibility: hidden; } .show { visibility: visible !important; } </style> This didn't work at all. Is it because I have several links in the announcement bar? Link to comment
tuanphan Posted July 29, 2023 Share Posted July 29, 2023 First, edit this link and enter #finance Next, add above code 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!) Link to comment
CaresaCreativeCo Posted August 9, 2023 Author Share Posted August 9, 2023 On 7/29/2023 at 3:28 AM, tuanphan said: First, edit this link and enter #finance Next, add above code again Hello, I did this and it still doesn't work. Link to comment
tuanphan Posted August 11, 2023 Share Posted August 11, 2023 On 8/10/2023 at 3:20 AM, CaresaCreativeCo said: Hello, I did this and it still doesn't work. Sorry, my code missing a space character Use this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('#announcement-bar-text-inner-id a[href*="#financ"]').click(function(){ $('footer.sections section:first-child').addClass('show'); }); $('footer.sections section:first-child').click(function(){ $(this).removeClass('show'); }); }) </script> <style> footer.sections section:first-child { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 90%; z-index: 999999; visibility: hidden; } .show { visibility: visible !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!) Link to comment
CaresaCreativeCo Posted August 25, 2023 Author Share Posted August 25, 2023 On 8/10/2023 at 10:51 PM, tuanphan said: Sorry, my code missing a space character Use this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('#announcement-bar-text-inner-id a[href*="#financ"]').click(function(){ $('footer.sections section:first-child').addClass('show'); }); $('footer.sections section:first-child').click(function(){ $(this).removeClass('show'); }); }) </script> <style> footer.sections section:first-child { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 90%; z-index: 999999; visibility: hidden; } .show { visibility: visible !important; } </style> Hello, It still isn't working. 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