Home › Forums › WoodMart support forum › Close off canvas sidebar after form submit
Close off canvas sidebar after form submit
- This topic has 10 replies, 2 voices, and was last updated 1 year, 9 months ago by Luke Nielsen.
-
AuthorPosts
-
February 18, 2023 at 12:15 pm #444246
Cioppi88ParticipantHi guys,
I recreate product archive template using your layout builder and elementor. All fine but if you take a look my website on mobile, you can see an off canvas sidebar opened by show column button. Inside the sidebar I put Berocket product filters (cause their Ajax filter are more flexible and much flexible). The problem is that sidebar stay opened even after filter will be applied when you submit the form. How can I close the sidebar after the form was submitted on mobile? ThanksFebruary 20, 2023 at 3:36 pm #444676
Luke NielsenKeymasterHello,
To better assist you with your request, we’ll need temporary admin access to your website. Can you please provide us with the necessary login credentials? We understand the sensitivity of this request, and we assure you that we will handle your information with the utmost confidentiality.
Looking forward to collaborating with you!
Kind Regards
February 20, 2023 at 3:51 pm #444684
Cioppi88ParticipantHere you are
February 21, 2023 at 1:32 pm #444983
Cioppi88ParticipantAny update here?
February 21, 2023 at 3:27 pm #445053
Luke NielsenKeymasterHi there!
I apologize for the delay!
We would like to request permission to switch to the parent/default theme, disabling all unnecessary plugins for testing purposes. As soon as we have completed our testing, we will enable everything back to the way it was.
Let us know if you have any questions or concerns.
Kind Regards
February 21, 2023 at 3:29 pm #445054
Cioppi88ParticipantObviously you can but you need to activate Berocket plugin in order to work with custom filters
February 22, 2023 at 11:26 am #445314
Luke NielsenKeymasterHello,
Seems that right now it works well, I would recommend checking out the video below.
https://monosnap.com/file/6F1YgIg6f4YHLQSAscmTSdNOiDyBqE
If there’s anything else you’d like to know, please don’t hesitate to ask.
Kind Regards
February 22, 2023 at 11:42 am #445319
Cioppi88ParticipantSorry but my question is different. I know the sidebar works what I asked for it’s related to close sidebar after submit filter. If you try your demo the left sidebar will close after the filter selection. So what I’m asking is if it possible to close the sidebar after submit form. Is there a jQuery code can I use?
February 22, 2023 at 4:41 pm #445433
Luke NielsenKeymasterHello,
Here’s a code that may be helpful for you to use. Please feel free to copy and paste it in Theme Settings -> Custom JS.
(function($) { $(document).on('berocket_ajax_filtering_end', function(){ var $colOffCanvas = $('[class*="wd-col-offcanvas"]'); if ($colOffCanvas.hasClass('wd-inited') && $colOffCanvas.hasClass('wd-opened')) { $colOffCanvas.removeClass('wd-opened'); $('.wd-close-side').removeClass('wd-close-side-opened'); } }) })(jQuery);
If you have any questions or encounter any issues, please don’t hesitate to let me know and I’ll be happy to assist you further.
Kind Regards
February 22, 2023 at 4:58 pm #445445
Cioppi88ParticipantWorks great! Thank you so much!!
February 22, 2023 at 5:33 pm #445458
Luke NielsenKeymasterHello,
We’re always here to help you in any way we can. If you have any questions, concerns, or need further assistance, please don’t hesitate to reach out to me or a member of our dedicated help desk team. Our goal is to provide you with the best possible service and support. Thank you for choosing us and have a great day!
Kind Regards
-
AuthorPosts
The topic ‘Close off canvas sidebar after form submit’ is closed to new replies.
- You must be logged in to create new topics. Login / Register