Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to make PHP "if" code to display:none if a featured image is not set Reply To: How to make PHP "if" code to display:none if a featured image is not set

#253244
Konspaul
Participant

Yes. WordPress adds extra “layer”. For me this was very hard in the beginning when I just started developing WordPress themes after regular HTML/CSS pages where things are very straight forward.

I prefer keep all my small edits in function.php file. Makes things more easy than separate code in template files. Template files works better on other scenarios.