La fonction de suggestion automatique permet d'affiner rapidement votre recherche en suggérant des correspondances possibles au fur et à mesure de la frappe.
févr. 1, 201911:56 AM - modifié févr. 1, 201911:56 AM
Contributeur | Partenaire solutions
Styling a Thank You Message in WordPress in an Embedded Form
Résolue
I can center the Thank You Message from the Form > Options tab, but I don't have other style controls for that message like I do in the Style & Preview tab where I can set the font family, color, and font size for the form labels and buttons. How do we style the inline Thank You Message text that appears after submission?
Note, that because it's an embedded form on a WordPress page, there's lots of other content on the page that I'd prefer to keep without sending to a different page. I suppose I could create a duplicate page with just a thank you message instead of the form, but that seems overkill to load a new page in this instance. What would be nice is an easy way to style that Thank You Message like I can the rest of the Embedded Form elements.
Styling a Thank You Message in WordPress in an Embedded Form
Résolue
Thought I'd answer, as I found a solution for this. You just have to add the extra styling direction into the embed script.
For example, I wanted to change our "thank you message" to white font. So I added the bold, highlighted string below, to the normal embed code. The "cssRequired" JS prefix is the tag you need to use, along with the ".submitted-message" css selector ...
Styling a Thank You Message in WordPress in an Embedded Form
Résolue
I couldn't quite get the suggested workaround to work for me due to the styling I wanted to acheive, so another option is to set your thank you message as a bullet point(s). Once you've done that - if you're able to edit the templates that you're using - you can use a bit of selective editing to apply specific styling to bullet points that appear on forms:
1. Edit your template to add a css class to the block that contains your form, e.g.
.form-thankyou-wrapper
2. Add styles in your stylesheet to control the output:
Styling a Thank You Message in WordPress in an Embedded Form
Résolue
I have the same issue with the thank you text. My background is dark and i want to make the font white but i cannot seem to make that change. Did you guys get this sorted?
Styling a Thank You Message in WordPress in an Embedded Form
Résolue
I have the same issue. Basically, my webpage has a dark background, but the thank you message has black text, and there is no way to change the color of the message. CSS is not possible because it is an iframe.
Styling a Thank You Message in WordPress in an Embedded Form
Résolue
I'm looking for a solution here too.
I've tried styling from my page but this doesn't work due to CORS issues i.e. you can't tell another webpage what to do in terms of styling or javascript. Browsers block this for security reasons.
It does seem a massive oversight to have such piddling styling options for the thank you message.