Jquery background stretch not working.
-
Hello, I have been doing a lot of research on this topic over the past two days and still cant find a solution to why my jquery background image stretch isn’t working. I have the code working and layed out in a static html document and it works perfectly. When I paste this code into my own wordpress theme I’m creating it shows no sign of working.
This code below is in it’s simplest form from the static html document that I am trying to incorporate into my wordpress theme.
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="jquery.backstretch.js"></script> <script> $.backstretch(["la.jpg"]); </script>
Now below is how it appears in my current wordpress theme’s header.
<html> <head> <title>Demo Template</title> <!-- jquery --> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <!-- end jquery --> <!-- @fontface --> <link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'> <!-- @fontface --> <!-- style sheets --> <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/reset.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"> <!-- end style sheets --> <!-- background stretch --> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="jquery.backstretch.js"></script> <script> $.backstretch(["la.jpg"]); </script> <!-- end background stretch --> </head>
Do you all have any ideas on why this isn’t working? I’ve hit a complete road block here.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Jquery background stretch not working.’ is closed to new replies.