• Resolved ismaele87

    (@ismaele87)


    I got this error on the homepage of my site

    Uncaught TypeError: Cannot read property ‘querySelector’ of null
    at cbpHorizontalSlideOutMenu._init (frontend.min.js?ver=1.1.5:408)
    at new cbpHorizontalSlideOutMenu (frontend.min.js?ver=1.1.5:398)
    at frontend.min.js?ver=1.1.5:499
    at frontend.min.js?ver=1.1.5:501
    at frontend.min.js?ver=1.1.5:503

    Could you help me?
    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 16 replies (of 16 total)
  • @stillewateren same question… I found this code on StackOverflow and it solved my problem partially. (Hope it might help)

    /**
     * Move jQuery to the footer. 
     */
    function wpse_173601_enqueue_scripts() {
        wp_scripts()->add_data( 'jquery', 'group', 1 );
        wp_scripts()->add_data( 'jquery-core', 'group', 1 );
        wp_scripts()->add_data( 'jquery-migrate', 'group', 1 );
    }
    add_action( 'wp_enqueue_scripts', 'wpse_173601_enqueue_scripts' );
Viewing 16 replies (of 16 total)
  • The topic ‘querySelector’ of null’ is closed to new replies.