Home Forums WoodMart support forum Product filter – product category html block

Product filter – product category html block

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #132732

    Stanley Black
    Participant

    Hello,

    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

    #132782

    Artem Temos
    Keymaster

    Hi,

    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

    #132812

    Stanley Black
    Participant

    Hello,

    It’s almost done.
    Page stuck on half way(screenshot.png).

    Kind regards

    Attachments:
    You must be logged in to view attached files.
    #132821

    Stanley Black
    Participant

    Hello,

    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

    #132861

    Artem Temos
    Keymaster
    #132911

    Stanley Black
    Participant

    Hello,
    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

    #132912

    Artem Temos
    Keymaster

    Sorry, we don’t understand how the descriptions overlap the sticky header. Please, send us a screenshot.

    #132917

    Stanley Black
    Participant

    Hello,

    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.
    #132924

    Artem Temos
    Keymaster

    Please, 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.

    #132932

    Stanley Black
    Participant

    Hello,

    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

    #132944

    Stanley Black
    Participant

    Hello,

    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

    #133069

    Artem Temos
    Keymaster

    Try to add the following code also

    add_filter(
    	'woodmart_ajax_scroll_offset',
    	function(){
    		return 140;
    	},
    	10
    );
    #133560

    Stanley Black
    Participant

    Perfect!

Viewing 13 posts - 1 through 13 (of 13 total)