Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1019256

    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.

    #1019326

    Hey hostworks,
    Sorry, due to CORS you can not change the style of a page that is in a iframe.

    Best regards,
    Mike

    #1019527

    What is CORS?

    #1019720

    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

    #1019729

    ok, thanks

    #1019737

    Hi,
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

    #1019746

    Sure, thanks

    #1019803

    Hi,

    Thanks for letting us know, I’ll go ahead and close this for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘We are having difficulty getting custom CSS to display on our site’ is closed to new replies.