Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    to add the required function, edit your theme footer.php file; you have to add a line like this just before the </body> tag:
    <?php wp_footer(); ?>

    The presence of this function in your theme is strongly requested by the majority of WP plugins and themes.

    Thread Starter Vietyank

    (@vietyank)

    In this case, I do not want the footer to appear, just the buttons and whatever other plugins supply data, like Google Analytics. Same for the header.

    Here is my template code:

    `<?php
    /*
    Template Name: JibJab
    */
    ?>

    <?php
    if ( have_posts() ) : while( have_posts() ) : the_post();
    the_content();
    endwhile; endif; ?>

    Click here to view the page

    Thread Starter Vietyank

    (@vietyank)

    Just to clarify, we don’t want any site branding or sidebars. Just the JibJab animation, the text that appears below it and the buttons.

    Hi, the wp_footer() function only fires the “wp_footer” action, allowing the plugin to insert the required javascript code. Similarly, the wp_head() on theme header fires the “wp_head” action. These functions don’t write HTML directly, they only allow plugins and theme functions to do it.

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

The topic ‘Facebook share button not appearing’ is closed to new replies.