Site logo

Archived topic

canvas menu did not work

8 replies · Started by Dalia on May 25, 2019

Viewing posts 1–9 of 9

Hello, on my site the canvas menu is without any function and I can not find out why.

Otherwise after turn on caching css with your caching option one footer widget is missing and now there is to much white space under the footer.

I can not delete the widget right now because it is not shown at the widget options anymore.

Please help.

Thanks,
Dalia

Hi Tom,

I added the following code to the functions.php of my child theme but it broke my site.

This is what the site is looking about after entering the code

Is this code correct?:
remove_action( 'wp_footer', 'generate_slideout_navigation', 0 );
add_action( 'generate_after_footer', 'generate_slideout_navigation' );

Hi again,

ok, I forget an ; while adding the code.

But also with the correct code it still not working.

I leave the code in functions.php and you can take a look to my site again.

Rgds,
Dalia

Hmm, the code doesn't seem to be working.

Can you try this instead?:

add_action( 'wp', function() {
    remove_action( 'wp_footer', 'generate_slideout_navigation', 0 );
    add_action( 'generate_after_footer', 'generate_slideout_navigation' );
} );

Hi Tom,

this code is perfect. The canvas menu working and the white space under the footer is gone.

But I think this empty space under the footer came from a broken footer widget. This widget is still missing.

Hi there,

can you try moving the missing widget to a different widget area - say Widget 1 instead to test if the widget is actually working or if something else is breaking it.

Hi David, I can not find this widget anywhere. It was a HTML Widget with some images. Is this code anywhere hidden in the code from my site? I can not believe it is deleted. My aspiration is a fast side with a clean code. Can you see any issues?

Oh and - When I delete Toms Code from Function.php, the Canvas Menu shows behind the footer.

Sorry a little unclear - so you if you go to Customizer > Widgets > Footer - the HTML Widget you added is no longer there? If so then there is nothing in the Theme that would have removed it. You would need to add that back in.

This archived topic is closed to new replies.