CSS for links in option text

Home Forums Quform WordPress CSS for links in option text

This topic is: resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37870
    foodstijl
    Participant

    Hi Ally,

    Almost every form needs to have a link to the privacy policy these days..
    I would like to style the link of an option/checkbox text and also the hover state.
    – I can do this via CSS on a global level of the website, but then all links in all option texts are styled the same way. That doesn’t work in my case. as the background of the forms differs.
    – I can set the CSS to the ID of the form, but then I need to add the CSS code every time I create a new form. In the future the client will do this, and they are not going to add CSS code..

    I can’t seem to find the option within a form to add styling of link (and hover state). or am I missing something?

    Do you have way this could be done easily? In a way it doesn’t cause any problems when more forms are added?

    Some links to the forms:

    Form on blue background I need it to be #fff color as I set in global css:

    Open sollicitatie

    and a form on a white background, i need it to be #BF1221 But I can’t seem to create an exception on global level for this

    Updates

    Thanks in advance.

    Kind regards,
    Emile

    #37871
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #37873
    foodstijl
    Participant

    Hi Ally,

    This looked promising.

    I’ve added the CSS and JS and the default color style works, but for some reason the link color does not change to white on the forms where the option text is white..
    The class is added to the span element (see screenshot), but the link remains the default color. It just doesn’t recognise the extra styling.

    I’m afraid this goes over my head, just a simple designer here. Maybe you see a solution for this?

    Kind regards,
    Emile

    Attachments:
    You must be logged in to view attached files.
    #37889
    foodstijl
    Participant

    Hi Ally,

    Any update on this by any chance?

    Kind regards,
    Emile

    #37890
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #37891
    foodstijl
    Participant

    Ally,

    That is perfect !
    I had no idea that made a difference, live and learn..

    Thanks a lot.

    Kind regards,
    Emile

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy