<?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: Wordpress Adding &#8220;span&#8221; Tags To Page Or Category Menu Navigation</title> <atom:link href="http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/feed/" rel="self" type="application/rss+xml" /><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/</link> <description>Wordpress Social News and Bookmarking</description> <lastBuildDate>Sat, 13 Feb 2010 01:37:07 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: paolo</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-515</link> <dc:creator>paolo</dc:creator> <pubDate>Sat, 13 Feb 2010 01:37:07 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-515</guid> <description>cannot see the complete code :(</description> <content:encoded><![CDATA[<p>cannot see the complete code <img
src='http://wpscoop.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: ciphasublime</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-513</link> <dc:creator>ciphasublime</dc:creator> <pubDate>Fri, 05 Feb 2010 16:01:53 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-513</guid> <description>It works fine. Thanks Alot. very useful when employing tab rollovers from
http://www.dynamicdrive.com/style/csslibrary/category/C1/Thanks again</description> <content:encoded><![CDATA[<p>It works fine. Thanks Alot. very useful when employing tab rollovers from<br
/> <a
href="http://www.dynamicdrive.com/style/csslibrary/category/C1/" rel="nofollow">http://www.dynamicdrive.com/style/csslibrary/category/C1/</a></p><p>Thanks again</p> ]]></content:encoded> </item> <item><title>By: Shelly</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-486</link> <dc:creator>Shelly</dc:creator> <pubDate>Thu, 27 Aug 2009 23:53:51 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-486</guid> <description>Well, yeah :) That, I knew.  but the idea of &quot;before_link&quot; and &quot;after_link&quot; was just too awesome.  it would be great f they had it, but they don&#039;t.  So I have to stick with other solutions like this one (I&#039;m currently using the preg_replace thing - but &quot;before&quot; and &quot;after&quot; would be so much simpler, because regex is my enemy LOL)</description> <content:encoded><![CDATA[<p>Well, yeah <img
src='http://wpscoop.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> That, I knew.  but the idea of &#8220;before_link&#8221; and &#8220;after_link&#8221; was just too awesome.  it would be great f they had it, but they don&#8217;t.  So I have to stick with other solutions like this one (I&#8217;m currently using the preg_replace thing &#8211; but &#8220;before&#8221; and &#8220;after&#8221; would be so much simpler, because regex is my enemy LOL)</p> ]]></content:encoded> </item> <item><title>By: Stuart</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-485</link> <dc:creator>Stuart</dc:creator> <pubDate>Thu, 27 Aug 2009 07:46:44 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-485</guid> <description>Hi Shelly,You could try this for categories :)&lt;pre&gt;
&lt; ?php
$categories = get_categories();
foreach ($categories as $cat) {
echo &#039;&lt;li&gt;&lt;a href=&quot;&#039;.get_option(&#039;home&#039;).&#039;/&#039;.get_option(&#039;category_base&#039;).&#039;/&#039;.$cat- rel=&quot;nofollow&quot;&gt;category_nicename.&#039;/&quot;&gt;&lt;span&gt;&#039;.$cat-&gt;cat_name.&#039;&lt;/span&gt;&lt;/a&gt;&#039;;
}
?&gt;
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>Hi Shelly,</p><p>You could try this for categories <img
src='http://wpscoop.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><pre>
< ?php
  $categories = get_categories();
  foreach ($categories as $cat) {
  echo '
<li><a href="'.get_option('home').'/'.get_option('category_base').'/'.$cat- rel="nofollow">category_nicename.'/"><span>'.$cat->cat_name.'</span></a>';
  }
