V1.7 [REQUEST] Modify header category panda theme

_aNoNiMo_

Well-known member
Master
Joined
Dec 3, 2019
Messages
405
Reaction score
8,591
Points
93
NullCash
53,239
Good morning, could someone tell me how to make this header for the categories, with the panda theme?

I've tried a thousand ways, but I'm not able to put a different banner for each category, that sticks to the top.

Getting it for one category, it would be easy to do it for the rest, but I'm not capable

That design is based on another template, but it doesn't work correctly in Prestashop version 1.7.8.8, so I wanted to try to see if it could be done with the panda theme

I attach a screenshot of how the design should be

Thank you so much
 

Attachments

  • category.png
    category.png
    5.4 MB · Views: 7

moonfire

Well-known member
Diamond
Elite
XNullUser
Joined
May 3, 2021
Messages
941
Reaction score
305
Points
63
NullCash
1,202
I haven't done any work with Panda, but perhaps you could do something like this in the .tpl file that handle the header:
Code:
{if $page.page_name == 'category'}
    [here goes your html/css with the background image.]
{/if}

If you only want the header for a specific category, I'm not sure how t do it. But here's the code when you want to put some code to a specific CMS-page. Perhaps that might help you.
Code:
{if $page.page_name == 'cms' && $cms.id == 3}
    <script src=" [my custom js-file for a specific cms-page] "></script>
{/if}
 

dabliop

Well-known member
Diamond
Elite
Joined
Mar 31, 2019
Messages
660
Reaction score
345
Points
63
NullCash
735
Good morning, could someone tell me how to make this header for the categories, with the panda theme?

I've tried a thousand ways, but I'm not able to put a different banner for each category, that sticks to the top.

Getting it for one category, it would be easy to do it for the rest, but I'm not capable

That design is based on another template, but it doesn't work correctly in Prestashop version 1.7.8.8, so I wanted to try to see if it could be done with the panda theme

I attach a screenshot of how the design should be

Thank you so much

Hey, man!

Use the module below!
With it, you can insert custom codes for specific pages and/or modules and/or specific positions of your store (products, categories, cms, brands, url, etc...).
Example: display banner only uncurled pages X, Y, and Z.


;)

...
 
Top