Hi, sorry for the late reply!
Have been on summer vacation.
Me and a coworker have found a working solution, we don’t know why the original code isen’t working… but now it works for us.
We are guessing that its som kind of incompatibility with the theme Enfold, but we cant confirm it.
The problem that we noticed was
- Some styles was ignored (4 columns width 25% in desktop should be 100% on mobile, was still 25% in mobile)
- Some classes wasn’t printed (classes like “avia-builder-el-59 el_after_av_section el_before_av_section”)
I have tested to turn of all plugins except this one, no change.
In the file zendesk-request-form.php we have replaced the while loop with a if statement and a foreach.
Original – line 257
while ( $custom_fields->have_posts() ): $custom_fields->the_post();
$id = get_the_ID();
$field_type = esc_attr(get_post_meta($id, 'field-type', true));
if ($field_type != 'descriptive') { // check if it's actually a field or just description text/html
Our code
if($custom_fields && isset($custom_fields->posts) && sizeof($custom_fields->posts) > 0) {
foreach ($custom_fields->posts as $cf) {
$id = $cf->ID;
$field_type = esc_attr(get_post_meta($id, 'field-type', true));
if ($field_type != 'descriptive') { // check if it's actually a field or just description text/html
I can send you the file if you want.