• 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/gMGVvpz/2.jpg
    https://i.ibb.co/27vdQ1z/3.jpg

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