Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using BackStretch with WordPress? #114

Closed
Vatos opened this issue Jul 1, 2012 · 2 comments
Closed

Using BackStretch with WordPress? #114

Vatos opened this issue Jul 1, 2012 · 2 comments

Comments

@Vatos
Copy link

Vatos commented Jul 1, 2012

How can i use backstretch with a WordPress site? Where do i insert the HTML code? wp-blog-heard.php? within a php file within the template i'm using?

@cmocha
Copy link

cmocha commented Jul 1, 2012

@Vatos -
I have used the backstretch successfully in WordPress. I put the the reference to backstretch.js in my footer.php template after my reference to jQueryof course. And below my references to jQuery and backstretch, in a script tag i call :

<script> $(document).ready(function(){ $.backstretch("your path to image you want to stretch here"); </script>

Hope this helps.

@cmocha
Copy link

cmocha commented Jul 1, 2012

@Vatos -

FYI- I also use my functions.php file to load jQuery.. deregister Wordpress's jQuery and register your specific version of choice from google cdn. And specify it to load in the footer. At least i have come to learn this is a best practice.

@srobbin srobbin closed this as completed Jul 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants