chenh Posted December 30, 2013 Share Posted December 30, 2013 Hi, how do I edit $logo_url? I need to put the new path of my logo. Link to comment Share on other sites More sharing options...
Dh42 Posted December 30, 2013 Share Posted December 30, 2013 You basically have three options. You can upload a logo from the backoffice and then you don't have to edit it. You can set an absolute path in your template, or you can search the frontcontroller.php for the section that sets the variable. 1 Link to comment Share on other sites More sharing options...
vekia Posted December 30, 2013 Share Posted December 30, 2013 well, instead of core change, if i were you I will use method related to template only, in header.tpl file instead of variable just use any other path you want. Link to comment Share on other sites More sharing options...
chenh Posted December 30, 2013 Author Share Posted December 30, 2013 I'm going to edit it with the frontcontroller then. The thing is that I need the logo to be transparent, so I can not replace the logo.jpg with the new logo.png that I made.(If there is a way, then I don't know.) The actual logo has that white background on it, making everything look bad. And Vekia, I had thought of doing it to the header.tpl but am not sure which to change: <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> I saw that logo url, so I got the idea from it. Link to comment Share on other sites More sharing options...
chenh Posted December 30, 2013 Author Share Posted December 30, 2013 well, instead of core change, if i were you I will use method related to template only, in header.tpl file instead of variable just use any other path you want. It didn't work, I try chaning the logo_url to the path of my logo in the public html, and all I get is a grey square with a question mark. It also didn't work with the base dir. Link to comment Share on other sites More sharing options...
vekia Posted December 30, 2013 Share Posted December 30, 2013 can you show what code you've got now? and it is possible to share url to your website? it will be much easier to understand the problem thanks in advance Link to comment Share on other sites More sharing options...
chenh Posted December 31, 2013 Author Share Posted December 31, 2013 can you show what code you've got now? and it is possible to share url to your website? it will be much easier to understand the problem thanks in advance Hi, I change it to <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="home/************/public_html/img" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> At first the logo was in the theme's img folder. Can I have your IP? The website is in mainteinance right now, I'm not taking orders at this moment. My website is www.tiempoerotico.com Link to comment Share on other sites More sharing options...
vekia Posted December 31, 2013 Share Posted December 31, 2013 ok i see where the problem is. if you want to use own path to logo, you don't have to use path like /home/YOURACCOUNT/public_html/img it will not work, you have to use /public_html/ directory as a root, so instead of home/************/public_html/img use /img/logoname.png Link to comment Share on other sites More sharing options...
Sharak Posted December 31, 2013 Share Posted December 31, 2013 You don't have to make any changes in the code to have logo transparent Just go to Preferences -> Images in your admin and enable saving images as .png if source is also .png, then upload your logo. Link to comment Share on other sites More sharing options...
vekia Posted December 31, 2013 Share Posted December 31, 2013 remember that after this change all your images for catalog (categories, manufacurers, products etc.) will be converted to png too, if you don't have enough free space it might be a problem (png files are usually a bit larger than simple jpg). it's better to select "Use PNG only if the base image is in PNG format." option Link to comment Share on other sites More sharing options...
Sharak Posted December 31, 2013 Share Posted December 31, 2013 ok i see where the problem is. if you want to use own path to logo, you don't have to use path like /home/YOURACCOUNT/public_html/img it will not work, you have to use /public_html/ directory as a root, so instead of home/************/public_html/img use /img/logoname.png This might not work with friendly url enabled or if shop is located in subfolder i.e. domain.com/shop/ It's better to use <img src="{$img_dir}logoname.png" to load logo image from /themes/your_theme/img/ folder 1 Link to comment Share on other sites More sharing options...
chenh Posted January 1, 2014 Author Share Posted January 1, 2014 Thank you! It worked! Happy new year to all of you! Link to comment Share on other sites More sharing options...
Sharak Posted January 1, 2014 Share Posted January 1, 2014 If you make changes in header.tpl then remember you still have to set your logo in admin Preferences -> Themes because it's used in other places i.e. mails, mobile theme. Therefore I think THIS is much better solution. Link to comment Share on other sites More sharing options...
Antonio1981 Posted October 30, 2014 Share Posted October 30, 2014 Hi, i'm using PS 1.6 for my website; for SEO reasons I want to change the file of my logo (from my-site-145562114.jpg to mysite-keyword-keyword.png), but if I change src in header.tpl it works only for my home-page, not for products pages. Any solution? Thanks (and sorry for my english) Link to comment Share on other sites More sharing options...
Recommended Posts