Luke_Urtnowski Posted November 12, 2014 Share Posted November 12, 2014 my sites header looks like <a id="header_logo" href="http://www.swedishsweetsandimports.com/"> <img class="logo" src="http://swedishsweetsandimports.com/img/logo-1.jpg?1398534044"/> </a> how do I change the href snd the src to add an s after the http parts? Link to comment Share on other sites More sharing options...
shacker Posted November 17, 2014 Share Posted November 17, 2014 you cna edit the header.tpl of you template for this, but you force ssl in home page with this link Link to comment Share on other sites More sharing options...
vekia Posted November 17, 2014 Share Posted November 17, 2014 my sites header looks like <a id="header_logo" href="http://www.swedishsweetsandimports.com/"> <img class="logo" src="http://swedishsweetsandimports.com/img/logo-1.jpg?1398534044"/> </a> how do I change the href snd the src to add an s after the http parts? you want to add ssl connection even after someone will load page via insecured protocoL? Link to comment Share on other sites More sharing options...
Luke_Urtnowski Posted November 20, 2014 Author Share Posted November 20, 2014 went to edit the header.tpl file and saw this, src="{$logo_url}" where do I go to change the $logo_url? Link to comment Share on other sites More sharing options...
shacker Posted November 21, 2014 Share Posted November 21, 2014 the logo url is setted to ssl automatically when you go to secure page, you can force ssl in all pages with preferences options Link to comment Share on other sites More sharing options...
Luke_Urtnowski Posted November 21, 2014 Author Share Posted November 21, 2014 I think I need to explain the problem better. when i go to, https://swedishsweetsandimports.com/ and view the source The img tag in the header link (underlined) needs to start with https, thats what im trying to change and heres where I* tried to force SSL in all pages How can I make the change? Link to comment Share on other sites More sharing options...
vekia Posted November 22, 2014 Share Posted November 22, 2014 check this github commit: https://github.com/PrestaShop/PrestaShop/commit/640100f10f789129dc50a0d68e3e82cedf85aad3 Link to comment Share on other sites More sharing options...
Luke_Urtnowski Posted November 26, 2014 Author Share Posted November 26, 2014 what is that? Link to comment Share on other sites More sharing options...
vekia Posted November 27, 2014 Share Posted November 27, 2014 this is a github commit, it shows what you have to change file: classes/Link.php line 410 change: return Tools::getShopProtocol().Tools::getMediaServer($filepath).$filepath; to: return $this->protocol_content.Tools::getMediaServer($filepath).$filepath; Link to comment Share on other sites More sharing options...
Luke_Urtnowski Posted November 29, 2014 Author Share Posted November 29, 2014 thanks Link to comment Share on other sites More sharing options...
Recommended Posts