We are iframaing in a form from another location, but we cannot get the styles to respond to use our styles,
Following the Enfold online documentation, I turned on Show Element Options for Developers, turned off CSS Merging, and added “.color_red {color:#e21836;}” to both the custom.css file and the Quick CSS field. The CSS does not appear to be coming through. My Developer Tools window tells me “No CSS properties found” for the color_red class.
Hey hostworks,
Sorry, due to CORS you can not change the style of a page that is in a iframe.
Best regards,
Mike
What is CORS?
Hi,
Sorry I should have explained that better, Cross-origin resource sharing (CORS), it is the headers of the web resource that either allows sharing or not, and where the page is coming from. So with iframes if sharing is allowed the iframe will show but you can’t inject css to override the iframes css, it will load it’s own css from it’s own domain.
Best regards,
Mike
ok, thanks
Hi,
Unless there is anything else we can assist with on this issue, shall we close this then?
Best regards,
Mike
Sure, thanks