how-to-add-wp-links-at-the-bottom

This topic contains 8 replies, has 3 voices, and was last updated by  Stiofan O’Connor 6 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #1542

    Joe Ve
    Buyer
    Post count: 27

    I like to add the other WP links [Account, logoff, profile .. etc ] to add to them so the user could go from any form to the other ..

    How can I do that

    #1547

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    UsersWP is integrated with the WP Menu system.

    Go to Appearance > Menus

    If you don’t see the UsersWP options, go to the top of the screen and open “Screen Options” and select UsersWP.

    Then you can add the available items to whichever menu you like.

    #1566

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You can add things with hooks like

    
    
    add_action('uwp_template_after', '_my_template_after_changes');
    function _my_template_after_changes($template){
    
        If($template=='change'){
            echo "text after the change pass template";
        }elseif($template=='register'){
            echo "text after the register template";        
        }
     
    }

    templates are:
    ‘register’
    ‘users’
    ‘profile’
    ‘account’
    ‘reset’
    ‘change’
    ‘forgot’
    ‘login’

    Thanks,

    Stiofan

    #1603

    Joe Ve
    Buyer
    Post count: 27

    Maybe I was not clear.
    I added the code you suggested and it did not as I planned.
    Look at change password: At the bottom, you have Account and Profile
    I want to add the same links to Account as well.

    So you see where I put “?” in Edit Account ??

    #1613

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The title looks like the page title, if you want to remvoe it you would probably be best hiding it with CSS.

    The code i gave you only lets you add links below the template, if you want to directly change the template please see here: https://userswp.io/docs/override-templates/

    Thanks,

    Stiofan

    #1661

    Joe Ve
    Buyer
    Post count: 27

    I try to add the costume files but it did not work. I added a testing line. and it did not show up ..

    Could you please direct me where I need to add the copy of login.php??
    I added :
    /wp-content/themes/GDF_child/userswp
    /wp-content/themes/GeoDirectory_framework/userswp

    none worked
    Thanks

    #1667

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    If GDF is your active theme it would be
    /wp-content/themes/GDF_child/userswp/login.php

    Stiofan

    #1674

    Joe Ve
    Buyer
    Post count: 27

    Thanks a lot for your help ..
    I like to edit some of the core functions :
    like :
    \userswp\includes\class-profile.php
    I like to add “change password and log off ”
    What would be the best practice??
    I modified :

    
    
    <?php if ($account_page && is_user_logged_in() && (get_current_user_id() == $user->ID) && $can_user_edit_account) { ?>
                        <div class="uwp-edit-account">						
    						<?php
    							echo '<li><a href="'.get_permalink($change_page).'" title="Change Password"><i class="fa fa-key"></i></a></li>';
    							echo '<li><a href="'.get_permalink( $account_page ).'" title="Edit Account"><i class="fa fa-edit"></i></a></li>';
    							echo '<li><a href="'.$logout_url.'"><i class="fa fa-sign-out" title="Log Out"></i></a></li>';
    						?>
                        </div>
                    <?php } ?>
    #1677

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You should not edit any core files, you should be able to do that via template?

    Stiofan

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket