Hi
I have been trying to implement the jQuery full size background into a Wordpress child theme. I have managed to inject the js into the head of the code using a php function in my functions.php
function childtheme_scripts() {?> |
<img src="images/bg.jpg" alt="" id="background" /> |
Thanks for the reply I'll give that a shot this weekend.
I saved the contents of
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> |
I have been trying various methods to get the img src and the inline script to work with no joy.
I wrote a function in my childthemes function.php to pull the img and id="background" into the page but I can't reference the class .fullBg
|
// adding jQuery to your head |
You need to enqueue the JS script.
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
<?php |
Take a look around, and if you would like to add a comment or start a discussion, register by clicking on the button below.
RegisterCopyright © 2012 bavotasan.com. All Rights Reserved. Powered by Vanilla.