matthewmadera Posted December 8, 2020 Share Posted December 8, 2020 Site URL: http://www.moongreenwich.com Trying to inject code <a href="https://resy.com/cities/gwh/moon" id="resyButton-k16ukHT6s6">Book your Moon reservation on Resy</a> <script src="https://widgets.resy.com/embed.js"></script> <script> resyWidget.addButton(document.getElementById('resyButton-k16ukHT6s6'), {"venueId":41949,"apiKey":"1Xa3dZqbRCqp1AMHdQQoRrxYCyHerhjz","replace":true,}); </script> Having hard time to do this. When I add as new "link to page/external site" so it goes in nav header, it goes but i see the error " " data-animation-role="header-element">Resy" Please help! Beyondspace 1 Link to comment
Beyondspace Posted December 8, 2020 Share Posted December 8, 2020 5 minutes ago, matthewmadera said: Site URL: http://www.moongreenwich.com Trying to inject code <a href="https://resy.com/cities/gwh/moon" id="resyButton-k16ukHT6s6">Book your Moon reservation on Resy</a> <script src="https://widgets.resy.com/embed.js"></script> <script> resyWidget.addButton(document.getElementById('resyButton-k16ukHT6s6'), {"venueId":41949,"apiKey":"1Xa3dZqbRCqp1AMHdQQoRrxYCyHerhjz","replace":true,}); </script> Having hard time to do this. When I add as new "link to page/external site" so it goes in nav header, it goes but i see the error " " data-animation-role="header-element">Resy" Please help! link nav not support script in its content, you got to move the widget by code 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
Beyondspace Posted December 8, 2020 Share Posted December 8, 2020 6 minutes ago, matthewmadera said: Site URL: http://www.moongreenwich.com Trying to inject code <a href="https://resy.com/cities/gwh/moon" id="resyButton-k16ukHT6s6">Book your Moon reservation on Resy</a> <script src="https://widgets.resy.com/embed.js"></script> <script> resyWidget.addButton(document.getElementById('resyButton-k16ukHT6s6'), {"venueId":41949,"apiKey":"1Xa3dZqbRCqp1AMHdQQoRrxYCyHerhjz","replace":true,}); </script> Having hard time to do this. When I add as new "link to page/external site" so it goes in nav header, it goes but i see the error " " data-animation-role="header-element">Resy" Please help! Try to do following 1. Add the new navigation item as link/page external with this url https://resy.com/cities/gwh/moon 2. Add the modified script into Settings->Advanced->Code Injection->Footer <script src="https://widgets.resy.com/embed.js"></script> <script> resyWidget.addButton(document.querySelector(".header-nav-item a[href*=resy][href*=moon]"), {"venueId":41949,"apiKey":"1Xa3dZqbRCqp1AMHdQQoRrxYCyHerhjz","replace":true,}); </script> tuanphan 1 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment