Home Forums WoodMart support forum scroll to with javascript is not working

scroll to with javascript is not working

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

    captain53
    Participant

    hi, for some reasons i want to work with js…

    so i tried but it could not worked

    `var tab2312 = document.getElementByClassName(“woodmart-filter-buttons”);
    var gogilter2312 = document.getElementById(“wcfmmp-store-product-search-5”);

    tab2312.onclick = function() {
    window.scrollBy(0, 500);
    }

    what should you advice to me

    thanks.

    #164812

    captain53
    Participant

    Do your Custom js tool is work?

    #164817

    Hello,

    What do you want to achieve exactly? The code which you shared where you used it in your site? If you are talking about scroll to top button, then i want to confirm you that it’s working on our test site.

    Best Regards.

    #164820

    captain53
    Participant

    it did not worked… i tried alert function to test your tool are work or not…

    #164822

    captain53
    Participant

    var tab2312 = document.getElementByClassName(“woodmart-filter-buttons”);
    var gogilter2312 = document.getElementById(“wcfmmp-store-product-search-5”);

    tab2312.onclick = function() {
    gogilter2312.scrollIntoView;
    }

    i tried this code for wcfm store page to help user experience… my goal is when someone is click to the filters tab then he/she scroll to the filters section.

    #164827

    Hello,

    Kindly share screenshots, also the page URL on which filters tab shown and also share the screenshot of that section where you want to scroll the user after click.

    Best Regards.

    #164830

    captain53
    Participant

    Ss are here

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

    Hello,

    Normally by clicking the “FILTERS” button the “Shop Filter” section shown which is inside the Appearance >> Widgets.

    Screenshot for clarification: https://jmp.sh/0kMc0OA

    The section which you pointing out in screenshot “Search in sellers”, if its a widget then simply drag that specific widget in “Shop Filter” widget area, then in result the section will show when someone clicks on Filters button.

    Best Regards.

    #164853

    captain53
    Participant

    No it is not the solution for me… i
    want to inject js code in your theme… İ would like to manipulate execute js in pages…

    But whenever i try to effect the element it is not working…

    #164856

    Hello,

    To inject that javascript code in our theme, requires customizations and this is beyond our limitations and support policy. We provide our dedicated support and this is out of our scope.

    Best Regards.

    #164860

    captain53
    Participant

    so why did you add a custom jss section to your theme-panel? what is the role of custom js section?

    #164861

    captain53
    Participant

    i told you many time your custom js function is not working

    #164862

    Artem Temos
    Keymaster

    Could you please add the following code to the Custom JS section to check if it works?

    alert('Custom JS is working correctly.');

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