form conditions taking up space

By: Mike Soriano | Asked: 03/24/2024
ForumsCategory: General questionsform conditions taking up space
Mike Soriano asked 4 months ago
Hi, I'm using these form conditions to display unique text depending on the count of entries. [frm-condition source=frm-stats id=6 type=count user_id=current equals=1]xxxx[/frm-condition]
[frm-condition source=frm-stats id=6 type=count user_id=current equals=2]xxxx[/frm-condition]
[frm-condition source=frm-stats id=6 type=count user_id=current equals=3]xxxx[/frm-condition] It works fine. However, I notice that it occupies space even when the conditions are not met.This becomes problematic when adding more conditions as it pushes down the rest of the page content. Any suggestions on how to resolve this issue would be greatly appreciated.
1 Answers
Rob LeVineRob LeVine answered 4 months ago
There are a few ways to handle this.  One is to use jQuery to get rid of the HTML that's causing the blank space.  The other way, that might work (I've had sporadic luck with it) is to use the parameter wpautop=0 with the shortcode that references your view see here.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right