Home Forums WoodMart support forum Hide Sub-categories showing on mouse hover on Main Categories on Shop page Reply To: Hide Sub-categories showing on mouse hover on Main Categories on Shop page

#382851

harshwe
Participant

Hello Luke,

12. Thank you so much Luke. Much appreciable.

12 a) Do you mean to say, that the previous code from line 10 (or 12) to line 153 (under functions.php of child theme) is marked-off by you, and is NO longer required now, with the theme updated version 6.5

As currently, I think it is only Marked-off (disabled) by you with the use of double slash (//) and is still there in functions.php file of the child theme and taking too much space.

b). Does that mean, I can now completely remove that prev. code (marked-off) also from the functions.php file, if using version 6.5 and above.

c) Does previous code in 12 a), been completely replaced by this below a very small code, (that is added by you)-

if ( !function_exists('wd_change_scroll') ) {
    function wd_change_scroll($localized) {
        $localized['ajax_scroll_class']   =  apply_filters( 'woodmart_ajax_scroll_class', '.shop-loop-head' );

        return $localized;
    }

    add_filter('woodmart_localized_string_array', 'wd_change_scroll');
}

d) Shall I try to use this NEW updated code on our Live site, which is currently on theme version 6.2.6 (in place of previous code that is in point 12 a) )
Will this New code work or not with the theme version 6.2.6 also, or not

Please suggest

Regards

  • This reply was modified 2 years, 8 months ago by harshwe.