Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generatepress compability - some functions not working #91

Closed
kaktux opened this issue May 19, 2020 · 5 comments · Fixed by #92
Closed

Generatepress compability - some functions not working #91

kaktux opened this issue May 19, 2020 · 5 comments · Fixed by #92
Assignees
Labels
Milestone

Comments

@kaktux
Copy link

kaktux commented May 19, 2020

Generatepress compability - some functions not working

Settings: all on preset - but:
website_before hook name -> wp_body_open
website_after hook name -> wp_footer

Steps to reproduce the behavior:

  1. Install Plugin
  2. create Slidebar
  3. add Slidebar with hook (Menu entry and widget entry same behaviour)
  4. open slidebar
  5. click anywhere on page
    -> slidebar doesn't close although
    "Close sidebar when clicking on the site" is enabled /checked

Expected behavior

Slidebar closes

Specifications

  • Plugin Version: 0.5.5
  • WordPress Version: 5.4.1
  • Other plugins installed: Autoptimize (deactivated), DSGVO All in one PRO for WP, GenerateBlocks, GP Premium, Gutenberg Forms, Off-Canvas Sidebars & Menus (Slidebars), Pages In Widgets, Rank Math SEO, TranslatePress
  • Theme: Generatepress
  • Browser: Firefox 76.0.1
  • URL of where the bug occurs:
  • Location of hook placement (header.php and footer.php)

Additional context

Testpage

@JoryHogeveen
Copy link
Owner

Hi @kaktux

I've been testing for a while now and can't find what is causing this. I cannot reproduce this behavior locally or on my own projects so it must be something specific to your installation.

My only thought at this moment is that some part of that theme or other plugin is preventing the click event to come through.
This click event is done here: https://github.com/JoryHogeveen/off-canvas-sidebars/blob/master/js/off-canvas-sidebars.js#L403-L410

Can you confirm this bug occurs with ONLY GeneratePress and this plugin active?

@kaktux
Copy link
Author

kaktux commented May 20, 2020

yes - i just tested with disabling all plugins except gp premium and slidebars. Verified on my hosted installation and on my sandbox on a virtual machine with different browsers.

I also clicked and tested through all options to see - and:

when i select in sidebar tab: "override global settings" with "Close sidebar when clicking on the site" enabled - it works (basically i just checked override and leaved it as it was).
Although this is already checked/enabled in the settings tab.

Tested also on different browsers, mobile, pc
Beforehand and afterwards i also switched between generatepress and twenty twenty. Before: both the error - after: both working.

Weird. But hey.

I leave it as it is for some time if you would like to have a look.
I did make this one change for the lower sidebar.
The upper one still is the same (so only the override global settings not checked).

now i only have to find out how to best add pages into sidebars (using pages in widgets plugin) -currently they still look a bit unformated, no spacing at the sides etc) - but thats another story.

So overall: thx for that great plugin. Sorry for bothering ;)

@JoryHogeveen JoryHogeveen mentioned this issue May 21, 2020
8 tasks
@JoryHogeveen
Copy link
Owner

Hi @kaktux

I see, good find! I think this bug was there since 0.5.0 already. I could replicate the differences in overwriting global settings or not on my local installation.
Please check #92 for changes and let me know if that fixes your issues as well!

Cheers, Jory

@JoryHogeveen JoryHogeveen self-assigned this May 21, 2020
@JoryHogeveen JoryHogeveen added this to the 0.5.6 milestone May 21, 2020
@JoryHogeveen JoryHogeveen linked a pull request May 21, 2020 that will close this issue
8 tasks
@kaktux
Copy link
Author

kaktux commented May 21, 2020

Yes - the changes in the 2 files make the global override unnecessary - as global is working now without issues. Can confirm the fix.

thx a lot.

@JoryHogeveen
Copy link
Owner

Thanks for your quick confirmation!
This patch will be included in the next release, no ETA yet, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants