{"id":44036,"date":"2015-03-03T07:43:29","date_gmt":"2015-03-03T12:43:29","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=44036"},"modified":"2017-08-01T06:24:09","modified_gmt":"2017-08-01T10:24:09","slug":"joomla-3-x-how-to-assign-a-custom-link-for-logo","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/joomla-3-x-how-to-assign-a-custom-link-for-logo.html","title":{"rendered":"Joomla 3.x. How to assign a custom link for logo"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how to assign a custom link for logo in <strong>Joomla 3.x<\/strong> template.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=3HCKUMhY3TA?width=1280&amp;height=720\" rel=\"prettyPhoto\">Joomla 3.x. How to assign a custom link for logo<\/a><\/p>\r\n<p>As the default setting, the link for logo is Home page. In this tutorial we will change this link to a custom link.<\/p>\r\n<ol>\r\n<li>\r\n<p>Log into <strong>FTP\/File Manager<\/strong>, navigate to <strong>templates<\/strong>\/<strong>themeXXXX<\/strong>, open <strong>index.php<\/strong> file to edit:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-1-300x177.png\" alt=\"Joomla_3.x_How_to_assign_a_custom_link_for_logo-1\" width=\"300\" height=\"177\" class=\"aligncenter size-medium wp-image-44037\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-1-300x177.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-1-150x88.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-1.png 951w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n <\/li>\r\n<li>\r\n<p>In <strong>index.php<\/strong> file search for the word <strong>&#8216;logo&#8217;<\/strong> and look for these codes:<\/p>\r\n<pre class=\"brush:php\">\r\n  <!-- Logo -->\r\n            &lt;div id=\"logo\" class=\"span&lt;?php echo $this-&gt;params-&gt;get('logoBlockWidth'); ?&gt;\"&gt;\r\n                &lt;a href=\"&lt;?php echo JURI::base(); ?&gt;\"&gt;\r\n                &lt;?php if(isset($logo)) : ?&gt;\r\n\t\t\t\t\t&lt;img src=\"&lt;?php echo $logo;?&gt;\" alt=\"&lt;?php echo $sitename; ?&gt;\"&gt;\r\n\t\t\t\t\t&lt;h1&gt;&lt;?php echo $sitename; ?&gt;&lt;\/h1&gt;\r\n                &lt;?php else : ?&gt;&lt;h1&gt;&lt;?php echo wrap_chars_with_span($sitename); ?&gt;&lt;\/h1&gt;&lt;?php endif; ?&gt;\r\n\t\t\t\t\t&lt;span class=\"hightlight\"&gt;&lt;\/span&gt;\r\n                &lt;\/a&gt;\r\n            &lt;\/div&gt; \r\n\t<\/pre>\r\n<p> from: <\/p>\r\n<pre class=\"brush:php\">\r\n\t&lt;a href=\"&lt;?php echo JURI::base(); ?&gt;\"&gt;\r\n\t<\/pre>\r\n<p>replace: <\/p>\r\n<pre class=\"brush:php\">\r\n\t&lt;?php echo JURI::base(); ?&gt;\r\n\t<\/pre>\r\n<p>\r\n\twith the new link for logo, for example: http:\/\/www.demolink.org <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-2-300x49.png\" alt=\"Joomla_3.x_How_to_assign_a_custom_link_for_logo-2\" width=\"300\" height=\"49\" class=\"aligncenter size-medium wp-image-44038\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-2-300x49.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-2-150x24.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-2.png 971w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Click <strong>Save Changes <\/strong> and refresh your site, click on the logo to see that it links to the new http:\/\/www.demolink.org link now. <\/p>\r\n<\/li>\r\n<\/ol>\r\n<p> You can also open <strong>index.php<\/strong> file via the <strong> Admin Panel <\/strong>: <\/p>\r\n<ol>\r\n<li>\r\n<p>In your <strong>Joomla Admin panel<\/strong> go to <strong>Extensions<\/strong> -> <strong>Template Manager<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-3-300x120.png\" alt=\"Joomla_3.x_How_to_assign_a_custom_link_for_logo-3\" width=\"300\" height=\"120\" class=\"aligncenter size-medium wp-image-44039\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-3-300x120.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-3-150x60.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-3-1024x412.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-3.png 1260w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Select <strong>Templates<\/strong>, then <strong>ThemeXXXX<\/strong> (the activated theme): <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-4-300x194.png\" alt=\"Joomla_3.x_How_to_assign_a_custom_link_for_logo-4\" width=\"300\" height=\"194\" class=\"aligncenter size-medium wp-image-44040\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-4-300x194.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-4-150x97.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-4-1024x664.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-4.png 1195w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>index.php<\/strong> file from the left hand side list and start editing: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-5-300x152.png\" alt=\"Joomla_3.x_How_to_assign_a_custom_link_for_logo-5\" width=\"300\" height=\"152\" class=\"aligncenter size-medium wp-image-44041\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-5-300x152.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-5-150x76.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-5-1024x520.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/Joomla_3.x_How_to_assign_a_custom_link_for_logo-5.png 1272w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p class=\"attention\">Note: If <strong>index.php<\/strong> file can not be opened and edited, please check this tutorial: <a href=\"\/help\/joomla-3-x-troubleshooter-css-files-are-missing-in-template-manager.html\" target=\"_blank\">Joomla 3.x. Troubleshooter. CSS files are missing in template manager<\/a>.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=3HCKUMhY3TA?width=1280&amp;height=720\" rel=\"prettyPhoto\">Joomla 3.x. How to assign a custom link for logo<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to assign a custom link for logo in Joomla 3.x template.<\/p>\n","protected":false},"author":69,"featured_media":44043,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[724],"tags":[483,521,525,1056],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/44036"}],"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\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=44036"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/44036\/revisions"}],"predecessor-version":[{"id":82433,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/44036\/revisions\/82433"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/44043"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=44036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=44036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=44036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}