[Resolved] Hooks video PHP

Home Forums Support [Resolved] Hooks video PHP

Home Forums Support Hooks video PHP

  • This topic has 4 replies, 3 voices, and was last updated 7 years ago by Leo.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #288513
    Steve

    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">&nbsp</div>
    <?php endif; ?>

    Sorry for the dumb question but i never used php before.

    #288547
    Leo
    Staff
    Customer Support

    Hi Steve,

    I think you got the wrong bracket. Try this:

    <?php if ( is_front_page() ) : ?>
      <div id="willkommen-zur-schmerztherapie">&nbsp</div>
    <?php endif; ?>

    Let me know if this works.

    #288571
    Tom
    Lead Developer
    Lead Developer

    Not a dumb question at all, PHP is a tough one to learn ๐Ÿ™‚

    #288719
    Steve

    Thanks Leo and Tom,

    the code is working perfectly fine now
    you guys are amazing^^

    Have a nice day.

    #288808
    Leo
    Staff
    Customer Support

    You’re welcome and you as well ๐Ÿ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.