Page 1 of 1
Different banner for each category.
Posted: Wed Sep 28, 2011 9:52 am
by maxiscool
What I want to do: For each top level category I would like to have a different banner other than the banner for the entire store. This is a important feature I need to figure out. After doing a little research I definitely think I need to modify some of the php code to do this. I understand how to modify the look of the template by changing the .tpl files but I'm not sure when it comes to actual changes to the code.
Can anyone give me a hint to the right direction?
Thank you
Re: Different banner for each category.
Posted: Wed Sep 28, 2011 4:10 pm
by inactiveaccount9912
I think you might be able to do this using layouts. Create layouts for every top category , and in the category edit page , under the tab design select the layout you created for each. Of course , this way , if you have sidebar modules on category page , you will have to add them for every layout , and also with the banner , add a different one to every layout.
Re: Different banner for each category.
Posted: Wed Sep 28, 2011 5:06 pm
by uksitebuilder
Why can't you add a banner in the category description ?
Re: Different banner for each category.
Posted: Wed Sep 28, 2011 11:49 pm
by maxiscool
florinsith wrote:I think you might be able to do this using layouts. Create layouts for every top category , and in the category edit page , under the tab design select the layout you created for each. Of course , this way , if you have sidebar modules on category page , you will have to add them for every layout , and also with the banner , add a different one to every layout.
Thank you for this idea I may try it out. This is something similar to what I had to do when I was using Magento. It didn't seem like the most elegant solutions but it worked so if I have to do it for opencart as well that is fine.
uksitebuilder wrote:Why can't you add a banner in the category description ?
I tried that but it's not quite the look I'm looking for. There is still the regular banner at top then the navigation bar and then the banner for the category. Just not the style I need.
Re: Different banner for each category.
Posted: Thu Sep 29, 2011 1:52 am
by uksitebuilder
well you can remove the banner at the top by turning the module off for categories in your extensions/modules section.
the results is the same.
I will show you
Banner on homepage ->
http://www.designs.org.uk
Banner on Category page ->
http://www.designs.org.uk/desktops
Re: Different banner for each category.
Posted: Mon Oct 03, 2011 7:29 am
by maxiscool
florinsith wrote:I think you might be able to do this using layouts. Create layouts for every top category , and in the category edit page , under the tab design select the layout you created for each. Of course , this way , if you have sidebar modules on category page , you will have to add them for every layout , and also with the banner , add a different one to every layout.
Actually can you explain to me how you would do this? I understand how to make different templates but not how layouts actually work.
I'm sorry I don't see the different. Honestly I can live with having just a unique picture for the category image. I need to the image to be larger than 80X80 which is the default. I have not been able to figure out how to change the image size of category images.
Thank you
Re: Different banner for each category.
Posted: Mon Oct 03, 2011 8:07 am
by marvmen21
if you just want to change the size for your category image, just look under settings, your store, images (I think that's the right path)
Re: Different banner for each category.
Posted: Tue Oct 04, 2011 3:19 pm
by inactiveaccount9912
I dont think uksb reffered to the category image but to category description. Insert the image in the category description in admin with ckeditor.
About the layouts: Say you have a category called Laptops. Create a layout called Laptops , Then create a banner and with the slideshow or banner module add it to content top to the Laptop layout. Edit the category , under the tab Design , select layout override Laptops. I think you should insert a dummy route for the Laptops layout when you create it (not sure if is the best way , but try it).
Re: Different banner for each category.
Posted: Fri Feb 17, 2012 10:39 pm
by onlinephilately
florinsith wrote:About the layouts: Say you have a category called Laptops. Create a layout called Laptops , Then create a banner and with the slideshow or banner module add it to content top to the Laptop layout. Edit the category , under the tab Design , select layout override Laptops. I think you should insert a dummy route for the Laptops layout when you create it (not sure if is the best way , but try it).
This worked perfect for me. Thx!
Re: Different banner for each product.
Posted: Sun Apr 08, 2012 9:22 am
by alber99
I am trying to do something similar but different. I have about 20 products all in the same category. I need to do a different header banner for each product page. Do I need to create a new "layout" for each product ?
Re: Different banner for each product.
Posted: Sun Apr 08, 2012 7:11 pm
by inactiveaccount9912
alber99 wrote:I am trying to do something similar but different. I have about 20 products all in the same category. I need to do a different header banner for each product page. Do I need to create a new "layout" for each product ?
Yes, theat is what you would have to do. Dont forget to link the layout you created for each product to the product itself, in admin product edit page on the design tab.
There would be other solutions too, but for me the layout override seems the most practicle.
Re: Different banner for each category.
Posted: Sat Dec 23, 2017 6:42 am
by agold
Edit: Please, in the future:
viewtopic.php?p=707152#p707152
Also check the date of this thread...
hi! I'm running into the issue where the banner doesn't show up as an option when i go to place it in the layout

does anyone else experience that?
Re: Different banner for each category.
Posted: Sat Dec 23, 2017 10:46 pm
by straightlight
agold wrote: ↑Sat Dec 23, 2017 6:42 am
Edit: Please, in the future:
viewtopic.php?p=707152#p707152
Also check the date of this thread...
hi! I'm running into the issue where the banner doesn't show up as an option when i go to place it in the layout

does anyone else experience that?
No OC version posted.