- This topic has 14 replies, 4 voices, and was last updated 1 year, 5 months ago by
David.
-
AuthorPosts
-
January 28, 2021 at 12:22 am #1636505
Raul
Hi,
I added the theme also to other site and on both other sites Off-Canvas-Panel is no9t showing. For example outcastzone.de … It’s activated for DesktopAnd on my second page if I visit the site with mobile phone and click on menue and get the Off-Canvas-Panel ???
January 28, 2021 at 3:30 am #1636710Raul
What happent? I reinstalled everything but no Off-Canvas Panel visible. And on one of my sites I have on a tablet 2 menues, Off-Canvas-Panel and Primary but if I click both both shows me Canvas manue?
January 28, 2021 at 5:03 am #1636779David
StaffCustomer SupportHi there,
This document covers an empty off canvas panel:
https://docs.generatepress.com/article/off-canvas-panel-overview/
If thats not the issue – can you share a link to the site so i can see the issue ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 28, 2021 at 5:06 am #1636782Raul
Oh, or wait. Maybe on pcpointer.de I have a problem. The Off-Canvas-Panel is not sliding up, it is on my footer at the bottom of my site! Why?
I fixed that issue caused by NextGen Gallery with
add_action( 'after_setup_theme', 'tu_move_slideout_navigation' ); function tu_move_slideout_navigation() { remove_action( 'wp_footer', 'generate_slideout_navigation', 0 ); add_action( 'generate_before_footer', 'generate_slideout_navigation' ); }
January 28, 2021 at 8:25 am #1637207David
StaffCustomer SupportI checked that site and the Off Canvas is working correctly as i see it on Desktop ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 28, 2021 at 8:45 am #1637238Raul
Yes, I fixed it with the code from my last reply 😉 thanks
January 28, 2021 at 8:48 am #1637243David
StaffCustomer SupportGlad to hear that
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 1, 2021 at 6:41 pm #1642302Maura
Glad I came across this post. It was driving me crazy!! I was using NextGen gallery too and had the same problem with the off canvas panel not showing up on mobile, and showing up below the footer on desktop. I deactivated the NextGen plugin and now everything works.
Can I ask what file did you add that piece of code to?
Edit: think I found it…theme-functions.php? Seems to be working now!February 1, 2021 at 9:15 pm #1642377Raul
Yes. You only have to add the code above into the functions.php.
February 1, 2021 at 11:06 pm #1642438Elvin
StaffCustomer SupportHi Maura,
Here’s how you can add PHP snippets:
https://docs.generatepress.com/article/adding-php/It’s either Code snippets plugin or a Child theme’s functions.php.
We don’t recommend using the parent theme’s functions.php as any changes you do in this file will be wiped when you update the theme.
A wise man once said:
"Have you cleared your cache?"February 2, 2021 at 6:07 am #1642842Maura
Ah ok, thank you! I’ll look into putting it there instead then.
February 12, 2021 at 4:27 pm #1656450Maura
Hello again, so the above code was working well for me thus far…then I decided to turn my “Blog” page on again, added it to my menu, and whenever I try to go to my blog page I get this error:
Fatal error: Cannot redeclare tu_move_slideout_navigation() (previously declared in /home/gryphonm/sylvanmistart.com/wp-content/plugins/code-snippets/php/snippet-ops.php(446) : eval()’d code:3) in /home/gryphonm/sylvanmistart.com/wp-content/themes/generatepress/index.php on line 66
If I turn the code off (I added it to the code snippets plugin), it will work.
It seems to only be the blog page, no other page this happens to.Any ideas?
February 13, 2021 at 3:44 am #1656717David
StaffCustomer SupportHi Maura,
you originally added the snippet to your themes functions.php – can you make sure it was removed from there.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 13, 2021 at 6:45 am #1656837Maura
Ah, thanks for the tip! It wasn’t in functions.php, but I did find it in index.php. I tried it in a few places before I found where it worked and I must have forgot to hit save after “removing” it. Ughh…lol… thank you!
It’s working now.
February 13, 2021 at 8:29 am #1657054David
StaffCustomer SupportGlad to hear that!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.