ecommdev Posted April 18, 2016 Share Posted April 18, 2016 I have a question about the category description (for seo purposes), its fairly long and its pushing the products way down the page. For the category description area, is it possible to move it at the bottom of the page instead of the top of the page (i.e right now its before the category products, would prefer to move below the category products). This may not be possible but I thought I would ask you just in case. I look forward to hearing back from the community on this answer. Link to comment Share on other sites More sharing options...
Mila_omni Posted April 18, 2016 Share Posted April 18, 2016 You can do so through your category.tpl file. But I think that even if the description was at the bottom the text would still cut off and crawling robots won't be able to read it. Link to comment Share on other sites More sharing options...
ecommdev Posted April 19, 2016 Author Share Posted April 19, 2016 (edited) 1. The category description text words can be expanded to any number, that's not a issue. And when its expanded, really helps from an SEO standpoint. 2. The issue, Can someone provide (step by step) instructions how to move the category description to the bottom of the category page. I am aware its probably located within the category.tpl file however I am unsure about changing up the file without proper step by step instructions. Edited April 19, 2016 by ecommdev (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted April 19, 2016 Share Posted April 19, 2016 In your themes directory find and edit the Category.tpl file find the code below should be lines 27-71 {if $category->id AND $category->active} {if $scenes || $category->description || $category->id_image} <div class="content_scene_cat"> {if $scenes} <div class="content_scene"> <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {if $category->description} <div class="cat_desc rte"> {if Tools::strlen($category->description) > 350} <div id="category_description_short">{$description_short}</div> <div id="category_description_full" class="unvisible">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div>{$category->description}</div> {/if} </div> {/if} </div> {else} <!-- Category image --> <div class="content_scene_cat_bg"{if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) right center no-repeat; background-size:cover; min-height:{$categorySize.height}px;"{/if}> {if $category->description} <div class="cat_desc"> <span class="category-name"> {strip} {$category->name|escape:'html':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'} {/if} {/strip} </span> {if Tools::strlen($category->description) > 350} <div id="category_description_short" class="rte">{$description_short}</div> <div id="category_description_full" class="unvisible rte">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div class="rte">{$category->description}</div> {/if} </div> {/if} </div> {/if} </div> {/if} Highlight and cut the code, at the very bottom of the page you will see 2 closing {/if} statements paste the code between them and save, the category description should now be at the bottom. I hope I understood exactly what you wanted. Link to comment Share on other sites More sharing options...
jasonbsmith Posted June 26, 2016 Share Posted June 26, 2016 A past topic also highlighted that adjusting the "more" feature will prevent the short description from being shown instead of the full description. [remove this line]<div id="category_description_short" class="rte">{$description_short}</div> [change unvisible to visible] <div id="category_description_full" class="unvisible rte">{$category->description}</div> [remove this line]<a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> The code appears twice. I got this info from another site [http://www.templatemonster.com/help/prestashop-1-6-x-how-to-remove-more-button-on-category-page-and-display-full-description.html#prettyPhoto/0/] It seemed to still work with 1.6x 1 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