koconference Posted November 9, 2020 Share Posted November 9, 2020 I work for a church and am not super technical. I need to show a directory of churches in our area. I was told to put this into the code injection footer of my site: <script type="text/javascript">(function($){ jQuery(document).ready(function () {$('#kcDiv').load("https://uccwebservices.ucc.org/uccko/churchcontent.aspx?st=ks");}); })(jQuery);</script> And then on the page where I want the directory to be, in HTML, put this: <div id="kcDiv"></div> So that it will display the churches. However, nothing happens. When I go into incognito mode to test this, it's just blank. I'm not sure what to do next. Thank you for your help. Link to comment
Beyondspace Posted November 10, 2020 Share Posted November 10, 2020 10 hours ago, koconference said: I work for a church and am not super technical. I need to show a directory of churches in our area. I was told to put this into the code injection footer of my site: <script type="text/javascript">(function($){ jQuery(document).ready(function () {$('#kcDiv').load("https://uccwebservices.ucc.org/uccko/churchcontent.aspx?st=ks");}); })(jQuery);</script> And then on the page where I want the directory to be, in HTML, put this: <div id="kcDiv"></div> So that it will display the churches. However, nothing happens. When I go into incognito mode to test this, it's just blank. I'm not sure what to do next. Thank you for your help. Could you show use the site url with the code on it so we can help Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
tuanphan Posted November 11, 2020 Share Posted November 11, 2020 Remove above code Edit page where you want to show directory Add a Code Block > Paste this code <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script type="text/javascript"> (function($){ jQuery(document).ready(function () { $('#kcDiv').load('https://uccwebservices.ucc.org/uccko/churchcontent.aspx?st=ks'); }); })(jQuery); </script> <div id="kcDiv"></div> 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
koconference Posted November 11, 2020 Author Share Posted November 11, 2020 (edited) Thank you both for checking in with me, and thank you @tuanphan, I was able to get the directory to show! Edited November 11, 2020 by koconference I appreciate the help. 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