<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Topic: HTML within WP3 menu manager description</title>
		<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description</link>
		<description>Support Forum - Topic: HTML within WP3 menu manager description</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 16:38:28 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/html-within-wp3-menu-manager-description" rel="self" type="application/rss+xml" />

		<item>
			<title>Mya on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-62173</link>
			<pubDate>Tue, 26 Jun 2012 05:35:28 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">62173@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Just going to close this thread since this particular issue is now resolved.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-61629</link>
			<pubDate>Fri, 22 Jun 2012 08:23:17 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">61629@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;you made my day, Kriesi!!! It works like a charm! Thank you very, very much, I've tried so much without success, to get this!&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;I have tried to add this possibility of HTML in menu descriptions in CORONA&#60;/strong&#62;, too, but I had no success; could you please help me there, too?&#60;br /&#62;
&#60;a href=&#34;http://www.kriesi.at/support/topic/hmtl-in-main-menu-descriptions&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/support/topic/hmtl-in-main-menu-descriptions&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kriesi on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-61562</link>
			<pubDate>Thu, 21 Jun 2012 22:33:19 +0000</pubDate>
			<dc:creator>Kriesi</dc:creator>
			<guid isPermaLink="false">61562@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;hey!&#60;/p&#62;
&#60;p&#62;line 30 of newscast/framework/classes you need to change from:&#60;/p&#62;
&#60;pre&#62;
	     	$description  = ! empty( $item-&#38;gt;description ) ? '&#38;lt;span&#38;gt;'.esc_attr( $item-&#38;gt;description ).'&#38;lt;/span&#38;gt;' : '';
&#60;/pre&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;pre&#62;
	     	$description  = ! empty( $item-&#38;gt;description ) ? '&#38;lt;span&#38;gt;'. $item-&#38;gt;description .'&#38;lt;/span&#38;gt;' : '';
&#60;/pre&#62;
&#60;p&#62;in addition you need to keep this code somewhere in your functions.php file:&#60;/p&#62;
&#60;pre&#62;
remove_filter('nav_menu_description', 'strip_tags');
add_filter( 'wp_setup_nav_menu_item', 'cus_wp_setup_nav_menu_item' );
function cus_wp_setup_nav_menu_item($menu_item) {
$menu_item-&#38;gt;description = apply_filters( 'nav_menu_description', $menu_item-&#38;gt;post_content );
return $menu_item;
}
&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Mya on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-60643</link>
			<pubDate>Mon, 18 Jun 2012 03:34:31 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">60643@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Well it was worth a shot. :) Kriesi's been flagged to this thread.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-59793</link>
			<pubDate>Tue, 12 Jun 2012 07:14:38 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">59793@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;thanks, Mya, that has no effect at all :-(&#60;/p&#62;
&#60;p&#62;As mentioned above, Kriesi for himself has asked exactly for this feature in a forum, found with Google:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/support/topic/menu-description-html-code?replies=3&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/support/topic/menu-description-html-code?replies=3&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;so perhaps you or Peter could please ask him? Obviously he should know it, I guess :-)&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mya on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-59728</link>
			<pubDate>Mon, 11 Jun 2012 21:48:02 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">59728@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi colorit2,&#60;/p&#62;
&#60;p&#62;According to the link you posted above you will have to place code in header.php. Keep in mind I've never done this so I'm just going by the article you linked above so this may or may not work.&#60;/p&#62;
&#60;p&#62;Open you header.php and replace this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!-- Navigation for Pages starts here --&#38;gt;
			&#38;lt;?php
				wp_nav_menu( array( &#38;#39;menu&#38;#39; =&#38;gt; &#38;#39;First&#38;#39;, &#38;#39;menu_class&#38;#39; =&#38;gt; &#38;#39;nav&#38;#39;, &#38;#39;echo&#38;#39; =&#38;gt; true,
	&#38;#39;fallback_cb&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;before&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;after&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;link_before&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;link_after&#38;#39; =&#38;gt; &#38;#39;&#38;#39;,
	&#38;#39;depth&#38;#39; =&#38;gt; 0, &#38;#39;context&#38;#39; =&#38;gt; &#38;#39;frontend&#38;#39;));

				/* pre wp 3
				if(is_object($k_option[&#38;#39;custom&#38;#39;][&#38;#39;kriesi_menu_pages&#38;#39;]))
								$k_option[&#38;#39;custom&#38;#39;][&#38;#39;kriesi_menu_pages&#38;#39;]-&#38;gt;display(&#38;#39;Menu Manager Pages&#38;#39;,&#38;#39;show_basic&#38;#39;);
				*/
			?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
            wp_nav_menu( array(
                &#38;#39;theme_location&#38;#39; =&#38;gt; &#38;#39;primary&#38;#39;,
                &#38;#39;depth&#38;#39; =&#38;gt; 0,
                &#38;#39;walker&#38;#39; =&#38;gt; new description_walker())
                );
            ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Again, I haven't test this so I'm not sure if it will work or how well it work.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-59674</link>
			<pubDate>Mon, 11 Jun 2012 07:49:35 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">59674@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I found this:&#60;br /&#62;
&#60;a href=&#34;http://wordpress.stackexchange.com/questions/36396/removing-strip-tags-not-working-on-nav-menu-description&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.stackexchange.com/questions/36396/removing-strip-tags-not-working-on-nav-menu-description&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;but unfortunately it sounds very &#34;technical&#34; to me. According to this advice, I've put in my theme's function.php this code, that is mentioned at the bottom of this link:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
remove_filter('nav_menu_description', 'strip_tags');&#60;br /&#62;
add_filter( 'wp_setup_nav_menu_item', 'cus_wp_setup_nav_menu_item' );&#60;br /&#62;
function cus_wp_setup_nav_menu_item($menu_item) {&#60;br /&#62;
                $menu_item-&#38;gt;description = apply_filters( 'nav_menu_description',  $menu_item-&#38;gt;post_content );&#60;br /&#62;
                return $menu_item;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The problem now is, that I can add in the Menue Manager my HTML (for example own line breaks), but now the HTML is shown as characters, see here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://i50.tinypic.com/14vr3es.jpg&#34; rel=&#34;nofollow&#34;&#62;http://i50.tinypic.com/14vr3es.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But I haven't right understood, whether some code needs to be in the header.php, too.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-59518</link>
			<pubDate>Sat, 09 Jun 2012 16:35:23 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">59518@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;that would be great, thanks a lot, Dude!&#60;/p&#62;
&#60;p&#62;There seems to be a good chance, that Kriesi knows that, because I've found a similar question of him here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/support/topic/menu-description-html-code?replies=3&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/support/topic/menu-description-html-code?replies=3&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;As mentioned there in the answer to him, I added this&#60;/p&#62;
&#60;p&#62;&#60;code&#62; remove_filter('nav_menu_description', 'strip_tags');  &#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to functions.php, but this was really a try&#38;amp;error method, because I have no knowledge at all of these things ;-) ... it doesn't work in that way.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-59487</link>
			<pubDate>Sat, 09 Jun 2012 11:38:13 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">59487@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey! &#60;/p&#62;
&#60;p&#62; Newer themes by Kriesi support this feature and basically it should be possible with a few menu handler code adjustments. I'll ask him to look into it. &#60;/p&#62;
&#60;p&#62; Best regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "HTML within WP3 menu manager description"</title>
			<link>http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description#post-58939</link>
			<pubDate>Tue, 05 Jun 2012 17:55:56 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">58939@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I would like to use HTML code within the WP3 menu manager description, but Wordpress ignores this, when saving the menu.&#60;/p&#62;
&#60;p&#62;In detail:&#60;br /&#62;
I need a line break&#60;/p&#62;
&#60;p&#62;&#60;code&#62; Description line one&#38;lt; br /&#38;gt;Description line two&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;within the description text of the menu items.&#60;/p&#62;
&#60;p&#62;Anyone an idea? Thanks in advance!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
