Plugin Author
RazyRx
(@razyrx)
Hello,
Products list has style display: grid; that cause this issue, plugin do not have different classes to change it for list, but do not change it for grid.
Regards,
Oleg
Thread Starter
hange
(@hange)
Hi Oleg,
Thanks for your answer. You are right, I found that there is a class display: grid but when I change it to list, it changes as well to the grid view.
Is there a better way to solve it? I’m kinda lost.
Thank you very much.
Hange
Plugin Author
RazyRx
(@razyrx)
Hello,
You can try to use this custom JavaScript code to add some CSS class
jQuery(document).on('berocket_lgv_after_style_list', function() {
jQuery('body').removeClass('br_glv_grid_view').addClass('br_glv_list_view');
});
jQuery(document).on('berocket_lgv_after_style_grid', function() {
jQuery('body').removeClass('br_glv_list_view').addClass('br_glv_grid_view');
});
It will add different CSS class to body element:
For Grid view: br_glv_grid_view
For List view: br_glv_list_view
Regards,
Oleg
Thread Starter
hange
(@hange)
Thanks for you help. It’s working now.