Jump to content

[solved] Is there a way to hide the home page logo?


Recommended Posts

Hi,

 

Hmmm. Would I add "body#index # #header_logo{display:none !important;}" to home page be index.tpl or index.php?

 

The css alone made the logo go away on all pages.

 

I have a store banner and the logo with it on the home page was a little much. :-)

 

Thanks!

Link to comment
Share on other sites

omg sorry its mistake thanks for identifying this code will only work if this exits in header.tpl

below the end of close head tag

<body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column{/if} {if $hide_right_column}hide-right-column{/if} {if $content_only} content_only {/if}">

Link to comment
Share on other sites

other way .

open header.tpl and find <img> logo image code. add {if $page_name != "index"}

replace like this.

{if $page_name != "index"}
<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} />
{/if}

  • Like 3
Link to comment
Share on other sites

i totally agree with safa's solution above. This is more proper way to achieve what you expected @Sphyrna

it's because method provided by me and jiten above only hides logo via CSS styles (logo is still in the code, but css styles just disable it from view)

 

with safa's solution the code of logo will not be added to the page source. And this is the best thing in this case.

  • Like 1
Link to comment
Share on other sites

Thank you all very much!

 

I used the second method, as I liked the efficiency of not loading the logo when it wasn't displayed.

 

Sorry, Vekia, about the store being closed the other day. I guess it really doesn't make sense. If someone is going to hack it before, they'll hack it later. ;-P

 

Anyway, I shall leave it open so you can all see the effects of your help. :-) Nothing is loaded except slider images (which I decided to use after all).

 

www.empty-o.com

 

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...