Hi, i’ve deactivated the “SHOW SIGN IN / JOIN” option in my theme panel, removed all “Header login” elements from my cloud templates with TD Composer, but the modal code still shows up in my frontend and i can still use it to login, register and request a new password.
This modal is really unsafe as it has no captcha nor any other check.
In 2021 it is optimistic at the very least.
How can i prevent the modal’s code from showing up in my source code and in comments?
I can’t find any template to overwrite in my child theme to remove it .
If anyone’s interested, i’ve at least disabled the unsafe ajax calls, adding this code to my child theme’s functions.php :
add_action('wp_ajax_nopriv_td_mod_login','my_theme_disable_ajax', 0);
add_action('wp_ajax_td_mod_login', 'my_theme_disable_ajax', 0);
add_action('wp_ajax_nopriv_td_mod_register', 'my_theme_disable_ajax', 0);
add_action('wp_ajax_td_mod_register', 'my_theme_disable_ajax', 0);
add_action('wp_ajax_nopriv_td_mod_remember_pass', 'my_theme_disable_ajax', 0);
add_action('wp_ajax_td_mod_remember_pass', 'my_theme_disable_ajax', 0);
function my_theme_disable_ajax(){
die(json_encode(array('login', 0, __td('Ooops... Error 404', TD_THEME_NAME))));
}
Thanks
it also creates another problem. when an article is published in the google news snippets head is displayed and not the article information how can I solve the problem
Yes, lets please get rid of this trash code in the next update – it has started to flash up on my front-end load now too after updating to the latest Newspaper theme.