• Resolved ma3ry

    (@ma3ry)


    You have given me the coding to have two different headers on my site using GP Hooks. I am now making another site where I just want the GP Hooks header to appear on the home page and not on the other pages.

    Could you please tell me how I accomplish this. Currently I have

    <?php if ( is_front_page() ) { ?>
    <center>[videojs mp4=”https://marypearson.info/wp-content/uploads/snowy-branches250.mp4&#8243; preload=”auto” autoplay=”true” loop=”true” controls=”false” height=”250″ width=”952″]</center>
    <?php } else { ?>

    <?php } ?>

    What do I put after the “else” line? so that the header doesn’t appear on other pages?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Tom

    (@edge22)

    If you don’t want anything to appear on the other pages, then don’t put anything in there.

    If you want something to appear in place of the video, then it would go in there.

    Let me know if that makes sense ??

    Thread Starter ma3ry

    (@ma3ry)

    Hi Tom. That’s exactly what I did and it works fine. I just didn’t know if it was acceptable coding to not put anything.

    Thank you for answering.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘GP Hooks – php – display: none’ is closed to new replies.