Sphyrna Posted August 13, 2013 Share Posted August 13, 2013 Is there a way to hide the logo only on the home page? Thanks! Elizabeth Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted August 13, 2013 Share Posted August 13, 2013 (edited) on global.css find #header_logo{ position: absolute; top: 30px; z-index: 1; display:none; { just add display: none ; wonder y u wanna hide? ohh only on on home page add this body#index # #header_logo{display:none !important;} Edited August 13, 2013 by Jiten rash (see edit history) Link to comment Share on other sites More sharing options...
Sphyrna Posted August 13, 2013 Author Share Posted August 13, 2013 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 More sharing options...
vekia Posted August 13, 2013 Share Posted August 13, 2013 you have to put this code into the .css styles file located in the theme directory: themes/your_theme/css/global.css you can use just this code: #header_logo { display:none!important; } Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted August 13, 2013 Share Posted August 13, 2013 (edited) vekia she just want it not to apear on home then just add on global.css location just vekia told u body#index #header_logo{display:none;} Edited August 13, 2013 by Jiten rash (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 13, 2013 Share Posted August 13, 2013 you've got right jiten but one question, what is this: body#index # #header_logo{display:none;} it's necessary to use this one additional hash? Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted August 13, 2013 Share Posted August 13, 2013 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 More sharing options...
safa Posted August 13, 2013 Share Posted August 13, 2013 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} 3 Link to comment Share on other sites More sharing options...
vekia Posted August 13, 2013 Share Posted August 13, 2013 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. 1 Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted August 13, 2013 Share Posted August 13, 2013 hope it works Link to comment Share on other sites More sharing options...
Sphyrna Posted August 13, 2013 Author Share Posted August 13, 2013 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 More sharing options...
Jiten rash (away) Posted August 14, 2013 Share Posted August 14, 2013 its working i saw ur site..which second method u applied..safas?? Link to comment Share on other sites More sharing options...
Sphyrna Posted August 14, 2013 Author Share Posted August 14, 2013 Hi, Yes, I used Safa's. Glad it worked. Thanks for all the help! Elizabeth 1 Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 thanks for confirmation and clarification. im going to matk this topic as [solved] if you will have any other questions related to this case - feel free to continue discussion here best regards Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now