WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Poll keeps loadin without wp_head() and wp_footer()

[Resolved] Poll keeps loadin without wp_head() and wp_footer()

  • Hi i have little strange requirement.
    I have installed wp-poll plugin in my site.
    My client doesn’t want to show admin bar on front end so i commented the wp_head() and wp_footer(). so poll plugin keep on loading.
    After un-commenting the lines that resolved my problem.
    So my problem is i do not want to show admin bar and use wp-poll effectively.
    How can i do that?
    Thanx in advance.

    http://wordpress.org/extend/plugins/wp-polls/

Viewing 1 replies (of 1 total)
  • Any one having this kind of trouble there is solution for you.
    Add this code snippet in your function.php
    with both wp_head() and wp_footer() not commented.

    function hide_admin_bar_from_front_end(){
      if (is_blog_admin()) {
        return true;
      }
      return false;
    }
    add_filter( 'show_admin_bar', 'hide_admin_bar_from_front_end' );

    cheers!!!!!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Poll keeps loadin without wp_head() and wp_footer()’ is closed to new replies.