Title: Customized ACF with css?
Last modified: June 17, 2022

---

# Customized ACF with css?

 *  [blackthunderwolf](https://wordpress.org/support/users/blackthunderwolf/)
 * (@blackthunderwolf)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/customized-acf-with-css/)
 * Hi. First of all, the plugin is awesome. Thanks for that. I have a small problem
   though.
 * I created an ACF field that contains HTML code by default. `<div id="xx"></div
   >`.
 * The text can be pasted in the editor.
 * My problem now is that if I leave the field in the editor empty, the DIV is still
   displayed on all pages because there is content inside. The HTML code.
 * Is there a way that the field is only displayed on the page if there is text 
   inside?
 * Or that I might say about the Function.php:
 *     ```
       if(!empty get_field('zitat') ) {
       		 echo '';
       		 }
       		 else  
       		 {
       			 echo '
       <div id="xxx">
       Text from the Editor
       </div>';
       		 }
       ```
   
 * However, it should not be the same text on all pages.
 * [https://i.ibb.co/df1kpXV/1.jpg](https://i.ibb.co/df1kpXV/1.jpg)
    [https://i.ibb.co/gMGVvpz/2.jpg](https://i.ibb.co/gMGVvpz/2.jpg)
   [https://i.ibb.co/27vdQ1z/3.jpg](https://i.ibb.co/27vdQ1z/3.jpg)
    -  This topic was modified 3 years, 11 months ago by [blackthunderwolf](https://wordpress.org/support/users/blackthunderwolf/).

The topic ‘Customized ACF with css?’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [blackthunderwolf](https://wordpress.org/support/users/blackthunderwolf/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/customized-acf-with-css/)
 * Status: not resolved