<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I am currently making a theme and i need to use <span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12.222222328186035px; line-height: 21.99652862548828px; white-space: pre-wrap; color: rgb(0, 0, 187);">is_admin_bar_showing</span><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12.222222328186035px; line-height: 21.99652862548828px; white-space: pre-wrap; color: rgb(0, 119, 0);">(); i have this code below</span><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;">if ( is_admin_bar_showing() ==true ){</span></font></div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;">echo'true';</span></font></div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;">}</span></font></div><div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;">elseif ( is_admin_bar_showing() == false ){</span></font></div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;">echo'false';</span></font></div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;">}</span></font></div></div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;">endif;</span></font></div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;"><br></span></font></div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;">However this doesn't work and i am not sure why.</span></font></div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;"><br></span></font></div><div><font color="#007700" face="Consolas, Monaco, Courier New, Courier, monospace"><span style="font-size: 12px; line-height: 21.984375px; white-space: pre-wrap;">The description on the codex is: </span></font><span style="font-family: sans-serif; font-size: 13.333333969116211px; line-height: 21.99652862548828px;">This </span><a href="http://codex.wordpress.org/Conditional_Tags" title="Conditional Tags" style="text-decoration: none; color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223); font-family: sans-serif; font-size: 13.333333969116211px; line-height: 21.99652862548828px;">Conditional Tag</a><span style="font-family: sans-serif; font-size: 13.333333969116211px; line-height: 21.99652862548828px;"> checks if the WordPress </span><a href="http://codex.wordpress.org/Administration_Screens#Toolbar" title="Administration Screens" style="text-decoration: none; color: rgb(76, 166, 207); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(223, 223, 223); font-family: sans-serif; font-size: 13.333333969116211px; line-height: 21.99652862548828px;">Toolbar</a><span style="font-family: sans-serif; font-size: 13.333333969116211px; line-height: 21.99652862548828px;"> 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 </span><a href="http://codex.wordpress.org/Function_Reference/is_admin_bar_showing" target="_blank" style="font-size: 12pt;">http://codex.wordpress.org/Function_Reference/is_admin_bar_showing</a>. I have checked this page but i still cannot figure out how to do it as this page is not very helpful.</div> </div></body>
</html>