Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jason

    (@verysimple)

    Hmm not 100% sure but maybe it’s because that script appears before the HTML is rendered. Maybe if you use jQuery you could do the following:

    $(document).ready(function(){
        // your code here...
    });
    Thread Starter justinsnow

    (@justinsnow)

    Thanks for your help Jason. I had tried using the ready function you mentioned before posting here, but I still couldn’t get it to work. After your suggestion, I tried a little harder, and succeeded!

    For those with a similar problem, here’s what I did.

    I had to install jQuery on my site (which was much easier than I expected), loaded jQuery in the footer of my page (although still within the body tag), took my script out of the HungryFEED settings, wrapped it in that ready function, and stuck it right after the jQuery loading script. Not too difficult at all, and now it does exactly what I hoped.

    Plugin Contributor Jason

    (@verysimple)

    excellent! thanks for the followup!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: HungryFEED] JavaScript not running’ is closed to new replies.