Site logo

[Resolved] Editing CSS on external script

Home Forums Support [Resolved] Editing CSS on external script

Home Forums Support Editing CSS on external script

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2464844
    Ricardo

    Hi,

    I’m not sure if this relevant for this forum, but I would like to try;

    I’m trying to add an external script that produces a booking button in my page – https://www.fado.club/inicio-22/

    I could do a button, but this one has special features after customers click on it.

    I’m trying to add the CSS of that button, but I’ve been unable to do it. I think that is because the CSS should be edited on the font and not on my website. But do you know any way to edit that CSS on my wordpress?

    (Sorry for not knowing the correct terms!)

    Thank you

    #2465059
    David
    Staff
    Customer Support

    Hi there,

    what is the external script you’re trying to add ?

    #2465729
    Ricardo

    Hi,

    I’ve already added:

    <script src=”https://tiqets-cdn.s3.amazonaws.com/booking_engine/loader/11384.js”></script&gt;

    <script
    src=”https://tiqets-cdn.s3.amazonaws.com/booking_engine/loader/11384.js”></script&gt;

    The result is a green floating button on the right.

    It has this class: .smart_button

    I can edit on mozilla inspector, but when I add the custom css in the wordpress, it doesn’t make any effect.

    So I wonder if there is anything that could be done here.

    Thank you

    #2465874
    David
    Staff
    Customer Support

    Ok, so the Javascript is outputting an iFrame to display that button, and an iframe outputs it own HTML doc inside your page. And that HTML cannot be manipulated or restyled from anywhere other than the iframes origin server.
    So although you can edit it in the browser inspector, you cannot pass styles from your domain to that HTML doc.

    You would need to ask the script provider how to restyle the button. They should be able to provide an modified script to do that.

    #2466169
    Ricardo

    Thank you very much for your reply.

    Best regards,
    Ricardo

    #2466745
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.