[resolved] Poll keeps loadin without wp_head() and wp_footer() (2 posts)

  1. sasha1
    Posted 3 years ago #

    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.


  2. sasha1
    Posted 3 years ago #

    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' );


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic