Support » Fixing WordPress » Script to run on Front Page only.

  • I have come across quite a few discussions abotu this, but couldn’t solve it myself as of yet.. 🙁

    I have the follwoing simple script executing on different pages of my choice:

    <script type="text/javascript" src=""></script>
    <script type="text/javascript" src=""></script>
    <script type="text/javascript">$.backstretch("wp-content/themes/photoshot/images/home_bg.jpg", {speed: 1000});</script>

    It simply is for background image scaling.

    However, since my Front Page is not really a page, I can’t embed the code as I have been as there is no ‘page ID’, to my understanding.

    Either way, could someone please give me a copy-paste solution, indication where to insert the php code so that the above script is executed on the frontpage only, which is set to display recent posts.

    Thanks very very much!

  • The topic ‘Script to run on Front Page only.’ is closed to new replies.