• Hi,

    I am trying to implement this tutorial on my pages.

    https://www.reconn.us/content/view/37/47/

    But it isn’t working.

    What I did was open header.php and added the code on that page just below the opening body tag.

    I use full path on the image to make sure it is pointed to the right file but no luck.

    Is there anything I am doing wrong?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter janmalagucute

    (@janmalagucute)

    If I did not able to tell the problem on my first post. i will try it again.

    I need my page not to show until it is loaded.

    Does someone knows how can I add loading gif display on page while the page is loading.

    Thanks

    Did you follow the steps in the tutorial correctly?

    Could you pass on the link for your site?

    Thread Starter janmalagucute

    (@janmalagucute)

    I think I did..

    No link.. Im testing on xampp

    If you can verify the tutorial is working, perhaps something is conflicting on my install.

    thanks

    Hi,

    If I can’t see what you’ve done, I can’t help you, could you copy your code onto pastebin and add the link here, so I can at least see what you did with the code.

    Thread Starter janmalagucute

    (@janmalagucute)

    here is the code just before and after opening body tag in header.php

    https://pastebin.com/asDmYwKN

    Thanks in advance

    As I guessed, you missed step one of the tutorial, which is essential to trigger the gif loading.

    Change:
    <body <?php body_class(); ?>>

    To:
    <body onLoad="init()" <?php body_class(); ?>>

    Good luck. Hope this fixes it. Without it, the Javascript will not execute when the page loads.

    Thread Starter janmalagucute

    (@janmalagucute)

    no luck ??

    Wow, no errors in the console? You have provided no working code. Can’t really help more than that. Sorry.

    Thread Starter janmalagucute

    (@janmalagucute)

    Sorry for that.

    I am trying to publish it online so that you can se the code I am working on.

    Thanks for your help.

    As sson as I get this replicated online I will give you the link.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Loading gif on every page’ is closed to new replies.