Jump to content

[SOLVED] delete (categories) hook from footer


Recommended Posts

Hi, I have tried everything... what I need is a clear green footer without any categories, contact information... nothing. The only thing I want there is one simple sentence in Estonian language: "Mesi Teeb Olemise Paremaks!" How to achieve this?

Link to comment
Share on other sites

That's not too difficult, just comment out most of the footer text, add your line and do some 'make up' of the text:

 

in themes/<your theme folder>/footer.tpl, make the following changes:

<!-- Footer -->
  <div id="footer" class="grid_9 alpha omega clearfix">

{*									  <--- add this, to remove all footer columns
 {$HOOK_FOOTER}
*}									   <-- add this

<div class="footer_text_honey">Mesi Teeb Olemise Paremaks!</div>	   <-- add this to add your line

{*						<-- add this, to remove the mobile site link
{if $PS_ALLOW_MOBILE_DEVICE}
 <p class="center clearBoth"><a href="{$link->getPageLink('index', true)}?mobile_theme_ok">{l s='Browse the mobile site'}</a></p>
{/if}
*}						  <-- add this

  </div>
 </div>
{/if}
</body>
</html>

 

 

in themes/<your theme folder/css/global.css, add at the very end:

 

 

.footer_text_honey {

text-align: center;

background-color: green;

color: white;

}

 

That should do the trick, (code from PS 1.5.3.1, but should be very similar in other versions)

pascal

Edited by PascalVG
background colour changed to green (see edit history)
Link to comment
Share on other sites

Thanks for your reply, Pascal. Unfortunately I'm a bit confused because there is no file footer.tpl in themes/<your theme folder>. I searched and found one file called blockmyaccountfooter.tpl. The path is themes / default / modules / blockmyaccount / blockmyaccountfooter. I'm using PrestaShop 1.5.4.1, perhaps it's the same file with different name or...? Ah, I nearly forgot - I found also a file footer.tpl but it's in pdf folder and the code is:

 

<table>

<tr>

<td style="text-align: center; font-size: 6pt; color: #444">

{if $available_in_your_account}

{l s='An electronic version of this invoice is available in your account. To access it, log in to our website using your e-mail address and password (which you created when placing your first order).' pdf='true'}

<br />

{/if}

{$shop_address|escape:'htmlall':'UTF-8'}<br />

 

{if !empty($shop_phone) OR !empty($shop_fax)}

{l s='For more assistance, contact Support:' pdf='true'}<br />

{if !empty($shop_phone)}

Tel: {$shop_phone|escape:'htmlall':'UTF-8'}

{/if}

 

{if !empty($shop_fax)}

Fax: {$shop_fax|escape:'htmlall':'UTF-8'}

{/if}

<br />

{/if}

 

{if isset($shop_details)}

{$shop_details|escape:'htmlall':'UTF-8'}<br />

{/if}

 

{if isset($free_text)}

{$free_text|escape:'htmlall':'UTF-8'}<br />

{/if}

</td>

</tr>

</table>

 

so I think it's not the one we are looking for. But where is the right one!?

Link to comment
Share on other sites

?? Can you double-double-check one more time if you have a /themes/default/footer.tpl file??

I just checked the source code of 1.5.4.1 and I DO have a footer.tpl there.

 

Can it be you either deleted it, or that you have an installation file Not from prestashop.com or so??

 

The other footer.tpl in pdf is indeed not the one we want to edit. Also in themes/default/template, themes/default/mobile and modules/trackingfront are not correct. It really should be in themes/default/

 

If nothing helps,

shall we try if re-creating one helps??

Create a file /themes/default/footer.php

Edit in any editor and copy the following text into it:

 

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2013 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
 {if !$content_only}
   </div>
<!-- Right -->
   <div id="right_column" class="column grid_2 omega">
 {$HOOK_RIGHT_COLUMN}
   </div>
  </div>
<!-- Footer -->
  <div id="footer" class="grid_9 alpha omega clearfix">
{*
   {$HOOK_FOOTER}
*}
<div class="footer_text_honey">Mesi Teeb Olemise Paremaks!</div>
{*
   {if $PS_ALLOW_MOBILE_DEVICE}
 <p class="center clearBoth"><a href="{$link->getPageLink('index', true)}?mobile_theme_ok">{l s='Browse the mobile site'}</a></p>
   {/if}
*}
  </div>
 </div>
{/if}
</body>
</html>

  • Like 1
Link to comment
Share on other sites

  • 8 months later...

Thanks to the people who helped me with footer-theme! Now its time to move on and change header and columns and... I just need to change "headers" of suppliers list, producers list etc. All the black areas need to be #013300. How, where can I do this? I tried to change global css but no success. Please help! 

post-553614-0-09265200-1390560405_thumb.jpg

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...