- This topic has 9 replies, 2 voices, and was last updated 6 months, 1 week ago by
David.
-
AuthorPosts
-
September 12, 2022 at 5:20 am #2340416
johnaps
Hello!
In the header there is a div.slideout-toggle element that is used automatically from offside.js file of gp.
I have a problem cause i want to use that particular element (‘#masthead .slideout-toggle’) as a trigger for a custom menu i have made but i cant overide the click event handler set from your file!Can you please offer me a workaround?
For either
1. disabling your click event handler for that specific element
or better yet
2. giving me a filter to change the headers toggle css classes with php? (or replacing the entire html element that is generated on header…)Look for the element here if you want a visual to understand exactly which element i am talking about.
#masthead -> .slideout-toggleSeptember 12, 2022 at 7:10 am #2340508David
StaffCustomer SupportHi there,
so with your new custom menu – what happens to the current Off Canvas panel ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 12, 2022 at 4:28 pm #2341054johnaps
It opens the main selected off canvas panel i had set previously for my filter panel…
I tried using preventdefault on my click event handler to stop gp’s offside.js click handler from firing in that element i want as a trigger but it didnt work…
Any ideas?
September 13, 2022 at 4:09 am #2341453David
StaffCustomer SupportYou currently have the
slideout-toggle
element to open the Off Canvas Panel.What do you want this toggle to do instead ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 13, 2022 at 10:40 am #2341957johnaps
The slideout-toggle element inside the #masthead element isnt the only one on my pages…
There is another slideout-toggle later in the page where i use to for my filter offcanvas panel when the page is in smaller screen width…
First off let me start with, That i am trying to use your slideout-toggle inside #masthead, because it is already there… and i cant remove it…
IF i could remove it, i would make my own trigger element, simple as that…Now, so i wont repeat what i already wrote, please see where i am going with this by re-reading what i stated already, i think you must have got the gist of what i am trying to say here, now.
Hope i have given you a full picture!
I kindly await for your input!
September 14, 2022 at 3:34 am #2342516David
StaffCustomer SupportSo this element – just to be clear i have highlighted in this screenshot:
That does not look like it was added by the Theme, it looks like a custom element hooked into the site header.
If you don’t want it to open the GP Off Cavnas panel, then you would need to either:a) disable the GP Off Canvas Panel
OR
b) replace the
slideout-toggle
class in its HTML for something else.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 14, 2022 at 4:53 am #2342583johnaps
That does not look like it was added by the Theme, it looks like a custom element hooked into the site header.
I am not so sure about that David…
I switched from my child theme to the original and as you can see in the screenshot below the same element is still there!And disabling the gp off canvas panel would not be an option cause of the ease of usability it has with the wordpress widget’s…
Does your mind go anywhere as to where from this element is coming from?
And if yes, what can we do?September 14, 2022 at 5:41 am #2342613David
StaffCustomer SupportThe GP Off Canvas Toggle lives inside the Primary Navigation and its HTML is completely different.
Is it in a Hook Element ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 14, 2022 at 11:25 am #2343054johnaps
I am kinda slow it seems…
Thank you very much David!It was a hook you had gaven me for something years ago when i first purchased the theme!
September 15, 2022 at 3:18 am #2343531David
StaffCustomer SupportAwesome – glad 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.