slyme1979 Posted October 16, 2014 Share Posted October 16, 2014 Hi, I am still using Ver 1.4.7.0, and I need to add 2 ads to appear on every page. (Please kindly see attached). I am not very well versed in codes so please kindly help with the above mentioned. Website: eternal-asia.com Do you guys need the .tpl or whatever files to see? Please kindly advise. Thanks! Best Regards, Jay. Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2014 Share Posted October 16, 2014 change screen resolution to 1024x768 there will be no space to insert these adverts are you sure that you want to add so big adds there? in your case it will be necessary to alter two files: header.tpl and footer.tpl you need to add additional columns, "around" the container block due to the fact that you use custom theme - it's necessary to inspect these files. Link to comment Share on other sites More sharing options...
slyme1979 Posted October 16, 2014 Author Share Posted October 16, 2014 Thanks for the reply! Please kindly see below for header code.. {* * 2007-2011 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-2011 PrestaShop SA * @version Release: $Revision: 1.4 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}"> <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico?{$time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico?{$time}" /> <script type="text/javascript"> var baseDir = '{$content_dir}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; var priceDisplayMethod = {$priceDisplay}; var roundMode = {$roundMode}; </script> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} {if isset($js_files)} {foreach from=$js_files item=js_uri} <script type="text/javascript" src="{$js_uri}"></script> {/foreach} {/if} <script type="text/javascript" src="{$js_dir}footer-grid.js"></script> {$HOOK_HEADER} </head> <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> {if isset($ad) && isset($live_edit)} {include file="$tpl_dir./live_edit.tpl"} {/if} {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} <div id="restricted-country"> <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p> </div> {/if} <div id="top"> <div id="header"> <h1 id="logo"> <a href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$img_ps_dir}logo.jpg?{$time}" 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} /> </a> </h1> {$HOOK_TOP} </div> </div> <div class="page"> <div id="main_center_column"> <!-- Center --> <div id="center_column"> {/if} Next up Footer Code as mentioned: {* * 2007-2011 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-2011 PrestaShop SA * @version Release: $Revision: 1.4 $ * @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 class="clear"></div> <!-- RIGHT COLUMN --> <div id="right_column"> <div id="grid"> <ul id="right_column_container">{$HOOK_RIGHT_COLUMN}</ul> </div> </div> </div> </div> </div> </div> <!-- FOOTER --> <div id="footer"> <div class="path" id="block_various_links_footer">{$HOOK_FOOTER}</div> </div> {/if} <!-- LEFT_COLUMN MODULES FIXE WIDTH GRIDE --> {literal} <script> $(function(){ $('#grid').masonry({ singleMode: true, itemSelector: '.block' }); }); </script> {/literal} </body> </html> Link to comment Share on other sites More sharing options...
slyme1979 Posted October 27, 2014 Author Share Posted October 27, 2014 Anyone? Link to comment Share on other sites More sharing options...
Recommended Posts