- This topic is empty.
February 16, 2014 at 6:56 pm #163053iizagParticipant
Hi I am trying to connect Smooth Div Scroll to my site: http://Izzy.me
Smooth Div Scroll is this: http://smoothdivscroll.com/
In my child functions php I have this :
In the front page of Izzy.Me I have 3 pictures of birds that I am using as an example to see if Smooth Div Scroll is connected.
This is the CSS of those pictures:
<div id="makeMeScrollable"> <img src="//www.birds.com/wp-content/uploads/home/bird4.jpg" alt="Field" id="field" /> <img src="//www.birds.com/wp-content/uploads/home/bird.jpg" alt="Gnome" id="gnome" /> <img src="//3.bp.blogspot.com/-KFaKPd9ytxM/TxdKjRZulaI/AAAAAAAAD6A/w0kduvREq2w/s1600/bird-1-wallpaper-1024x768-853745.jpeg" alt="Pencils" id="pencils" /> </div>
—> What do I have written wrong I dont understand why this is not working, thank you for any helpFebruary 17, 2014 at 4:22 am #163070ChromawoodsParticipant
Looks like you’re trying to initialize it in myscript.js, right? But it looks weird.. There’s a script tag inside the script file… but it’s commented out? So nothing will happen.
..actually, the first error seems to come from the smoothdivscroll itself. Have you changed the plugin code in any way?February 19, 2014 at 3:20 am #163326ChromawoodsParticipant
so looking back now at the functions php i included does it look right ? ( thanks for your help )
That was not what I meant. The PHP looked fine. I meant the content INSIDE myscript.js. There was a tag inside that js-file, which is weird. And then the actual smoothdivscroll initialization was commented out.
So I’m still wondering how/where you are initializing the plugin and because that plugin gave an error, I also wonder if you have changed any code in jquery.smoothdivscroll-1.3-min.js.
And as I said, if you open the console you will see several other errors that you might want to get rid of to ensure that they are not interfering with what you are trying to do.