Hi tagdiv,
1] After having updated theme to latest v7.5 , i installed ,activated the Mobile Theme plugin for the theme ..made the appropriate settings & disabled the “show log in” under the mobile options page of theme options..the theme still outputs the “log in menu” on visitor end on the mobile devices…
It shouldnt happen like this ? if the option is disabled it shud not show up in the visitor end ?
I have cleared cache of caching plugins too ,despite that it was showing it..
For now have disabled & removed the Mobile Theme plugin…the plugin is cool & i really want to make it work
2] Also i noticed this weird thing in my google alerts today, the mail link was one of our new tags. but the description which was showed by google below the title of our tag included these lines – “A password will be e-mailed to you.”
I visited that tag link & on checking its source code i found this code –
==============================
<div id=”login-form” class=”white-popup-block mfp-hide mfp-with-anim”>
<div class=”td-login-wrap”>
<i class=”td-icon-modal-back”></i>
<div id=”td-login-div” class=”td-login-form-div td-display-block”>
<div class=”td-login-panel-title”>Sign in</div>
<div class=”td-login-panel-descr”>Welcome! Log into your account</div>
<div class=”td_display_err”></div>
<div class=”td-login-inputs”><input class=”td-login-input” type=”text” name=”login_email” id=”login_email” value=”” required><label>your username</label></div>
<div class=”td-login-inputs”><input class=”td-login-input” type=”password” name=”login_pass” id=”login_pass” value=”” required><label>your password</label></div>
<input type=”button” name=”login_button” id=”login_button” class=”wpb_button btn td-login-button” value=”Login”>
<div class=”td-login-info-text”>Forgot your password? Get help</div>
</div>
<div id=”td-forgot-pass-div” class=”td-login-form-div td-display-none”>
<div class=”td-login-panel-title”>Password recovery</div>
<div class=”td-login-panel-descr”>Recover your password</div>
<div class=”td_display_err”></div>
<div class=”td-login-inputs”><input class=”td-login-input” type=”text” name=”forgot_email” id=”forgot_email” value=”” required><label>your email</label></div>
<input type=”button” name=”forgot_button” id=”forgot_button” class=”wpb_button btn td-login-button” value=”Send My Password”>
<div class=”td-login-info-text”>A password will be e-mailed to you.</div>
</div>
========================
As u can see that 2nd last line ,those words ..exactly what appeared in google alerts..i am wondering why ? bcoz we dont use login system for members..also in theme settings “Show sign in / join” is disabled
And that code is present in all pages, now that i carefully inspected all…
what files do i need to edit so i can totally remove those divs coz never really gonna need that log in stuff,dont wanna cause any security compromise…
Awaiting reply
Regards
Hi,
1. Yes it really should not show the login section if it’s disabled from the theme panel http://screencast.com/t/yroFZJjOunV
Once I disabled the login on the mobile theme settings it did not show up anymore. You probably have a strong cache enabled so the option was still served from the cache. Please try again and clear cache afterwards.
If you still have issues with the sign-in/join on the m,obile theme please try to disable all plugins except visual composer, clear cache and rest cdn files. Then test again.
2. If you do not need the login at all on your site, you will have to remove those lines from the code as the theme panel only hides the options but does not remove the code for the login. Please follow this topic to see how you can remove the login tags:
https://forum.tagdiv.com/topic/how-to-remove-the-invisible-login-from-bots-view/
Thank you!
Thanks Bogdan, as per that topic instructed , i just need to remove this line only from all those 4 td_top_bar_template php files –
locate_template('parts/header/td-login-modal.php', true);
from this code :
<?php if (td_util::get_option('tds_top_bar') != 'hide_top_bar') { ?>
<div class="top-bar-style-4">
<?php locate_template('parts/header/top-widget.php', true); ?>
<?php locate_template('parts/header/top-menu.php', true); ?>
</div>
<?php }
locate_template('parts/header/td-login-modal.php', true);
?>
So that final code will look like following ?
<?php if (td_util::get_option('tds_top_bar') != 'hide_top_bar') { ?>
<div class="top-bar-style-4">
<?php locate_template('parts/header/top-widget.php', true); ?>
<?php locate_template('parts/header/top-menu.php', true); ?>
</div>
<?php }
?>
will doing that also remove the login codes form the mobile theme plugin ?
I think it wud be best to remove it from mobile theme plugin too for our site …for that which files codes will i need to edit & remove ?
Thanks
Awaiting reply
Regards
Hello,
For the mobile theme you can find the code here:
http://screencast.com/t/Y4pXW34sR
Thanks.
