ronlewhorn Posted August 5 Share Posted August 5 I'm trying to restrict my site styling from adjusting the header from a custom calendar form being placed into my site. All the code is working fine, but the header that is brought in is getting my site's font/padding/etc and I want to turn that off just for this block. Any suggestions? Link to comment
creedon Posted August 5 Share Posted August 5 Please post the URL for a page on your site where we can see your issue. For us to see the URL you need to include the link in the content of your post. The URL field the forum software provides is not shown to us. A link to the backend of the your site won’t work for us, i.e. a URL that contains /config/. Please set up a site-wide password, if your site is not public and you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the site-wide password and how to share a link documentation to understand how they work. You may find How to post a forum question post useful. We can then take a look at your issue. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
ronlewhorn Posted August 5 Author Share Posted August 5 Thanks, Creedon! It's live, so no worries. It all works, just wanting to clean up the appearance. https://www.8thdaydistillery.com/events Link to comment
Solution creedon Posted August 5 Solution Share Posted August 5 The issue is that the embedded code has defined a class of .header but doesn't have any CSS for it. Squarespace does have declarations for that class and so the embedded code is picking up styles from Squarespace. This is basically what you described. Without going into details the cleanest way I can see to solve the issue is add the following to a code block. <iframe srcdoc=" <div id="geotix-widget-container"> </div> <script src="https://d1wcopahj6rhb7.cloudfront.net/events/prd/geotix-embed-latest.js"> </script> <script type="text/javascript"> // CSS Override Documentation // https://s3.amazonaws.com/geotix-widgets/events/css-customizations.md GeotixWidget.fetchTickets ( { token : 'e4a16f02280cdf1ee211ade00d4eaeee', container : 'geotix-widget-container', portalId : 102 } ); </script> " style="border : unset; height : 100vh; width : 100%;" > </iframe> Using an iframe tag isolates Squarespace from the geotix code. Using an iframe can have it's own challenges but in this case I think the downside is less problematic than other approaches that might be used. Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
ronlewhorn Posted August 5 Author Share Posted August 5 HOLY COW! That worked perfectly! THANK YOU SO MUCH!!! creedon 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