<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>How to disable the admin bar for all users excerpt the admins? &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/feed/</link>
		<description></description>
		<lastBuildDate>Thu, 16 Oct 2025 16:21:25 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-216769</guid>
					<title><![CDATA[How to disable the admin bar for all users excerpt the admins?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-216769</link>
					<pubDate>Fri, 27 Feb 2015 19:03:35 +0000</pubDate>
					<dc:creator>mpark0701</dc:creator>

					<description>
						<![CDATA[
						<p>Hi </p>
<p>1. I followed this instruction, but it doesn&#8217;t work. Even though users are not logged in, toolbar stay on top. Can you help me please?</p>
<p>#134279 adding following code in your child theme’s functions.php file:</p>
<pre><code>add_action(&#039;after_setup_theme&#039;, &#039;remove_admin_bar&#039;);

function remove_admin_bar() {
   if ( !current_user_can( &#039;administrator&#039; ) &amp;&amp; !is_admin() ) {
     show_admin_bar( true );
   }
}</code></pre>
<p>2. Do I have to use 3rd party plugin to register and log-in frontend?  Currently registered subscriber user log-in through /wp-login.php , it goes directly to backend pages.</p>
<p>I would like to setup 1. No toolbar on top of page except administrator 2. After new user register (or current user logins), home page should be opened , not backend page 3. </p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-216770</guid>
					<title><![CDATA[Reply To: How to disable the admin bar for all users excerpt the admins?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-216770</link>
					<pubDate>Fri, 27 Feb 2015 19:05:45 +0000</pubDate>
					<dc:creator>mpark0701</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-217131</guid>
					<title><![CDATA[Reply To: How to disable the admin bar for all users excerpt the admins?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-217131</link>
					<pubDate>Sat, 28 Feb 2015 10:16:49 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>I can&#8217;t see toolbar (Check :<a href="http://prntscr.com/6aub9q" rel="nofollow">http://prntscr.com/6aub9q</a>), Would you provide us with screen shot.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-217183</guid>
					<title><![CDATA[Reply To: How to disable the admin bar for all users excerpt the admins?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-217183</link>
					<pubDate>Sat, 28 Feb 2015 13:01:07 +0000</pubDate>
					<dc:creator>mpark0701</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you for reply. Actually, I found better way to solve <strong>How To Remove Links From WordPress Admin Bar</strong> from here :<br />
<a href="http://www.paulund.co.uk/how-to-remove-links-from-wordpress-admin-bar" rel="nofollow">http://www.paulund.co.uk/how-to-remove-links-from-wordpress-admin-bar</a></p>
<p>This article really helps me understand how wp admin toolbar works. I remove all the links from top admin bar except logged-in user link. Admin user can see all the links on the top admin bar. Hopefully it helps anyone who has the same issue.<br />
The functions.php under child-theme works great.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-217551</guid>
					<title><![CDATA[Reply To: How to disable the admin bar for all users excerpt the admins?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-217551</link>
					<pubDate>Sun, 01 Mar 2015 04:46:33 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Cool, nice work 😉 and thanks for sharing!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-724385</guid>
					<title><![CDATA[Reply To: How to disable the admin bar for all users excerpt the admins?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-724385</link>
					<pubDate>Tue, 29 Dec 2015 15:13:27 +0000</pubDate>
					<dc:creator>mthomas91</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, </p>
<p>I&#8217;m struggling here. </p>
<p>I don&#8217;t want the wordpress bar to show at the top when users are logged in. (except for when an admin is logged in)</p>
<p>How can I achieve this? </p>
<p>My url is &#8211; <a href="http://www.freematchedbetting.com" rel="nofollow">http://www.freematchedbetting.com</a> </p>
<p>Many thanks,<br />
Miles</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-724411</guid>
					<title><![CDATA[Reply To: How to disable the admin bar for all users excerpt the admins?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-the-admin-bar-for-all-users-excerpt-the-admins/#post-724411</link>
					<pubDate>Tue, 29 Dec 2015 15:49:42 +0000</pubDate>
					<dc:creator>Thai</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Miles,</p>
<p>Please try adding the following code under functions.php locates in child theme:</p>
<pre><code>add_action(&#039;after_setup_theme&#039;, &#039;remove_admin_bar&#039;);

function remove_admin_bar() {
if (!current_user_can(&#039;administrator&#039;) &amp;&amp; !is_admin()) {
  show_admin_bar(false);
}
}</code></pre>
<p>Hope it helps!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

