Archived topic
Hooks video PHP
4 replies · Started by Steve on March 7, 2017
Viewing posts 1–5 of 5
Hello GeneratePress,
i've tried using the code in your Hooks video but it dosnt seem to work anymore since all pages are empty now^^ would you guys mind taking a look?:
<?php if { is_front_page() } : ?>
<div id="willkommen-zur-schmerztherapie"> </div>
<?php endif; ?>
Sorry for the dumb question but i never used php before.
Hi Steve,
I think you got the wrong bracket. Try this:
<?php if ( is_front_page() ) : ?>
<div id="willkommen-zur-schmerztherapie"> </div>
<?php endif; ?>
Let me know if this works.
Not a dumb question at all, PHP is a tough one to learn :)
Thanks Leo and Tom,
the code is working perfectly fine now
you guys are amazing^^
Have a nice day.
You're welcome and you as well :)
This archived topic is closed to new replies.