-
AuthorPosts
-
May 22, 2018 at 2:24 pm #960367
Hi,
I have a very simple .slideToggle function in the footer that with the version 4.2.6 works fine but with 4.3 doesn´t work:<script>
$(document).ready(function(){
$(‘#contactus’).click(function(){
$(‘#f’).slideToggle();
});
});
</script>
I had all the “performance” new tab options disabled, so that is not the problem… any idea why it doesn´t work with the new update?
Thanks in advanceMay 23, 2018 at 5:24 pm #961001Hey Sergio,
Where is this code placed? Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaMay 23, 2018 at 6:12 pm #961044Hi Victoria,
I have the code at the end of the footer.php archive in a child theme:<?php /* Always have wp_footer() just before the closing </body> * tag of your theme, or you will break many plugins, which * generally use this hook to reference JavaScript files. */ wp_footer(); ?> <script> $(document).ready(function(){ $('#contactus').click(function(){ $('#f').slideToggle(); }); }); </script> </body> </html>
May 25, 2018 at 10:49 am #962013Hi arreguisergio,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaMay 25, 2018 at 11:04 am #962018Hi Victoria,
of course. In this URL for example: https://vetusart.com/producto/sillas-chicle/
There is a button “Consultar precio” that shows/hides a form using that script. Now works because version 4.2.6 is installed, but if I update the version it stops working.
Any help will be welcome
Thanks!!
May 25, 2018 at 11:15 am #962024We had the same issue. I am not the programmer, but as far as i understood it’s the “$” that is causing the problem. If you replace it by “jquery” it should be working again, but like I said, I am not a programmer.
However it happend to us when we switched from 4.2.6 to 4.3.
May 25, 2018 at 11:31 am #962032Ey!!!!
It works fine with ‘jQuery’ instead of ‘$’!!! Case closed.
Thank you very much L+T and Victoria!
King regards
- This reply was modified 6 years, 5 months ago by arreguisergio.
May 27, 2018 at 3:13 pm #962768Hi arreguisergio,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.