WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. sasha1
    Member
    Posted 10 months 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.

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

  2. sasha1
    Member
    Posted 10 months 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' );

    cheers!!!!!

Reply

You must log in to post.

About this Plugin

About this Topic