am2346
asked 11 years ago
1 Answers
DominicStaff
answered 11 years ago

To resolve this issue, you can open custom.js in the folder path “\wp-content\themes\dw-focus\assets\js”. Find the line 189 to line 200.
Replace the following code:

 $('.footer-toggle').click(function(e){
        e.preventDefault();
        var footer_toggle = getCookie('footer_toggle');
        if( footer_toggle == null || footer_toggle != 'collapsed' ) {
            setCookie('footer_toggle','collapsed');
        } else {
            setCookie('footer_toggle','expanded');
        }
        $(this).toggleClass('collapsed');
        $('#sidebar-footer').stop().slideToggle();

     });

With new code:

     $('.footer-toggle').click(function(e){
        e.preventDefault();
        var footer_toggle = getCookie('footer_toggle');
        if( footer_toggle == null || footer_toggle != 'expanded' ) {
            setCookie('footer_toggle','expanded');
        } else {
            setCookie('footer_toggle','collapsed');
        }
        $(this).toggleClass('expanded');
        $('#sidebar-footer').stop().slideToggle();

     });

Hope this helps !

Powered by DW Question & Answer Pro