Viewing 8 posts - 1 through 8 (of 8 total)
  • #147698
    geomatani
    Member
    Post count: 129

    Whats the best way to create and place “Register” link on header next to login.

    #147712
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Inside this file neighborhood\includes\swift-framework\sf-content-display\sf-header.php
    You will find the line below, that where you can add code next to the login link.

    
    $aux_links_output .= '<li><a href="'.$login_url.'">'. __("Login", "swiftframework") .'</a>'. "\n";		

    -Rui

    #147900
    geomatani
    Member
    Post count: 129

    Rui,

    I dont get it.
    I am editing \sf-header.php file.
    I see the Login_url code you said above.

    What do I have to do here?

    #148102
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code:-

    $aux_links_output .= '<li><a href="'.$login_url.'">'. __("Login", "swiftframework") .'</a>'. "\n";	
    
    Change to :-
    $aux_links_output .= '<li><a href="'.$login_url.'">'. __("Login", "swiftframework") .'</a>'. "\n";	
    $register_url = wp_registration_url();
    $aux_links_output .= '<li><a href="'.$register_url.'">'. __("Register", "swiftframework") .'</a>'. "\n";

    Thanks
    Mohammad

    #149198
    geomatani
    Member
    Post count: 129

    Thanks Guys,

    I did that and also replaced ‘.$register_url.’ with My Account URL, so that customer can register with woocommerce page and not wordpress page.

    It works fine, just wanted to know if that’s OK?

    #149201
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Of course it is, since it doesn’t give any error.
    -Rui

    #149203
    geomatani
    Member
    Post count: 129

    Sounds good.
    Thanks For helping

    #149204
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem.
    -Rui

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register