0

Hoping for a little bit of help...I have added a script in footer.php and I want the script to run on all pages but not on "contact" page. What would be the coding/conditional to do this? Thank you.

5
  • By script you mean Javascript or PHP? Can you please post your current relevant code?
    – birgire
    Mar 21, 2016 at 14:54
  • Thank you for the quick response birgire I have figured it out. I am new here and not sure how to post what I used <?php if (is_page('contact') ) { ?> <?php } else { ?> <?php } ?>
    – Michelle
    Mar 21, 2016 at 14:59
  • Welcome to the site. Please add that to your answer.
    – birgire
    Mar 21, 2016 at 15:01
  • Thank you! And yep done..was figuring out how to do. Have a great day!
    – Michelle
    Mar 21, 2016 at 15:03
  • 2
    Note that you can accept your own answer (if you're registered), to close the question. But to help others as well, we should avoid pure code dumps and also add some explanation too, thanks.
    – birgire
    Mar 21, 2016 at 15:06

1 Answer 1

-1

Figured it out, thanks :)

<?php if (is_page('contact') ) { ?>
<?php } else { ?>
placed script here
<?php } ?> 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.