• Resolved clemrose

    (@clemrose)


    Hello,

    Seems like the documentation for :

    • blocksy_after_current_template();
    • blocksy_output_footer();

    are missing.

    I think I needed the blocksy_output_footer(); one, I want to delay the apparition of the footer, I found this code :

    ?> <script type=”text/javascript”>

    /* add your js code here */

    setTimeout(() => { blocksy_output_footer(); }, 2000);
    </script> <?php

    I seems like it is almost working, but the footer doesn’t appear after 2 seconds, it just in’t here anymore.

    Can you help ?

    Thanks a lot !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Creative Themes

    (@creativethemeshq)

    Hi @clemrose,

    There is no way this code could ever work — you are trying to combine a timeout from JavaScript with a PHP function. The fact that you no longer see your footer at all is expected.

    Could you please explain a bit why exactly you are trying to “delay” the apparition of the footer on your site? You want to show it with an animation? What is the reason behind this?

    Waiting for your reply.

    Thread Starter clemrose

    (@clemrose)

    Hi @creativethemeshq,

    Thanks for your reply,

    Sorry, I’m trying to learn bit by bit…

    I initially wanted to show 2 times on the same Homepage, the Google Translate button. As I understood, it cannot appear twice on the same page, but it can only if it doesn’t appear at the same time (src: https://stackoverflow.com/questions/51667822/is-there-any-way-for-more-than-one-google-translate-widget-to-be-loaded-on-a-pag )

    (For the record I just dropped this idea, I am no longer looking to delay my footer nor to put 2 Google Translate buttons)

    Thanks a lot !

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Delay Footer blocksy_output_footer(); using JavaScript’ is closed to new replies.