Hi @danihu – Sorry about the issue you are facing here!
Could you please make sure the Modern Markup is disabled and then add the form fields along with the classes as shown in this sample screencast.
Thanks,
Thread Starter
danihu
(@danihu)
Hi Nikhil. Again, I exported this form from another of my websites and just changed the descriptions and deleted 2 fields. All definitions are correct. And, I don’t see the “modern markup” check box in my lite version. As I wrote, my forms are all working properly on other website with the same theme. That’s why I don’t understand this issue. What else can I do?
https://akafina.ch/seminare-altersvorsorge-fuer-konkubinats-paare/
https://kuhn-campus.ch/newsletter-jubilaeumspromotion-sennebogen-340g-und-355e/
The first one works perfect, the second not. Identical CSS entries, identical form field definitions.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Thread Starter
danihu
(@danihu)
By the way I am using WPForms Lite. Can you help me to find a solution. As I can see there are several users having the same problem.
This snippet solved the problem
add_filter( ‘wpforms_admin_settings_modern_markup_register_field_is_hidden’, ‘__return_false’ );
Thanks for WPform support
Thread Starter
danihu
(@danihu)
Hello again. When I upload an older version of WPForms Lite everything looks fine. If I update to the latest version it changes from two-column to single column layout. By adding your snippet over WP Code nothing happens. I cannot see the Modern Markup entry in the settings. Where do I have to enter it to get it working? I really hope you can help me with a detailed answer. Thank you.
-
This reply was modified 2 years ago by
danihu.
-
This reply was modified 2 years ago by
danihu.
Download Snippets Plugins and past it there as a new snippet.
also go to me topic and it’s just before this topic direct under the title “2 Column layout DOES NOT working” and you will read more there
@danihu —
please add this code snippet and this would allow you to display Modern Markup setting:
add_filter( 'wpforms_admin_settings_modern_markup_register_field_is_hidden', '__return_false' );
Once you add the code, you should be able to switch to the classic mode.
In case it helps, here’s our tutorial with the most common ways to add custom code like this.
For the most beginner-friendly option in that tutorial, I’d recommend using the WPCode plugin.
Hi @danihu,
We haven’t heard back from you in a while, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.
Thanks!
Thread Starter
danihu
(@danihu)
I really appreciate the free support I get and got from your side, but in this case I was not satisfied, especially because it is an important feature and it seems to be a basic problem of later versions. And, by the way, also by adding this code over WPCode it was not working. That’s why I wanted to know where I can place it the best. Finally I put it into plugin.php and this made it working. I do hope that from the further versions this behavior of the plugin can be optimized in a way that modern markup is off by default and further actions are unnecessary. Thank you.
Hey @danihu – Ideally placing the code in WPCode should work. When you have sometime, can you please check if the snippet was activated, and the location where it’s supposed to run.
Kindly,
Thread Starter
danihu
(@danihu)
Can you do me a favour and send me a screenshot of a working sample. I entered the code as usual and activated the snippet, but no effect. Then I deleted it. Thank you for your help.
Hey @danihu – Thanks for following on this ticket!
Here’s a screenshot of the snippet I’ve added in the WPCode plugin.
When you get a chance, can you please try again, and let me know as it seems to be working fine for me?
Kindly,
Thread Starter
danihu
(@danihu)
Thank you. Now, it works. I forgot to select php snippet instead of html.
Resolved!