{"id":8273924,"date":"2016-10-11T02:17:24","date_gmt":"2016-10-11T02:17:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/menu-shortcode-2\/"},"modified":"2016-10-11T02:17:24","modified_gmt":"2016-10-11T02:17:24","slug":"menu-shortcode-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/menu-shortcode-2\/","title":{"rendered":"Menu Shortcode"},"content":{"rendered":"<p>I am using a shortcode I created to pull my main nav menu into an area on my testimonials page. It seems to work, except it strips out all of the styling. How can I fix this?<\/p>\n<p>Here is the page:<br \/>\nhttp:\/\/creatingpositivefutures.com\/testimonials-new\/<\/p>\n<p>Here is the code I am using:<\/p>\n<pre><code>function print_menu_shortcode($atts, $content = null) {\n    extract(shortcode_atts(array( &#039;name&#039; =&gt; null, ), $atts));\n    return wp_nav_menu( array( &#039;menu&#039; =&gt; $name, &#039;echo&#039; =&gt; false ) );\n}\nadd_shortcode(&#039;menu&#039;, &#039;print_menu_shortcode&#039;);<\/code><\/pre>\n<p>Shortcode is: <code>[menu name=&quot;main&quot;]<\/code><\/p>\n","protected":false},"template":"","class_list":["post-8273924","topic","type-topic","status-publish","hentry","topic-tag-menu","topic-tag-shortcode"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8273924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8273924\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8273924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}