{"id":72170,"date":"2016-06-16T23:55:08","date_gmt":"2016-06-17T03:55:08","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=72170"},"modified":"2016-07-11T04:42:02","modified_gmt":"2016-07-11T08:42:02","slug":"cherryframework4-how-to-add-custom-logo-link","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cherryframework4-how-to-add-custom-logo-link.html","title":{"rendered":"CherryFramework4. How to add custom logo link"},"content":{"rendered":"<p>This tutorial shows how to change <strong>logo link<\/strong> in Cherry Framework 4 templates.<\/p>\r\n<div class=\"video-container\">\r\n\t<iframe src=\"https:\/\/www.youtube.com\/embed\/sfTJaWVZ9F8\"><\/iframe>\r\n<\/div>\r\n<p>By default the WordPress logo is linked to site home page. In order to change this <strong>logo link<\/strong> to custom one in <strong>Cherry Framework 4<\/strong> theme, please, perform the following steps:<\/p>\r\n<ol>\r\n<li><p>Login to <strong>WordPress admin panel<\/strong> and navigate to the <strong>Appearance -> Editor -> themeXXXXX -> functions.php<\/strong> file. Please note that <strong>themeXXXXX<\/strong> stands for the child theme number.<\/p><\/li>\r\n<li>\r\n  <p>Scroll file to the end and add the following line to the bottom of the file in order to change <strong>logo image link<\/strong>:<\/p>\r\n  \r\n  <pre class=\"brush:php\">add_filter( 'cherry_logo_image_format', 'my_change_image_logo_href' );\r\n  \t  function my_change_image_logo_href( $format ) {\r\n      return '&lt;a href=&quot;http:\/\/demolink.org&quot;&gt;&lt;img src=&quot;%2$s&quot; alt=&quot;%3$s&quot;&gt;&lt;\/a&gt;';\r\n      }<\/pre>\r\n      \r\n      <p>Replace the demo link with yours.<\/p>\r\n<\/li>\r\n<li>\r\n    <p>In order to replace the <strong>text logo link<\/strong>, please, add the following code to the bottom of the file:<\/p>\r\n    \r\n    <pre class=\"brush:php\">add_filter( 'cherry_site_link_format', 'my_change_text_logo_href' );\r\n    \tfunction my_change_text_logo_href( $format ) {\r\n        return '&lt;a class=&quot;%1$s&quot; href=&quot;http:\/\/demolink.org&quot; rel=&quot;home&quot;&gt;%3$s&lt;\/a&gt;';\r\n        }<\/pre>\r\n        \r\n      <p>Replace the demo link with yours in the code above.<\/p>\r\n<\/li>\r\n  <li>\r\n    <p>Save changes in the file. Refresh site home page and check the logo link after that.<\/p>\r\n  <\/li>\r\n<\/ol>\r\n<p>In case <strong>Editor<\/strong> is disabled in your admin panel for some reason, please connect to server via <a target=\"_blank\" href=\"\/help\/how-upload-files-server-2.html\">FTP<\/a> or use a <a target=\"_blank\" href=\"\/help\/how-to-manage-filesfolders-permissions-with-total-commander-filezilla-and-cpanel-webhost-manager-whm.html\">cPanel File manager<\/a>. Edit the <strong>functions.php<\/strong> file from the <strong>wp-content\/themes\/themeXXXXX<\/strong> folder on server. Please note that <strong>themeXXXXX<\/strong> stands for the child theme number.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=sfTJaWVZ9F8?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework4. How to add custom logo link<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to change logo link in Cherry Framework 4 templates.<\/p>\n","protected":false},"author":65,"featured_media":72171,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2017,728],"tags":[2012,2311,525],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/72170"}],"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\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=72170"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/72170\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/72171"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=72170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=72170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=72170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}