Home › Forums › WoodMart support forum › Product filter – product category html block
Product filter – product category html block
- This topic has 12 replies, 2 voices, and was last updated 4 years, 10 months ago by Stanley Black.
-
AuthorPosts
-
July 15, 2019 at 12:28 pm #132732
Stanley BlackParticipantHello,
When product category have html block in Description field, every filter use bring page position to the top of page. Page not stay on the same place. That place is top of filter fields.
When product category doesn’t have html block in Description field everything works perfect.
After filter was changed page little bit scroll down to the filter fields just as I want.How to achive this with categories that have html block in Description field?
Relevant category for correct use is Chairs > filter Brand > Emeco
Best regards
July 15, 2019 at 2:47 pm #132782
Artem TemosKeymasterHi,
Try to add the following PHP code snippet to the child theme functions.php file to do this
add_filter( 'woodmart_ajax_scroll_class', function(){ return '.shop-loop-head'; }, 10 );
Regards
July 15, 2019 at 6:00 pm #132812
Stanley BlackParticipantHello,
It’s almost done.
Page stuck on half way(screenshot.png).Kind regards
Attachments:
You must be logged in to view attached files.July 15, 2019 at 7:13 pm #132821
Stanley BlackParticipantHello,
I don’t no do you take further action or I fix the problem(almost).
It seems that ess grid loading cause problem. When that was fixed your code start working.
Now there is a problem with different browsers.
On google chrome code hits right place but on mozilla, edge … it overlaping content for sticky header height.Best regards
July 16, 2019 at 6:07 am #132861
Artem TemosKeymasterHere is how it works now https://gyazo.com/654fb42ac4bcf5d8d843186f30b3d128
July 16, 2019 at 8:50 am #132911
Stanley BlackParticipantHello,
Thanks for your response.But this problem remains
“On google chrome code hits right place but on mozilla, edge … it overlaping content for sticky header height.”Best regards
July 16, 2019 at 9:02 am #132912
Artem TemosKeymasterSorry, we don’t understand how the descriptions overlap the sticky header. Please, send us a screenshot.
July 16, 2019 at 9:24 am #132917
Stanley BlackParticipantHello,
Just try to use filter on mozilla and you will understand what is a problem.
Use brand filter Emeco.Kind regards
Attachments:
You must be logged in to view attached files.July 16, 2019 at 9:38 am #132924
Artem TemosKeymasterPlease, send us your admin and FTP access so we can check. Also, try to replace your description with plain text and check how it works.
July 16, 2019 at 10:55 am #132932
Stanley BlackParticipantHello,
Thank you!
Only when essential grid is on page(html block) problem appears.
When ess grid was removed filtering starts to work normaly on every browser.Now I must use different way to dispaly grid than it was ess grid 🙂
Best regards
July 16, 2019 at 12:45 pm #132944
Stanley BlackParticipantHello,
One more question.
Is it possible to set offset in your function:
add_filter(
‘woodmart_ajax_scroll_class’,
function(){
return ‘.shop-loop-head’;
},
10
);I want to page stops little above .shop-loop-head class. For 40px above.
Kind regards
July 17, 2019 at 6:12 am #133069
Artem TemosKeymasterTry to add the following code also
add_filter( 'woodmart_ajax_scroll_offset', function(){ return 140; }, 10 );
July 19, 2019 at 10:47 am #133560
Stanley BlackParticipantPerfect!
-
AuthorPosts
- You must be logged in to create new topics. Login / Register