Script to run on Front Page only. (1 post)

  1. Tim Rogers
    Posted 4 years ago #

    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="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://dearearth.net/DE/wp-content/custom/jquery.backstretch.min.js"></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!

Topic Closed

This topic has been closed to new replies.

About this Topic