• Priority: 0
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 14.12.23, 12:10
  • Opened by: Nathalie Askayo

Ticket #25133 - Creative Elements on brands page

Hello,

I would like my Creative Elements template for category pages to be used with brand pages.

I had read in an answer in the comment section of the theme on Envato that it was possible.

I have some notion of code, so I can modify a file if you can explain me how to do it.

Thanks before.

Comments

Fred 14 Dec 2023, 12:28

Hi, Nathalie.
We never did that, but I assume the approach is the same as for category page.
- open the file /themes/alysum/templates/_partials/helpers.tpl
- find this block

{function name="SecondaryPagesBlock"}
    {SecondaryPagesTopBlock}
    {if ($page.page_name == 'category') && ($pktheme.cp_builder_layout != 0)}
        {CategoryCEBlock}
    {else}
        {SecondaryPagesMainBlock}
    {/if}
{/function}

- modify it like this:

{function name="SecondaryPagesBlock"}
    {SecondaryPagesTopBlock}
    {if ($page.page_name == 'category') && ($pktheme.cp_builder_layout != 0)}
        {CategoryCEBlock}
    {elseif ($page.page_name == 'manufacturers')}
        {hook h='CETemplate' id="ID_OF_YOUR_TEMPLATE"}
    {else}
        {SecondaryPagesMainBlock}
    {/if}
{/function}
Nathalie Askayo 14 Dec 2023, 13:48

Hello,

Unfortunatly, it doesn't works (see image herewith).

In mobile display, I simply want to display the filters as on category pages : with a "Product filter" button as with Creative Element (see herewith). And not with the arrow button that displays the contents of the left-hand column, appears even when the column is empty and takes too much space on small screens.

Is this possible without Creative Element?

Fred 14 Dec 2023, 14:17

Yes, I see. We need specific widgets for manufacturers page. For now we don't have them

Fred 14 Dec 2023, 14:20

As for the Product Filter, you have to enable it https://take.ms/RbWXu

Nathalie Askayo 15 Dec 2023, 14:03

For this product filter button, I need Creative Element on the manufacturers page, which is not possible as we have just seen.

For the moment, I have this absolutely impractical arrow button on the manufacturers page to display the left column (see image herewith). Is there an alternative? Is it possible to display a "Filter" button in the mobile version without Creative element?

Fred 16 Dec 2023, 12:11

Hi, Nathalie.
Please give me a link where I can see that arrow button

Nathalie Askayo 18 Dec 2023, 00:09

Here, in mobile mode : https://alysum.promokit.eu/complex/en/24-camis See image herewith.

Attachments:

arrow.jpg (167 KiB)
Fred 18 Dec 2023, 09:29

Try following CSS fix:

@media (max-width: 991px) {
    body #left-column {
        position: static;
        transform: translate(0); 
    }
    body #left-column .sidebar-toggler {display: none}
}
Nathalie Askayo 18 Dec 2023, 16:07

Thank you !

Is there a way by CSS ou other, on mobile only, to hide the "Filters panel" and to show it only when we click on the button ?

Because, for the moment, the filter panel is open when I open category or manufacturer page.

Fred 18 Dec 2023, 20:20

There is no way to do that with css only. It's a bit more complicated task. Our support doesn't cover theme customisation to help you with that.