[theme-reviewers] Toolbar on Frontend Question

Phillip Wells phillipwells at hotmail.co.nz
Sun Oct 6 11:02:57 UTC 2013


I am currently making a theme and i need to use is_admin_bar_showing(); i have this code belowif ( is_admin_bar_showing() ==true ){echo'true';}elseif ( is_admin_bar_showing() == false ){echo'false';}endif;
However this doesn't work and i am not sure why.
The description on the codex is: This Conditional Tag checks if the WordPress Toolbar is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE. and here is a link to the page on the codex http://codex.wordpress.org/Function_Reference/is_admin_bar_showing. I have checked this page but i still cannot figure out how to do it as this page is not very helpful. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20131007/521bc7ad/attachment.html>


More information about the theme-reviewers mailing list