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.
-
By script you mean Javascript or PHP? Can you please post your current relevant code?– birgireMar 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 } ?>– MichelleMar 21, 2016 at 14:59
-
Welcome to the site. Please add that to your answer.– birgireMar 21, 2016 at 15:01
-
Thank you! And yep done..was figuring out how to do. Have a great day!– MichelleMar 21, 2016 at 15:03
-
2Note 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.– birgireMar 21, 2016 at 15:06
Add a comment
|
1 Answer
Figured it out, thanks :)
<?php if (is_page('contact') ) { ?>
<?php } else { ?>
placed script here
<?php } ?>