rflx Posted October 12, 2013 Share Posted October 12, 2013 Simply, i need to change position of Catgory Page Banner from main content to under the header. Link to comment Share on other sites More sharing options...
vekia Posted October 13, 2013 Share Posted October 13, 2013 in this case you will have to move {if $scenes || $category->description || $category->id_image} <div class="content_scene_cat"> {if $scenes} <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {else} <!-- Category image --> {if $category->id_image} <div class="align_center"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html'}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" /> </div> {/if} {/if} {if $category->description} <div class="cat_desc"> {if strlen($category->description) > 120} <p id="category_description_short">{$category->description|truncate:120}</p> <p id="category_description_full" style="display:none">{$category->description}</p> <a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a> {else} <p>{$category->description}</p> {/if} </div> {/if} </div> {/if} (from category.tpl) to the header.tpl file right after the {$HOOK_TOP} effect: Link to comment Share on other sites More sharing options...
rflx Posted October 13, 2013 Author Share Posted October 13, 2013 (edited) {if $scenes || ($display_category_desc && $category->description) || ($display_category_image && $category->id_image)} <div class="content_scene_cat mar_b1"> {if $scenes} <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {else} <!-- Category image --> {if $display_category_image && $category->id_image} <div class="align_center mar_b1"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html'}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" /> </div> {/if} {/if} {if $display_category_desc && $category->description} <div class="cat_desc"> {if strlen($category->description) > 120} <p id="category_description_short">{$category->description|truncate:120}</p> <p id="category_description_full" style="display:none">{$category->description}</p> <a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more go">{l s='More'}</a> {else} <p>{$category->description}</p> {/if} </div> {/if} </div> {/if} in my theme, i moved this (from category.tpl) to the header.tpl file right after the {$HOOK_TOP} effect : nothing changed Edited October 13, 2013 by rflx (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 13, 2013 Share Posted October 13, 2013 turn on force compilation and turn off cache in your store Link to comment Share on other sites More sharing options...
rflx Posted October 15, 2013 Author Share Posted October 15, 2013 nothing changed Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2013 Share Posted October 16, 2013 you use default theme? Link to comment Share on other sites More sharing options...
Recommended Posts