Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 advance

    #961001

    Hey 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,
    Victoria

    #961044

    Hi 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>
    #962013

    Hi arreguisergio,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #962018

    Hi 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!!

    #962024

    We 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.

    #962032

    Ey!!!!

    It works fine with ‘jQuery’ instead of ‘$’!!! Case closed.

    Thank you very much L+T and Victoria!

    King regards

    • This reply was modified 5 years, 11 months ago by arreguisergio.
    #962768

    Hi arreguisergio,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.