• I have come across quite a few discussions about this, but couldn’t solve it myself as of yet.. πŸ™

    I have the following 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 in other pages, as there is no ‘page ID’ for the front page (or if there is I have no clue).

    Either way, could someone please give me a copy-paste solution, and indication where to insert the necessary php code so that the above script is executed on the front page only (which is set to display recent posts)?

    Thanks very very much!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Script to run on Front Page only’ is closed to new replies.