mercantile-custom.js child theme - Acme Themes

Best Premium and Free WordPress Themes Forums Mercantile mercantile-custom.js child theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #41918

    More than a year away from the post of @maiconjoet entitled “Main menu does not collapse on click” even in the latest version (2.1.1) the problem has not been fixed.

    The solution indicated is to insert the following code in the “mercantile-custom.js” file present in /public_html/wp-content/themes/mercantile/assets/js

    $ (document) .on (‘click’, ‘.’, function (e) {
    if ($ ( .is (‘a’) && ($ ( .attr (‘class’)! = ‘dropdown-toggle’)) {
    $ (This) .collapse ( ‘hide’);

    I have always used the child theme to not lose all the customizations made with updates released later.

    The question is:
    how to create and recall the modified (mercantile-custom.js) file with the added code in the mercantile-child directory?

    Just copy the assets / js folder and the mercantile-custom.js file to the mercantile-child folder or do you need the call via the function.php file?

    Thank you for making this thema available to everyone and I hope in your suggestions.


    To modify the (mercantile-custom.js) from child theme, please follow the given steps :-
    i. Dequeue parent (mercantile-custom.js) from child theme.
    ii. Copy and paste the same file in child theme directory and then enqueue it from functions.php of child theme.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.