• Resolved dmbox

    (@dmbox)


    I inherited this website project, and cannot determine how they have the backstretch JavaScript running on the Word Press pages.

    http://digitalmediabox.net/

    This is found in the index.html code:

    <script src=”/lib/jquery-1.6.4.min.js”></script>
    <script src=”/jquery.backstretch.min.js”></script>
    <script>$.backstretch(“images/deer_lakes_clouds.gif”);</script>

    Any ideas how they got it in to Word Press?

    Thanks in advance,
    Doug

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator cubecolour

    (@numeeja)

    The page you linked to doesn’t look like part of a WordPress site.

    Thread Starter dmbox

    (@dmbox)

    That is correct, I showed it as a reference to the JS files that create the full browser background.

    If you click in to the Word Press pages, you’ll see the same background.

    That’s what is what has stumped me….how they got the full browser background in the WP pages.

    Thanks for your reply.

    Moderator cubecolour

    (@numeeja)

    OK, in that case it would have been better if you had initially linked to a WordPress page. I have now had a look at http://www.dmb2.net/photography.

    It looks like the backstretch script is being added in the footer, and I can see relative URLS in this part of the source I would guess that it is likely that this is hard coded in the footer.php of the theme. That is not the only way it may have been done though but if you inspect the theme files you should get some clues.

    The page is loading two different versions of jQuery, neither of which is the copy that is included in the WordPress core files. The recommended way to include scripts is to enqueue them this is documented at http://codex.wordpress.org/Function_Reference/wp_enqueue_script

    The site appears to be using a commercial theme called thesis. I don’t know whether there is added functionality within this theme which may been used for adding this code and I don’t know anything about how the theme files are structured. Commercial themes cannot be supported here, so if you need theme customisation support, you need to request this from the theme vendor.

    Thread Starter dmbox

    (@dmbox)

    Thank you sir…yes the theme has a place for Embedded Scripts, and that is where the background JS is being added.

    I apologize for being obtuse, but this theme feature was not apparent in their documentation….and I thought it had been added elsewhere.

    I appreciate your taking on my post even though it should not have been posted in this forum.

    Regards,
    Doug

    Moderator cubecolour

    (@numeeja)

    No problem, glad you found it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Backstretch JS Question’ is closed to new replies.