GusRuss89
Forum Replies Created
-
Forum: Plugins
In reply to: [Material Design for Contact Form 7] Checkbox not workingHi @nemovich,
Your theme has this CSS which is preventing the checkboxes from being clicked.
input[type="radio"], input[type="checkbox"] { display: none; }To fix that, add the following CSS under Appearance > Customize > Material Design Forms > Custom CSS.
#cf7md-form input[type="radio"], #cf7md-form input[type="checkbox"] { display: block; }Your theme also cuts off the focus rings because it hides the overflow on the form. To fix this, add the following CSS to the same place as the above.
.wpcf7-form { overflow: visible !important; }Thanks,
AngusForum: Plugins
In reply to: [Material Design for Contact Form 7] Does it handle conditional fields?Hi @ajtruckle,
The plugin works with the CF7 conditional fields plugin, which it looks like you’re using to display your “Other” field.
You can look at these two pages to get a feel for what your form might look like:
– https://cf7materialdesign.com/demos/all-field-types/
– https://cf7materialdesign.com/demos/dark-theme/Thanks,
AngusForum: Plugins
In reply to: [Material Design for Contact Form 7] Form doesn’t load formattedHi @trentongo,
The page works first time for me. It does show a flash of unstyled form briefly – this is because some of the material styles are added via JavaScript, which loads last. This is quite noticeable on your site because it is slow to load (9s for me to the DOMContentLoaded event). You could speed this up by using a caching plugin and a CDN like CloudFlare (these are good practices anyway).
As an aside, it looks like you’re using conditional fields, but wrapping each group in a [md-text] shortcode, this is resulting in some inconsistent vertical spacing. Instead, the group shortcodes should go around the [md-text] shortcodes, so that only one is visible at a time.
Thanks,
AngusForum: Plugins
In reply to: [Material Design for Contact Form 7] Form doesn’t load formattedForum: Plugins
In reply to: [Material Design for Contact Form 7] placeholder not disappearingHi @yiannit,
I see you’ve tried to solve this issue by using empty labels and adding placeholders. Note that this has not solved the JavaScript error which may cause other issues (I.e. prevent other scripts from running properly on your site).
I’d recommend re-adding the labels and then disabling your other plugins one-by-one to figure out which plugin is causing this issue. If you can narrow it down for me I’ll install the plugin on my test site and see what can be done about the error.
Thanks,
AngusForum: Plugins
In reply to: [Material Design for Contact Form 7] Not workingHi @romaweblab,
v1.7.0 (released today) had a JavaScript bug, it looks like that’s what’s stopping your site from loading. I’m sorry for that. I’ve released a fix for the bug that should fix your issue. Please let me know if it doesn’t.
Thanks,
AngusForum: Plugins
In reply to: [Material Design for Contact Form 7] Horizontal radio buttonsHi @2020media
v1.7.0 was released today, which includes a new
displayattribute for themd-checkbox,md-radioandmd-switchshortcodes.The options for
displayare:stacked(default),inline,columns-2,columns-3orcolumns-4.E.g.
[md-radio label="What is your favourite food?" display="inline"] [radio radio-671 default:1 "Pizza" "Cake" "Cookie dough" "Steak" "Burgers"] [/md-radio]or
[md-radio label="What is your favourite food?" display="columns-2"] [radio radio-671 default:1 "Pizza" "Cake" "Cookie dough" "Steak" "Burgers"] [/md-radio]This is now the recommended way to achieve inline or columns of items.
Thanks,
AngusForum: Plugins
In reply to: [Material Design for Contact Form 7] AnnoyancesForum: Plugins
In reply to: [Material Design for Contact Form 7] data you have entered may not be savedHi all, I’ve just released v1.7.0 which includes a fix for this issue.
Forum: Plugins
In reply to: [Material Design for Contact Form 7] Horizontal radio buttonsHi @2020media
There’s no built-in way to organise your radios like this, but if you only have a few radios you can use this CSS to make them appear inline.
First, add a class
inline-controlto your cf7 radio field. E.g.[md-radio label="Choose"] [radio radio-test class:inline-control label_first use_label_element default:1 "One" "Two" "Three"] [/md-radio]Then add this CSS under Appearance > Customize > Material Design Forms > Custom CSS.
#cf7md-form .inline-control .wpcf7-list-item { width: auto; margin-right: 30px; }This will put your radio options inline with a 30px gap between each. You can also apply this class to checkbox fields.
A not-too-distant-future version of the plugin will have this as a feature, and also the option to group checkboxes and radios into equal-width columns.
Thanks,
Angus- This reply was modified 8 years, 2 months ago by GusRuss89.
Forum: Plugins
In reply to: [Material Design for Contact Form 7] placeholder not disappearingHi @yiannit,
There’s an error in the JavaScript (if you check the console) that is causing this, however I’m not sure how the error is possible as everything looks like it’s loaded correctly.
Could you try disabling your plugins one-by-one (apart from this one), and re-testing to see if one of them is causing this issue?
Thanks,
AngusForum: Plugins
In reply to: [Material Design for Contact Form 7] Undefined Error on Send Button@guilhermesoliveira are you using the Material Design for Contact Form 7 plugin? It doesn’t look like you are…
Forum: Plugins
In reply to: [Material Design for Contact Form 7] AkismetHi @pmagony
The plugin only affects the style of your forms. It doesn’t do anything with the form data once submitted, but leaves that up to CF7.
So yes it should work fine with Akismet.
Thanks,
AngusForum: Plugins
In reply to: [Material Design for Contact Form 7] Design broken after update to 1.6.2Forum: Plugins
In reply to: [Material Design for Contact Form 7] Undefined Error on Send Button