You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 2 days I have had a very strange error when I put my main menu in WP. I tried 2 different ways, the first one using the WP functions (register_nav_menus & wp_nav_menu). And the second way by simply putting the urls ("http://localhost:8888/theme_name/", ...) in the href of the links.
The weird thing is that both ways are working and have almost the same error msg:
Error in the first way (WP functions): Uncaught Error: Syntax error, unrecognized expression: http://localhost:3000/theme_name/
Error in the second way (url in href's): Uncaught Error: Syntax error, unrecognized expression: //localhost:3000/theme_name/
I use WPgulp to develop my WP theme locally with MAMP. So I have access to the back office and the WP theme via urls with 2 different ports (8888 & 3000): http://localhost:8888/theme_name/ => MAMP http://localhost:3000/theme_name/ => WPgulp (npm start to hot reload files etc.)
As mentioned above the links work well so should I just ignore this error that could come from this combination MAMP and WPgulp which have 2 different ports. Because the weird thing is that if I comment the menu (the 2 menus) there is no error and MAMP and WPgulp are also running at the same time...
Probably a silly question but thank you in advance for any information that might reassure me.
The text was updated successfully, but these errors were encountered:
Since 2 days I have had a very strange error when I put my main menu in WP. I tried 2 different ways, the first one using the WP functions (register_nav_menus & wp_nav_menu). And the second way by simply putting the urls (
"http://localhost:8888/theme_name/"
, ...) in the href of the links.The weird thing is that both ways are working and have almost the same error msg:
Error in the first way (WP functions):
Uncaught Error: Syntax error, unrecognized expression: http://localhost:3000/theme_name/
Error in the second way (url in href's):
Uncaught Error: Syntax error, unrecognized expression: //localhost:3000/theme_name/
I use WPgulp to develop my WP theme locally with MAMP. So I have access to the back office and the WP theme via urls with 2 different ports (8888 & 3000):
http://localhost:8888/theme_name/
=> MAMPhttp://localhost:3000/theme_name/
=> WPgulp (npm start to hot reload files etc.)As mentioned above the links work well so should I just ignore this error that could come from this combination MAMP and WPgulp which have 2 different ports. Because the weird thing is that if I comment the menu (the 2 menus) there is no error and MAMP and WPgulp are also running at the same time...
Probably a silly question but thank you in advance for any information that might reassure me.
The text was updated successfully, but these errors were encountered: