{"id":75445,"date":"2016-08-31T10:31:49","date_gmt":"2016-08-31T14:31:49","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=75445"},"modified":"2017-08-09T06:00:34","modified_gmt":"2017-08-09T10:00:34","slug":"cherryframework-3-x-add-shortcode-headerfooter","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cherryframework-3-x-add-shortcode-headerfooter.html","title":{"rendered":"CherryFramework 3.x. How to add a shortcode to Header\/Footer"},"content":{"rendered":"<p>The following tutorial will show you how to add a <em>shortcode<\/em> to header or footer parts of <em>Cherry Framework 3.x.<\/em> based templates.<\/p>\r\n <div class=\"video-container\">\r\n\t<iframe src=\"https:\/\/www.youtube.com\/embed\/gI-9YfhjA08\"><\/iframe>\r\n<\/div>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<p>The <em>footer<\/em> and <em>header<\/em> parts are usually referred to as fixed or static since they are limited in modifiable content areas. With the help of this guide, you will be able to add <em>posts, carousel, maps<\/em> shortcodes, just to name a few, to those areas thus making them dynamic.<\/p>\r\n\r\n<ol>\r\n    <li><p>Log into your WordPress dashboard;<\/p><\/li>\r\n\t<li><p>Navigate to <strong>Appearance->Editor<\/strong> section;<\/p><\/li>\r\n    <li><p>On the right hand side, find <strong>wrapper-header.php<\/strong> or <strong>wrapper-footer.php<\/strong> file, specifically the one you need to edit;<\/p>\r\n\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter-300x170.jpg\" alt=\"cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter\" width=\"300\" height=\"170\" class=\"alignnone size-medium wp-image-75447\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter-300x170.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter-768x435.jpg 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter-1024x580.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter.jpg 1279w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\t\r\n\t<\/li>\r\n    <li>\r\n\t\t<p>Add the following <em>.php<\/em> code:<\/p>\r\n\t\t<pre class=\"brush:php\">&nbsp;&lt;?php echo do_shortcode('');<\/pre>\r\n\t\t<\/li>\r\n\t\t<li><p>Put your shortcode in between the <em>Single Quotes<\/em> i.e., (&#8216;shortcode_here&#8217;);<\/p>\r\n\t\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter1-300x169.jpg\" alt=\"cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter1\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-75448\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter1-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter1-768x433.jpg 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter1-1024x577.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/cherryframework_3.x._how_to_add_shortcode_to_HeaderFooter1.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\t\t<\/li>\r\n\t\t<li><p>Update the file and open your website to see the changes applied.<\/p><\/li>\r\n<\/ol>\r\n<p>Opt for highly professional <a href=\"https:\/\/www.templatemonster.com\/wordpress-themes.php\"target=\"_blank\"title=\"WordPress Themes\">WordPress themes<\/a> here!<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=gI-9YfhjA08?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 3.x. How to add shortcode to Header\/Footer<\/a>","protected":false},"excerpt":{"rendered":"<p>The following tutorial will show you how to add a <em>shortcode<\/em> to header or footer parts of <em>Cherry Framework 3.x.<\/em> based templates.<\/p>\n","protected":false},"author":111,"featured_media":75449,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[2097,657,627,911,1415],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/75445"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/111"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=75445"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/75445\/revisions"}],"predecessor-version":[{"id":82620,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/75445\/revisions\/82620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/75449"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=75445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=75445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=75445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}