Hi
What I want to achieve is to have a category description below products listed in this category, Default setting is that it shows above the products, is there any way to move it down ?
Regards
Thank You
What I want to achieve is to have a category description below products listed in this category, Default setting is that it shows above the products, is there any way to move it down ?
Regards
Thank You
You'd want to edit this file if you want to move the description down on the page:
/catalog/view/theme/YOURTHEME/template/product/category.twig
Don't forget to clear your theme cache after updating the file, or it won't appear to update. You can do that with the gear icon in the upper-right of the main admin dashboard page.
/catalog/view/theme/YOURTHEME/template/product/category.twig
Don't forget to clear your theme cache after updating the file, or it won't appear to update. You can do that with the gear icon in the upper-right of the main admin dashboard page.
If you don't want to touch any template files, it could potentially be done with pure CSS:
https://stackoverflow.com/questions/742 ... s-with-css
https://stackoverflow.com/questions/742 ... s-with-css
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Thanks for reply but wich code i need to change on category.twig ?Johnathan wrote: ↑Fri Feb 22, 2019 12:31 amYou'd want to edit this file if you want to move the description down on the page:
/catalog/view/theme/YOURTHEME/template/product/category.twig
Don't forget to clear your theme cache after updating the file, or it won't appear to update. You can do that with the gear icon in the upper-right of the main admin dashboard page.
The part that prints out the category description is this one:
You would move that to somewhere else in the file, wherever you want it placed.
Code: Select all
{% if description %}
<div class="col-sm-10">{{ description }}</div>
{% endif %}</div>
You would move that to somewhere else in the file, wherever you want it placed.
either move the thumb and the description:
or just the description:
be aware of the column size definitions.
Code: Select all
{% if thumb or description %}
<div class="row"> {% if thumb %}
<div class="col-sm-2"><img src="{{ thumb }}" alt="{{ heading_title }}" title="{{ heading_title }}" class="img-thumbnail" /></div>
{% endif %}
{% if description %}
<div class="col-sm-10">{{ description }}</div>
{% endif %}</div>
<hr>
{% endif %}
Code: Select all
{% if description %}
<div class="col-sm-10">{{ description }}</div>
{% endif %}
be aware of the column size definitions.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Who is online
Users browsing this forum: No registered users and 128 guests