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
March 29, 2017 at 10:39 am
#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.