skip to Main Content

I have install a fresh wordpress with the DIVI theme.

WordPress Version: 4.5.2

DIVI Theme Version : 2.6.1

I having this error showing console.

enter image description here

2

Answers


  1. Although the other answer technically is correct (the syntax used in the selector isn’t allowed anymore), the solution isn’t to update jquery.js. The selector that is mentioned in the error is used by the Divi theme and the update of WordPress (that also updated jquery and/or jquery-migrate.js) now disallows it.

    The solution is to update your Divi theme. At this moment 2.7.5 is the most recent version. I just updated the theme on my WordPress site and the problem is gone.

    Login or Signup to reply.
  2. I had the same issue and had to escape quotes like this:
    Original code with error.

    var activeLink = location.pathname  
    $('a[href='+activeLink+']').closest('li').addClass('active'); 
    

    Introduced escaping double quotes

    var activeLink = location.pathname  
    $('a[href="'+activeLink+'"]').closest('li').addClass('active'); 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search