steven530
Forum Replies Created
-
Forum: Plugins
In reply to: [Page scroll to id] Css classes not being addedAh thanks, I did notice the touchstart trigger.
Everything works as expected. You’ve been a great help, thanks Malihu!
Regards,
Steven.Forum: Plugins
In reply to: [Page scroll to id] Css classes not being addedThanks Malihu,
I’ve added your code to the footer.php file just before the closing body tags:
<script>
(function($){
$(window).on(“load”,function(){
$(document).on(“click”,”.primary-nav .menu-item ._mPS2id-h”,function(){
$(“.mobile-hamburger-toggle.is-active”).trigger(“touchstart”);
});
});
})(jQuery);
</script></body>
</html>It still scrolls to the section but isn’t closing/toggleing the menu.
Is the the right place to add the code, or maybe I doing something wrong?
Thanks,
Steven.Forum: Plugins
In reply to: [Page scroll to id] Css classes not being addedHi Malihu,
I have an outstanding issue using your plugin I hope you can help me with.
It’s more of a theme issue – I’ve contacted them but they’re not getting back to me and I’m hoping you can cast an eye over it… when clicking a link on the Mobile Menu to the same page the menu should toggle but it doesn’t.
I’ve Google’d it and have tried adding this to the ‘footer’ template file:
<script type=”text/javascript”>
jQuery(document).ready(function($){
$(‘#li a’).on(‘click’, function(){
$(“#nav”).hide();
$(“#mobile-hamburger-toggle”).removeClass(“is-active”);
});
});
</script>I’m assuming something like this should work but I may be struggling choosing the right CSS Selectors.
What do you think, is the the correct approach?
Thanks again,
Steven.Forum: Plugins
In reply to: [Page scroll to id] Css classes not being addedThat’s worked perfectly.
Thanks a lot… I would’ve spent a couple of hours setting max-widths etc.
I’ve left a review for your plugin.
Thanks again Malihu.
Rgds,
Steven.Forum: Plugins
In reply to: [Page scroll to id] Css classes not being addedHi Malihu,
Fantastic, that’s worked, thanks for your help and the plugin.
I just need to figure out how to get the themes default highlight and hover actions working and then I can start editing the content.
Thanks again for your help.
Rgds,
Steven.