Mega Menu not working correctly

Posted in: Newspaper
Post count: 23

Hello I am using your Mega Menu feature on one of our homepages. (URL: https://www.stradeco.com)
We’re using a http Basic Auth to protect our wp-admin folder for login etc.
Every Time I try to search something the Basic Auth window from my browser pops up and wants the username and password to authorize.
The same happens then I hover through specific categories in the mega menu.
Can you please help?

Post count: 23

I’ve tried to check my chrome browser while hovering the Mega Menu.
Then the error appears. Chrome says that it was unable to load that file (401):
https://www.stradeco.com/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=8.7.4

and exactly this file is in the protected Basic Auth. wp-admin folder.

Post count: 23

Alright I think I’ve fixed it. I excluded the admin-ajax.php from the Basic Auth. and the Mega Menu & Search option were working fine.

But is it normal that your theme is requiring files from the wp-admin folder ?
I also run two websites on other themes, and they needn’t access to the wp-admin folder.

Post count: 20688

Hi,

There are various elements in the theme that use admin-ajax. If this is blocked by a security implementation or firewall there will be problems with the theme and plugins. When ajax is called and used the request goes through the admin-ajax.php file in the wp-admin folder. It should be accessible to the theme and there will be no problems.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.