<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: How to add &#60;em&#62;&#60;/em&#62; inside &#60;a&#62; tags of wp_page_menu?</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 08:35:16 +0000</pubDate>

<item>
<title>fltseng on "How to add &#60;em&#62;&#60;/em&#62; inside &#60;a&#62; tags of wp_page_menu?"</title>
<link>http://themeshaper.com/forums/topic/how-to-add-ltemgtltemgt-inside-ltagt-tags-of-wp_page_menu#post-5890</link>
<pubDate>Mon, 17 Aug 2009 23:42:51 +0000</pubDate>
<dc:creator>fltseng</dc:creator>
<guid isPermaLink="false">5890@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Man, it's always always always that I find the answer right after I've posted on a forum after hours of searching.&#60;/p&#62;
&#60;p&#62;For some reason, the code above decided to start working fine, for no apparent reason. I also found another method which is way more wp-native:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function change_menu($args)
{
    $args = array(
		&#38;#39;sort_column&#38;#39; =&#38;gt; &#38;#39;menu_order&#38;#39;,
		&#38;#39;menu_class&#38;#39; =&#38;gt; &#38;#39;menu&#38;#39;,
		&#38;#39;echo&#38;#39; =&#38;gt; true,
		&#38;#39;link_before&#38;#39; =&#38;gt; &#38;#39;&#38;lt;em&#38;gt;&#38;lt;/em&#38;gt;&#38;#39;
	);
    return $args;
}
add_filter(&#38;#39;wp_page_menu_args&#38;#39;, &#38;#39;change_menu&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'm only beginning to understand how this theme and WP really works... it's a cool adventure for sure, but not when you're on a deadline!! :)
&#60;/p&#62;</description>
</item>
<item>
<title>fltseng on "How to add &#60;em&#62;&#60;/em&#62; inside &#60;a&#62; tags of wp_page_menu?"</title>
<link>http://themeshaper.com/forums/topic/how-to-add-ltemgtltemgt-inside-ltagt-tags-of-wp_page_menu#post-5887</link>
<pubDate>Mon, 17 Aug 2009 22:27:59 +0000</pubDate>
<dc:creator>fltseng</dc:creator>
<guid isPermaLink="false">5887@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey all,&#60;/p&#62;
&#60;p&#62;For the menu bar in thematic, I'd like to use the &#34;Single Image Replacement&#34; method as outlined in this tutorial:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.tyssendesign.com.au/articles/css/single-image-replacement-rollovers-with-suckerfish-dropdowns/&#34; rel=&#34;nofollow&#34;&#62;http://www.tyssendesign.com.au/articles/css/single-image-replacement-rollovers-with-suckerfish-dropdowns/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;where the list structure is as following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;ul class=&#38;quot;nav IR&#38;quot;&#38;gt;
  &#38;lt;li class=&#38;quot;link1&#38;quot;&#38;gt;
    &#38;lt;a href=&#38;quot;#&#38;quot;&#38;gt;&#38;lt;em&#38;gt;&#38;lt;/em&#38;gt;Link 1&#38;lt;/a&#38;gt;
  &#38;lt;/li&#38;gt;
  &#38;lt;li class=&#38;quot;link2&#38;quot;&#38;gt;
    &#38;lt;a href=&#38;quot;#&#38;quot;&#38;gt;&#38;lt;em&#38;gt;&#38;lt;/em&#38;gt;Link 2&#38;lt;/a&#38;gt;
  &#38;lt;/li&#38;gt;
  &#38;lt;li class=&#38;quot;link3&#38;quot;&#38;gt;
    &#38;lt;a href=&#38;quot;#&#38;quot;&#38;gt;&#38;lt;em&#38;gt;&#38;lt;/em&#38;gt;Link 3&#38;lt;/a&#38;gt;
  &#38;lt;/li&#38;gt;
&#38;lt;/ul&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;wp_page_menu does everything BUT add the &#38;lt; em&#38;gt;&#38;lt;/em &#38;gt; between the a tags.&#60;/p&#62;
&#60;p&#62;I've tried code that I found in this topic&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/div-id-vs-class&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/div-id-vs-class&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//changing &#38;#39;class&#38;#39; to &#38;#39;id&#38;#39;
function change_menu($menu) {
	$menu = str_replace(&#38;#39;&#38;lt;div class=&#38;quot;&#38;#39;, &#38;#39;&#38;lt;div id=&#38;quot;&#38;#39;, $menu);
	return $menu;
}
add_filter(&#38;#39;wp_page_menu&#38;#39;, &#38;#39;change_menu&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;which seems to work perfectly for that, but not for anything else than that. This is what I tried:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function change_menu($menu) {
	$menu = str_replace(&#38;#39;&#38;lt;/a&#38;gt;&#38;#39;, &#38;#39;&#38;lt;em&#38;gt;&#38;lt;/em&#38;gt;&#38;lt;/a&#38;gt;&#38;#39;, $menu);
	return $menu;
}
add_filter(&#38;#39;wp_page_menu&#38;#39;, &#38;#39;change_menu&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but to no avail. &#60;/p&#62;
&#60;p&#62;Any leader on how to do this would be super-awesome... I've been trying to fix this for hours now and am getting quite desparate :(&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Fei
&#60;/p&#62;</description>
</item>

</channel>
</rss>
