Please can you add a new css class (.empty) for empty custom fields. I created a custom input text field called Disclaimer and styled it in blog posts but when this field is empty the css styles are still visible.
A way to differentiate the field would be:
(.empty) css class for empty fields so this can be hidden with (display:none)
(.filled) css class for custom fields with content
Had another thought.
In case of empty, we are returning ”.
Your problem happened since the values for fields containing data did not contain wrapper and you had to use custom markup for that.
we will not add the markup to empty value(It helps detecting that the value is empty), Instead, we will mark all fields with data with consistent as well as field key specific class.
That should resolve it.
You must be logged in to reply to this topic.