<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Modify Custom Post Type Icons	</title>
	<atom:link href="https://www.shibashake.com/wp/modify-custom-post-type-icons/feed" rel="self" type="application/rss+xml" />
	<link>https://shibashake.com/wp/modify-custom-post-type-icons</link>
	<description>Adventures in WordPress</description>
	<lastBuildDate>Wed, 02 Apr 2014 09:36:42 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9</generator>
	<item>
		<title>
		By: Rahul		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-95779</link>

		<dc:creator><![CDATA[Rahul]]></dc:creator>
		<pubDate>Wed, 02 Apr 2014 09:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-95779</guid>

					<description><![CDATA[hello, i am unable to mention the address of image that is to be uploaded. Can you suggest an alternate in place of “SHIBA_PLUGIN_URL&quot; ???
It will be helpful...Thanks]]></description>
			<content:encoded><![CDATA[<p>hello, i am unable to mention the address of image that is to be uploaded. Can you suggest an alternate in place of “SHIBA_PLUGIN_URL&#8221; ???<br />
It will be helpful&#8230;Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Stubby		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-78754</link>

		<dc:creator><![CDATA[Stubby]]></dc:creator>
		<pubDate>Mon, 19 Aug 2013 13:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-78754</guid>

					<description><![CDATA[You can reduce the overhead on changing your 32x32 Icon on custom post type pages by removing the PHP logic and handling this with CSS directly.  

#icon-edit.icon32-posts-gallerires {
  background: url(/path/to/your/backgound/image.png);
}

This way you can enqueue a single CSS file to handle all your admin CSS.  You&#039;ll stop using obtrusive CSS and reduce the amount of server-side logic required to handle what should really be a small lift.

I know this is an old post but I thought I&#039;d mention it in case someone else rolls around here looking for this information.]]></description>
			<content:encoded><![CDATA[<p>You can reduce the overhead on changing your 32&#215;32 Icon on custom post type pages by removing the PHP logic and handling this with CSS directly.  </p>
<p>#icon-edit.icon32-posts-gallerires {<br />
  background: url(/path/to/your/backgound/image.png);<br />
}</p>
<p>This way you can enqueue a single CSS file to handle all your admin CSS.  You&#8217;ll stop using obtrusive CSS and reduce the amount of server-side logic required to handle what should really be a small lift.</p>
<p>I know this is an old post but I thought I&#8217;d mention it in case someone else rolls around here looking for this information.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Umang		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-58491</link>

		<dc:creator><![CDATA[Umang]]></dc:creator>
		<pubDate>Fri, 22 Feb 2013 06:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-58491</guid>

					<description><![CDATA[Awesome!! and simple]]></description>
			<content:encoded><![CDATA[<p>Awesome!! and simple</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kaiser		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-10735</link>

		<dc:creator><![CDATA[Kaiser]]></dc:creator>
		<pubDate>Tue, 17 Jan 2012 01:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-10735</guid>

					<description><![CDATA[There&#039;s a &lt;em&gt;much&lt;/em&gt; easier way:

&lt;pre&gt;
// Echo directly
screen_icon();
// Use later
$icon = get_screen_icon();
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a <em>much</em> easier way:</p>
<pre>
// Echo directly
screen_icon();
// Use later
$icon = get_screen_icon();
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Barrett Golding		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-8402</link>

		<dc:creator><![CDATA[Barrett Golding]]></dc:creator>
		<pubDate>Fri, 18 Nov 2011 15:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-8402</guid>

					<description><![CDATA[Thanks for this tut. With collapsed admin menus the default in WP3.3, custom icons for CPTs become more important (to replace all those push-pins). For multiple CPTs, rather than list all the styles in functions.php, in might be better to call a stylesheet:

&lt;code&gt;
function load_custom_wp_admin_style(){
        wp_register_style( &#039;custom_wp_admin_css&#039;, get_bloginfo( &#039;stylesheet_directory&#039; ) . &#039;/style-admin.css&#039;, false, &#039;1.0.0&#039; );
        wp_enqueue_style( &#039;custom_wp_admin_css&#039; );
}
add_action( &#039;admin_enqueue_scripts&#039;, &#039;load_custom_wp_admin_style&#039; );
&lt;/code&gt;

this stylesheet can serve double-duty for those using TinyMCE&#039;s &quot;Styles&quot; select-list:

&lt;code&gt;add_editor_style( &#039;style-admin.css&#039; );&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>Thanks for this tut. With collapsed admin menus the default in WP3.3, custom icons for CPTs become more important (to replace all those push-pins). For multiple CPTs, rather than list all the styles in functions.php, in might be better to call a stylesheet:</p>
<p><code><br />
function load_custom_wp_admin_style(){<br />
        wp_register_style( 'custom_wp_admin_css', get_bloginfo( 'stylesheet_directory' ) . '/style-admin.css', false, '1.0.0' );<br />
        wp_enqueue_style( 'custom_wp_admin_css' );<br />
}<br />
add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );<br />
</code></p>
<p>this stylesheet can serve double-duty for those using TinyMCE&#8217;s &#8220;Styles&#8221; select-list:</p>
<p><code>add_editor_style( 'style-admin.css' );</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ShibaShake		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-3264</link>

		<dc:creator><![CDATA[ShibaShake]]></dc:creator>
		<pubDate>Mon, 21 Feb 2011 05:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-3264</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-3261&quot;&gt;Lukasz&lt;/a&gt;.

define( &#039;SHIBA_PLUGIN_URL&#039;, WP_PLUGIN_URL . &#039;/my-plugin-directory&#039; );

http://codex.wordpress.org/Determining_Plugin_and_Content_Directories]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-3261">Lukasz</a>.</p>
<p>define( &#8216;SHIBA_PLUGIN_URL&#8217;, WP_PLUGIN_URL . &#8216;/my-plugin-directory&#8217; );</p>
<p><a href="http://codex.wordpress.org/Determining_Plugin_and_Content_Directories" rel="nofollow ugc">http://codex.wordpress.org/Determining_Plugin_and_Content_Directories</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Lukasz		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-3261</link>

		<dc:creator><![CDATA[Lukasz]]></dc:creator>
		<pubDate>Sun, 20 Feb 2011 14:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-3261</guid>

					<description><![CDATA[where are you defining &quot;SHIBA_PLUGIN_URL&quot; and can you do this with bloginfo template_url?]]></description>
			<content:encoded><![CDATA[<p>where are you defining &#8220;SHIBA_PLUGIN_URL&#8221; and can you do this with bloginfo template_url?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ShibaShake		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-1761</link>

		<dc:creator><![CDATA[ShibaShake]]></dc:creator>
		<pubDate>Wed, 07 Jul 2010 18:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-1761</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-1760&quot;&gt;Joss&lt;/a&gt;.

Hi Joss -
Thanks for pointing out the error. It is now fixed. 

Thanks for being a pain ;) and please let me know if you spot more errors.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-1760">Joss</a>.</p>
<p>Hi Joss &#8211;<br />
Thanks for pointing out the error. It is now fixed. </p>
<p>Thanks for being a pain 😉 and please let me know if you spot more errors.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joss		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-1760</link>

		<dc:creator><![CDATA[Joss]]></dc:creator>
		<pubDate>Wed, 07 Jul 2010 13:04:43 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-1760</guid>

					<description><![CDATA[Also, sorry to be a pain, but you&#039;ve got some screwy PHP in your example!

&lt;code&gt;
function plugin_header() {
	?&#062;
	global $post_type;
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>Also, sorry to be a pain, but you&#8217;ve got some screwy PHP in your example!</p>
<p><code><br />
function plugin_header() {<br />
	?&gt;<br />
	global $post_type;<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joss		</title>
		<link>https://shibashake.com/wp/modify-custom-post-type-icons/comment-page-1#comment-1759</link>

		<dc:creator><![CDATA[Joss]]></dc:creator>
		<pubDate>Wed, 07 Jul 2010 13:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-1759</guid>

					<description><![CDATA[Great article - for anybody interested in doing a big of Firebugging, it is possible to duplicate the WordPress style of menu-hover icon with pure css.

Investigate how WP handles it - if you&#039;re adding a &#039;podcast&#039; event type, you&#039;ll get a menu with a css class of menu-icon-podcast. Just use CSS to target that, and its hover state, and you&#039;re set.]]></description>
			<content:encoded><![CDATA[<p>Great article &#8211; for anybody interested in doing a big of Firebugging, it is possible to duplicate the WordPress style of menu-hover icon with pure css.</p>
<p>Investigate how WP handles it &#8211; if you&#8217;re adding a &#8216;podcast&#8217; event type, you&#8217;ll get a menu with a css class of menu-icon-podcast. Just use CSS to target that, and its hover state, and you&#8217;re set.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 0/73 objects using disk
Page Caching using disk: enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: cdn.shibashake.com
Lazy Loading (feed)
Minified using disk
Database Caching using disk (Request-wide modification query)

Served from: www.shibashake.com @ 2024-12-17 06:19:54 by W3 Total Cache
-->