This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Uncaught SyntaxError: Unexpected token /

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Uncaught SyntaxError: Unexpected token / Reply To: Uncaught SyntaxError: Unexpected token /

#6941
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

I see the following text in the “No results text” parameter:

[code]<a href=/calificar>No se encontraron empresas. <strong>Agregala!</strong></a>[/code]

Unfortunately this is no longer possible to use HTML in the parameter there. It raised security concerns and I had to remove it.
Please remove HTML tags from the No results text option on the Layout Options -> Results layout panel.

You can still use that HTML though, by using result templating, which is much safer and update proof as well. Here is a quick tutorial link.

In your case you will have to first copy the wp-content/plugins/ajax-search-pro/includes/views/results/no-results.php file into a new folder named “asp” in your current theme folder. Then make the change on that copied file on line 30 to:

[html]<a href=/calificar>No se encontraron empresas. <strong>Agregala!</strong></a>[/html]

That should fix the problem 🙂