trisonic
Forum Replies Created
-
Forum: Plugins
In reply to: [Max Mega Menu] mobile menu closes immediately after clickingThank you! Your modification worked!
A curiosity:
in the MMM settings there is this option enabled:
“Unbind JavaScript EventsTo avoid conflicts with theme menu systems, JavaScript events which have been added to menu items will be removed by default.”.
By enabling this option, shouldn’t I have had problems with the default theme? Or am I wrong?
Thank you
Forum: Plugins
In reply to: [Max Mega Menu] mobile menu closes immediately after clickingHi
I have done many tests and changed several settings.
I think I have figured out the problem:
The problem occurs on the first tap from a smartphone on menu items that do not have a link but are # (and disabled within the plugin submenu – disable links).
When I click on these menu items, on the first tap, the sub-menu expands and immediately closes again.
Only to work correctly immediately afterwards.Same problem for any other menu item without links: it opens and closes immediately on the first tap, only to respond correctly immediately afterwards.
I had a chat with chatgpt doing some debugging, and the only code snippet that worked was this:
add_action('wp_footer', function() {
?>
<script>
(function() {
if (window.innerWidth > 1024) return; // only on mobile/tablet
const menuItems = document.querySelectorAll('.mega-menu-item-has-children');
menuItems.forEach(function(item) {
const link = item.querySelector('a.mega-menu-link');
let tappedOnce = false;
if (!link) return;
link.addEventListener('touchend', function(e) {
// If the menu is already open, we do nothing
if (item.classList.contains('mega-toggle-on')) {
tappedOnce = false;
return;
}
if (!tappedOnce) {
e.preventDefault();
e.stopPropagation();
tappedOnce = true;
// Opens the submenu by forcing the class (compatible with Max Mega Menu)
item.classList.add('mega-toggle-on');
item.classList.add('open');
// Reset after 1 sec
setTimeout(() => {
tappedOnce = false;
}, 1000);
}
}, { passive: false });
});
})();
</script>
<?php
});With this little code the first tap works without animation (but at least it doesn’t close again immediately!).
Clearly I have disabled it and I leave it to you to ask for help, you will surely know how to help me/us
Thank you!
sent
I did some more testing-I think there is some setting on the page that restricts its access by software-at least I think so.
debug error:
[03-Apr-2025 10:36:19 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property “connected_version” on null in /mnt/disk2/www/isafom/wp-content/plugins/custom-facebook-feed/inc/Builder/CFF_Source.php:165
Stack trace: 0 /mnt/disk2/www/isafom/wp-includes/class-wp-hook.php(324): CustomFacebookFeed\Builder\CFF_Source::builder_update_multiple() 1 /mnt/disk2/www/isafom/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 2 /mnt/disk2/www/isafom/wp-includes/plugin.php(517): WP_Hook->do_action() 3 /mnt/disk2/www/isafom/wp-admin/admin-ajax.php(192): do_action() 4 {main}thrown in /mnt/disk2/www/isafom/wp-content/plugins/custom-facebook-feed/inc/Builder/CFF_Source.php on line 165
Hello
I tried logging in as administrator but I have the same problem. It doesn’t add the page for me and stays stuck in the same state.
The app in the facebook account has all permissions and I didn’t understand where the problem could be.Could you guys help me?
- This reply was modified 1 year, 2 months ago by trisonic.
Is there any way to show the feed of a page that I am not an administrator of?
I figured out the problem: I must be among the administrators of the page
I thought you could post feeds from a page I am not an administrator of!
I did as you asked: yes facebook is all ticked on active
and I don’t have active feeds on wordpress because I can’t link facebook.
i don’t understand the problemThanks.
Is any way to delete the appointments on the front end?
Regards
Month
yes
Ok.
I want to add the same information from the booking form:
<label for="wbk-name">Nome</label>[text* wbk-name class:wbk-text id:wbk-name] <label for="wbk-dest">Destinazione</label>[text* wbk-dest class:wbk-text id:wbk-dest] <label for="wbk-comment">Note</label>[textarea wbk-comment class:wbk-textarea id:wbk-comment]In this case: id:wbk-name, id:wbk-dest and id:wbk-comment
Regards
Ok. I will check by myself about that.
Is there any possibility to allow user to delete a booked slot?
Ok, thanks.
It works!Is there any limitations about the number of the service that i can use in the lite version?
regards