?>
</pre>]]></content:encoded> </item> <item><title>By: Shelly</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-484</link> <dc:creator>Shelly</dc:creator> <pubDate>Wed, 26 Aug 2009 23:52:34 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-484</guid> <description>Nope - doesn&#039;t work for wp_list_categories.  No such parameters for that tag - it has no effect. But if you ever figure out how to do it, I&#039;d love to know!</description> <content:encoded><![CDATA[<p>Nope &#8211; doesn&#8217;t work for wp_list_categories.  No such parameters for that tag &#8211; it has no effect. But if you ever figure out how to do it, I&#8217;d love to know!</p> ]]></content:encoded> </item> <item><title>By: Allan</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-393</link> <dc:creator>Allan</dc:creator> <pubDate>Thu, 20 Aug 2009 07:05:34 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-393</guid> <description>How do you add the extra arguments  to the pages widget in a side bar where I am also using other widgets (dynamic sidebar). Not sure how I can pass in the link before and link after properties</description> <content:encoded><![CDATA[<p>How do you add the extra arguments  to the pages widget in a side bar where I am also using other widgets (dynamic sidebar). Not sure how I can pass in the link before and link after properties</p> ]]></content:encoded> </item> <item><title>By: bbrian017</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-85</link> <dc:creator>bbrian017</dc:creator> <pubDate>Tue, 28 Jul 2009 03:18:46 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-85</guid> <description>wow amazing you took to time to explain it to me as I seriously would never had known.Thanks for the tutorial!</description> <content:encoded><![CDATA[<p>wow amazing you took to time to explain it to me as I seriously would never had known.</p><p>Thanks for the tutorial!</p> ]]></content:encoded> </item> <item><title>By: Stuart</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-81</link> <dc:creator>Stuart</dc:creator> <pubDate>Mon, 27 Jul 2009 16:59:38 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-81</guid> <description>Hi Brian,The reason behind this code snippet is for people wanting to theme their wordpress menu/category navigation buttons with background images and css. It allows the designer to have a left image tab and a right image tab that together creates the single button image around each menu item. It also allows variable length of button as the link titled Home is much shorter than the link titled Register on your site.With wordpress retrieving and printing out it&#039;s menus through PHP the code we posted above will wrap your menu title element between span tags before printing out the menu items to HTML which can then be styled with CSS.&lt;pre language=&quot;html&quot;&gt;
#menu li a {
background: url(images/nav-btn.gif) no-repeat left;color:#fff;text-decoration:none;padding:0 0 0 10px}
#menu li a span {
background: url(images/nav-btn-left.gif) no-repeat right;display:inline-block;height:30px;padding:0 10px 0 0;
}
&lt;/pre&gt;This particular &quot;span&quot; technique is widely used in many designs across the web, our little php snippet helps you acheive it in wordpress. Hope that explains things a little better for you brian ;)</description> <content:encoded><![CDATA[<p>Hi Brian,</p><p>The reason behind this code snippet is for people wanting to theme their wordpress menu/category navigation buttons with background images and css. It allows the designer to have a left image tab and a right image tab that together creates the single button image around each menu item. It also allows variable length of button as the link titled Home is much shorter than the link titled Register on your site.</p><p>With wordpress retrieving and printing out it&#8217;s menus through PHP the code we posted above will wrap your menu title element between span tags before printing out the menu items to HTML which can then be styled with CSS.</p><pre language="html">
#menu li a {
      background: url(images/nav-btn.gif) no-repeat left;color:#fff;text-decoration:none;padding:0 0 0 10px

}
#menu li a span {
      background: url(images/nav-btn-left.gif) no-repeat right;display:inline-block;height:30px;padding:0 10px 0 0;
}
</pre><p>This particular &#8220;span&#8221; technique is widely used in many designs across the web, our little php snippet helps you acheive it in wordpress. Hope that explains things a little better for you brian <img
src='http://wpscoop.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: bbrian017</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-80</link> <dc:creator>bbrian017</dc:creator> <pubDate>Mon, 27 Jul 2009 15:28:02 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-80</guid> <description>I don’t really understand the purpose of doing this.</description> <content:encoded><![CDATA[<p>I don’t really understand the purpose of doing this.</p> ]]></content:encoded> </item> <item><title>By: WPscoop</title><link>http://wpscoop.com/blog/wordpress-adding-span-tags-to-page-or-category-menu-navigation-25072009/comment-page-1/#comment-75</link> <dc:creator>WPscoop</dc:creator> <pubDate>Sat, 25 Jul 2009 20:29:22 +0000</pubDate> <guid
isPermaLink="false">http://wpscoop.com/blog/?p=226#comment-75</guid> <description>&lt;strong&gt;WPscoop...&lt;/strong&gt;Trackback WPscoop! http://wpscoop.com/Wordpress-Tutorials/Wordpress-Adding-span-Tags-To-Page-Or-Category-Menu-Navigation</description> <content:encoded><![CDATA[<p><strong>WPscoop&#8230;</strong></p><p>Trackback WPscoop! <a
href="http://wpscoop.com/Wordpress-Tutorials/Wordpress-Adding-span-Tags-To-Page-Or-Category-Menu-Navigation" rel="nofollow">http://wpscoop.com/Wordpress-Tutorials/Wordpress-Adding-span-Tags-To-Page-Or-Category-Menu-Navigation</a></p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 8/20 queries in 0.011 seconds using disk

Served from: dd24028.kasserver.com @ 2012-02-09 17:19:32 -->
