Vire Posted March 10, 2014 Share Posted March 10, 2014 Good Morning. I have installed the CMS footer module in PS 1.6.0.4 wich works so far. Nevertheless i get links like "Special Offers" and "New Products" in the "Information" footer bar and can only disable them by switch off the whole module. Is there a other way to fix this? Link to comment Share on other sites More sharing options...
hassan_mihai Posted March 10, 2014 Share Posted March 10, 2014 i think u can remove links from your theme module blockcms blockcms.tpl Link to comment Share on other sites More sharing options...
Vire Posted March 10, 2014 Author Share Posted March 10, 2014 I would like to save the "Contact Us" thing but im not that used to .tpl files. What do i have to remove? Dont want to crash the file >.< <!-- MODULE Block footer --> <div class="block_various_links" id="block_various_links_footer"> <h4 class="title_block">{l s='Information' mod='blockcms'}</h4> <ul> {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')|escape:'html'}" 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')|escape:'html'}" 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')|escape:'html'}" title="{l s='Best sellers' mod='blockcms'}">{l s='Best sellers' mod='blockcms'}</a></li>{/if} {if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores')|escape:'html'}" 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)|escape:'html'}" 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|escape:'html'}" title="{$cmslink.meta_title|escape:'html':'UTF-8'}">{$cmslink.meta_title|escape:'html':'UTF-8'}</a></li> {/if} {/foreach} <li><a href="{$link->getPageLink('sitemap')|escape:'html'}" title="{l s='Sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a></li> {if $display_poweredby}<li class="last_item">{l s='[1]Ecommerce software by %s[/1]' mod='blockcms' sprintf=['PrestaShop™'] tags=['<a class="_blank" href="http://www.prestashop.com">']}</li>{/if} </ul> {$footer_text} </div> <!-- /MODULE Block footer --> I would say it should look like this: <!-- MODULE Block footer --> <div class="block_various_links" id="block_various_links_footer"> <h4 class="title_block">{l s='Information' mod='blockcms'}</h4> <ul><a href="{$link->getPageLink($contact_url, true)|escape:'html'}" 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|escape:'html'}" title="{$cmslink.meta_title|escape:'html':'UTF-8'}">{$cmslink.meta_title|escape:'html':'UTF-8'}</a></li> {/if} {/foreach} <li><a href="{$link->getPageLink('sitemap')|escape:'html'}" title="{l s='Sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a></li> {if $display_poweredby}<li class="last_item">{l s='[1]Ecommerce software by %s[/1]' mod='blockcms' sprintf=['PrestaShop™'] tags=['<a class="_blank" href="http://www.prestashop.com">']}</li>{/if} </ul> {$footer_text} </div> <!-- /MODULE Block footer --> Link to comment Share on other sites More sharing options...
hassan_mihai Posted March 10, 2014 Share Posted March 10, 2014 you can make a copy of blockcms.tpl before edit. and you can hide those lines as a comment <!-- --> <!-- MODULE Block footer --><div class="block_various_links" id="block_various_links_footer"><h4 class="title_block">{l s='Information' mod='blockcms'}</h4><ul><!-- {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')|escape:'html'}" 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')|escape:'html'}" 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')|escape:'html'}" title="{l s='Best sellers' mod='blockcms'}">{l s='Best sellers' mod='blockcms'}</a></li>{/if}{if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores')|escape:'html'}" 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)|escape:'html'}" 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|escape:'html'}" title="{$cmslink.meta_title|escape:'html':'UTF-8'}">{$cmslink.meta_title|escape:'html':'UTF-8'}</a></li>{/if}{/foreach}<li><a href="{$link->getPageLink('sitemap')|escape:'html'}" title="{l s='Sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a></li>{if $display_poweredby}<li class="last_item">{l s='[1]Ecommerce software by %s[/1]' mod='blockcms' sprintf=['PrestaShop™'] tags=['<a class="_blank" href="http://www.prestashop.com">]}</li>{/if}</ul>{$footer_text}</div><!-- /MODULE Block footer --> Link to comment Share on other sites More sharing options...
Vire Posted March 10, 2014 Author Share Posted March 10, 2014 Hm, i did a copy of my .tpl and used your code but it changed nothing. Here is a link for you: http://digitaldyne.com/index.php?id_lang=2 Link to comment Share on other sites More sharing options...
vekia Posted March 10, 2014 Share Posted March 10, 2014 after changes make sure that: - you changed correct file (if files exist in theme modules directory - you have to edit them there) - in some cases it's necessary to recompile theme (especially when cache is turned on) Link to comment Share on other sites More sharing options...
Vire Posted March 10, 2014 Author Share Posted March 10, 2014 Ah thanks for the info, it was the module in the template directory. I basicly got it now but there is a little difference in the height of the footer boxes: http://digitaldyne.com/index.php?id_lang=2 Link to comment Share on other sites More sharing options...
vekia Posted March 10, 2014 Share Posted March 10, 2014 to #block_various_links (in css styles) add this code: margin-top: 45px; Link to comment Share on other sites More sharing options...
Vire Posted March 10, 2014 Author Share Posted March 10, 2014 I think i did understand you wrong. I did search on my ftp int he css folder for something like blockcms but couldnt find it. Where i have to add the css part ? Link to comment Share on other sites More sharing options...
vekia Posted March 10, 2014 Share Posted March 10, 2014 try to create this code somewhere : #block_various_links { margin-top:45px; } for example paste it at the very end of your global css file Link to comment Share on other sites More sharing options...
Recommended Posts