KraDors Posted August 8, 2011 Share Posted August 8, 2011 Hello. I want to remove the Specials, New products, Top sellers links from my footer. How can I do that? In the cms editor, I only can disable the whole footer, but not disable a single link. Thanks Link to comment Share on other sites More sharing options...
mohsart Posted August 8, 2011 Share Posted August 8, 2011 In the end of modules/blockcms/blockcms.tpl you can see the code that displays these links. Try commenting out the code you don't want, ie {* {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} <li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li> {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales.php')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if} {if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if} *} <li class="first_item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li> Note that I changed class from "item" to "first_item" for the (new) first link (to remove the pipe |). /Mats 1 Link to comment Share on other sites More sharing options...
Andy1 Posted August 11, 2011 Share Posted August 11, 2011 I would like to remove Specials and Top sellers, and have tried to delete the following two lines, but nothing has changed: {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales.php')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if} Any ideas what I can do? Many Thanks Link to comment Share on other sites More sharing options...
mohsart Posted August 11, 2011 Share Posted August 11, 2011 Did you turn off cache etc in BO (Preferences, Performance, Force Compile: YES + Cache: NO)? /Mats Link to comment Share on other sites More sharing options...
Andy1 Posted August 11, 2011 Share Posted August 11, 2011 Did you turn off cache etc in BO (Preferences, Performance, Force Compile: YES + Cache: NO)? /Mats Ahh, yes that has solved it. Thank you! There is a message in the BO saying that Cache should be turned on though. The only issue now is that there's a | symbol to the left. of the footer links. Do you know which bit of the file I need to delete to remove this? Link to comment Share on other sites More sharing options...
mohsart Posted August 11, 2011 Share Posted August 11, 2011 "Note that I changed class from "item" to "first_item" for the (new) first link (to remove the pipe |)." "first_item" should be the first and "last_item" last to get the pipes right. Once it looks OK, turn cache back on and force compile back off, or you will have avery slow site :-) /Mats Link to comment Share on other sites More sharing options...
Andy1 Posted August 11, 2011 Share Posted August 11, 2011 I have this in the tpl file: <!-- MODULE Block footer --> <ul class="block_various_links" id="block_various_links_footer"> <li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li> <li class="item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li> {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title != ''} <li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li> {/if} {/foreach} </ul> <!-- /MODULE Block footer --> {/if} I tried to change the bit highlighted to first_item, removing the {/if} but I just ended up without a website. Sorry for all the questions. Many Thanks Link to comment Share on other sites More sharing options...
mohsart Posted August 11, 2011 Share Posted August 11, 2011 You're at the wrong place <li class="item"> -> <li class="first_item"> for the first instance of <li class="item"> /Mats Link to comment Share on other sites More sharing options...
mohsart Posted August 11, 2011 Share Posted August 11, 2011 Eh, sorry. replace <li class="{if $PS_CATALOG_MODE}first_{/if}item"> with <li class="first_item"> dunno what happens if not in $PS_CATALOG_MODE though... /Mats Link to comment Share on other sites More sharing options...
Andy1 Posted August 11, 2011 Share Posted August 11, 2011 Eh, sorry. replace <li class="{if $PS_CATALOG_MODE}first_{/if}item"> with <li class="first_item"> dunno what happens if not in $PS_CATALOG_MODE though... /Mats Excellent, I replaced the line above and it worked. Thank you. Link to comment Share on other sites More sharing options...
clippy Posted August 28, 2011 Share Posted August 28, 2011 I am having the same issue getting rid of those links in the footer including specials, new products, top sellers and our stores. I made sure of the settings with cache and deleted the files from modules/blockcms/blockcms.tpl but still they show. Any help would be much appreciated. Also, I don't understand why this section can't be built into the backend of this cart. It seems like such an obvious thing. Link to comment Share on other sites More sharing options...
to2bebe & Kids Posted October 5, 2011 Share Posted October 5, 2011 Hello , I am facing the same problem and follow all the instruction before with this result... but they remain in the footer.. cachesettings and refesh are ok desperate looking toi remove this-.. regards, david {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} <li class="first_item"><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li> {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales.php')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if} {if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if} <li class="first_item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li> {foreach from=$cmslinks item=cmslink} Link to comment Share on other sites More sharing options...
bobmartinusa Posted October 23, 2011 Share Posted October 23, 2011 @ daviddive007 please delete the following code from what u have posted above <a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} <li class="first_item"><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li> {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales.php')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if} detelte this from the code and viola problem solved. Link to comment Share on other sites More sharing options...
tavi2me Posted February 29, 2012 Share Posted February 29, 2012 Hi I can't remove (Specials, New products, Top sellers, Contact) from footer, in PrestaShop 1.4.7.0 version, i try to remove from blockcms.tpl but not work, in this version blockvariouslink not found (was replaced with blockcms). Please help me. Link to comment Share on other sites More sharing options...
daki22 Posted November 25, 2012 Share Posted November 25, 2012 Solved thanks. Link to comment Share on other sites More sharing options...
mariorossi Posted November 28, 2012 Share Posted November 28, 2012 Than you very much mohsart Link to comment Share on other sites More sharing options...
iansari13 Posted April 8, 2013 Share Posted April 8, 2013 8.4.2013 [sOLVED]Removing Footer Links In v1.5.4 make changes /httpdocs/themes/default/modules/blockcms in blockcms.tpl links you want to hide make those lines as a comment <!-- --> <!--{if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} <li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li> {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if} --> upload the file refesh your FO page and enjoy! 5 Link to comment Share on other sites More sharing options...
treasuresangel Posted May 30, 2013 Share Posted May 30, 2013 Be sure to follow iansari13's advice if you're in 1.5! Link to comment Share on other sites More sharing options...
ssekazinga Posted December 14, 2013 Share Posted December 14, 2013 Hellos, My Specials,new product, store links are not working while in URL rewrite, This page is not available .any one got that issue? thanks Link to comment Share on other sites More sharing options...
ricky11 Posted December 20, 2013 Share Posted December 20, 2013 Very surprised that their is no way to do this in BO, why is it to do very simple CMS things we need to edit TPL files? this should be in the cmsblock, can someone explain why they decided to leave it out? 1 Link to comment Share on other sites More sharing options...
vekia Posted December 20, 2013 Share Posted December 20, 2013 hello prestashop is an opensource software. Everyone of us, simple merchants, programmers, ps lovers and everyone else have got possibility to develop features and include them to the official release (via github) it looks like not everyone were interested to develop this feature, i suppose (and it's only my opinion) due to the fact, that modification of tpl file is much easier than modification of module core to develop feature like that. Link to comment Share on other sites More sharing options...
farukh36 Posted January 4, 2014 Share Posted January 4, 2014 Hellos, My Specials,new product, store links are not working while in URL rewrite,This page is not available .any one got that issue? thanks Hi, I have a similar problem. Did you manage to solve it. If so please guide me Thanks Farukh Link to comment Share on other sites More sharing options...
vekia Posted January 4, 2014 Share Posted January 4, 2014 Hi, I have a similar problem. Did you manage to solve it. If so please guide me Thanks Farukh if it is possible, please continue discussion in your topic: http://www.prestashop.com/forums/topic/2990[spam-filter]some-footer-links-not-working/?do=findComment&comment=1512081 Link to comment Share on other sites More sharing options...
iansari13 Posted February 5, 2014 Share Posted February 5, 2014 Solution for 1.5.6.1 solved To remove, Specials, Best Sellers, and SiteMap Try this code root/themes/default/modules/blockcms/blockcms.tpl at line 46 <!-- MODULE Block footer --><div class="block_various_links" id="block_various_links_footer"><p class="title_block">{l s='Information' mod='blockcms'}</p><ul><!--{if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} --><!--<li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li>--><!--{if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if} -->{if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if}<li class="item"><a href="{$link->getPageLink($contact_url, true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li>{foreach from=$cmslinks item=cmslink}{if $cmslink.meta_title != ''}<li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li>{/if}{/foreach}<!--<li><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a></li>-->{if $display_poweredby}<li class="last_item">{l s='Powered by' mod='blockcms'} <a class="_blank" href="http://www.prestashop.com">PrestaShop</a>™</li>{/if}</ul>{$footer_text}</div><!-- /MODULE Block footer --> 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