Jump to content

How to edit $logo_url


Recommended Posts

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. 

  • Like 1
Link to comment
Share on other sites

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

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

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

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

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

 

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

  • Like 1
Link to comment
Share on other sites

  • 9 months later...

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

×
×
  • Create New...