Jump to content

Change image of banner at top of categories

Recommended Posts


I would like to change this part of code :


I would like in fact to put a static image here not dependant of what category is watched.

I tried to change the file /shopV2/themes/fashion3/templates/catalog/listing/category.tpl.

And I finally found the part of code that I needed :

{block name='product_list_header'}
                   {if isset($category) && $category.image.large.url}
                       <div class="bn-top ">
                <div class="container_img_bread has-img ">
                        {include file='_partials/breadcrumb.tpl'}
                        <div class="category-cover">
                          <img src="{$category.image.large.url}" alt="{$category.image.legend}">
                        <div class="container_img_bread no-img ">
                         {hook h="blockPosition8"}
                         {include file='_partials/breadcrumb.tpl'}
        {if $category.description}
            <h1 class="category_h1">{$category.name}</h1>
            <div id="category-description" class="text-muted">{$category.description nofilter}</div>

The problem is that if I change something in this code, nothing happen on the website. Even if I delete the if condition, no change. So I tried to cause a bug with deleting a bracket. And the page couldn't respond so I was on the right file?

Thanks for your help.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More