Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gygulance

    (@gygulance)

    Thanks! It works to some extent. but suppose I want to add some classes to input element of login form in widget area only. can’t be done just by css.

    It should’ve worked! if there’s a way I can see your code in file, maybe I will help you more.

    you can simply do it by modifying form-login.php
    steps:
    1- copy login-form.php file from TML plugin folder and paste it into your theme folder

    2- open login-form.php in your theme folder with any editor to edit it according to followings

    to remove ‘Remember me’ section:
    2-a) find <p class="forgetmenot">
    2-b) delete until you see </p>
    to remove ‘Lost Passwords’:
    2-a)find <?php $template->the_action_links( array( 'login' => false ) ); ?> and delete it
    2-b) copy below instead of it:

    <?php if ( $action_links = $template->get_action_links(   $args ) ) {
    	echo '<ul class="tml-action-links">' . "\n";
    	foreach ( (array) $action_links as $link ) {
    		if($link['title'] != 'Lost Password')
    			echo '<li class= col-md-3><a href="' . esc_url( $link['url'] ) . '" rel="nofollow">' . esc_html( $link['title'] ) . '</a></li>';
    
    	}
    	echo '<ul>';
    } ?>

    4- save the file and close it.

Viewing 3 replies - 1 through 3 (of 3 total)