Removing Login code from all pages - by Tim

This topic has 14 replies, 2 voices, and was last updated 6 years, 11 months ago ago by Rose Tyler

  • Avatar: gpexpert
    Tim
    Participant
    March 28, 2017 at 03:14

    hello,

    I received the below email from Google. I believe this is due to the Legenda code having in all pages the potential to activate a front-end username/password login area. Google is detecting that and seeing that my site doesn’t use https it is creating that warning to users. How can I remove the login code from all my site’s pages?

    Nonsecure Collection of Passwords will trigger warnings in Chrome 56 for http://www.gopavers.com/

    To: owner of http://www.gopavers.com/

    Beginning in January 2017, Chrome (version 56 and later) will mark pages that collect passwords or credit card details as “Not Secure” unless the pages are served over HTTPS.

    The following URLs include input fields for passwords or credit card details that will trigger the new Chrome warning. Review these examples to see where these warnings will appear, and so you can take action to help protect users’ data. The list is not exhaustive.

    13 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 29, 2017 at 14:01

    Hello,

    You can check it with official WooCommerce theme – Storefront.
    I’m sorry but this is not theme issue and it’s not related to our theme.

    Regards,
    Rose Tyler.

    Avatar: gpexpert
    Tim
    Participant
    March 30, 2017 at 04:10

    I don’t understand. Check what with Storefront? Do you know what I’m trying to explain? It seems every page of the legenda theme has code for a front-end login system. I’d like to know how to remove that code.

    
    <div class="modal-body">
    												<form method="post" class="login">
    							<p class="form-row form-row-first">
    								<label for="username">Username or email <span class="required">*</span></label>
    								<input type="text" class="input-text" name="username" id="username" />
    							</p>
    							<p class="form-row form-row-last">
    								<label for="password">Password <span class="required">*</span></label>
    								<input class="input-text" type="password" name="password" id="password" />
    							</p>
    							<div class="clear"></div>
    
    							<p class="form-row">
    								<input type="hidden" id="_wpnonce" name="_wpnonce" value="3e7e9a9305" /><input type="hidden" name="_wp_http_referer" value="/pavers-prices/" />								<input type="submit" class="button filled active" name="login" value="Login" />
    								<a class="lost_password" href="http://www.gopavers.com/account/lost-password/">Lost Password?</a>
    								<a href="http://www.gopavers.com/account/" class="right">Create Account</a>
    							</p>
    						</form>
    					</div>
    
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 30, 2017 at 07:19

    Hello,

    Oh I see, please add this code in function.php file of your child theme:
    remove_action('after_page_wrapper', 'etheme_login_form_modal');
    Please read how to create the child https://www.8theme.com/demo/docs/legenda/index.html#!/child_theme

    Regards,
    Rose Tyler.

    Avatar: gpexpert
    Tim
    Participant
    March 31, 2017 at 02:58

    Thanks. I added that to my functions.php file of my child theme but for some reason I’m still seeing that login code.

    http://www.gopavers.com/

    Tim

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 31, 2017 at 13:48

    Hello,

    Could you please provide wp-admin and FTP access in Private Content so we could check it?

    Regards,
    Rose Tyler.

    Avatar: gpexpert
    Tim
    Participant
    April 3, 2017 at 07:15

    Sure. I’ve added the login credentials in the private message. This is for my staging site, but I’ve added the code you provided above to the functions.php file as well.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 4, 2017 at 09:04

    Hello,

    Sorry, but we can’t connect to your FTP with provided credentials. Please check them and give us the correct ones. Thank you.

    Regards,
    Rose Tyler.

    Avatar: gpexpert
    Tim
    Participant
    April 11, 2017 at 07:08

    Sorry for my delayed response, I was traveling. Looks like in provided the incorrect SFTP password, I added the correct one in the private reply.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 11, 2017 at 12:36

    Hello,

    We can’t connect via FTP getting the error:
    Error: Connection timed out
    Error: Failed to retrieve directory listing

    Please check it.

    Regards,
    Rose Tyler.

    Avatar: gpexpert
    Tim
    Participant
    April 14, 2017 at 02:14

    So sorry, added new info in the Private Response. This should definitely work, just checked myself

    Tim

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 14, 2017 at 13:14

    Hello,

    Fixed. Please check.

    Regards,
    Rose Tyler.

    Avatar: gpexpert
    Tim
    Participant
    April 14, 2017 at 13:31

    Thanks, yes I see it working. This is my staging and I need to apply it to my live site. Can you tell me hat you adjusted so I can do that myself?

    Tim

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 14, 2017 at 13:38

    Hello,

    You’re welcome!
    Please use this code in function.php file of child theme:

    function etheme_login_form_modal(){
        return;
    }

    Regards,
    Rose Tyler.

  • Viewing 14 results - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.