Home Forums Blogary WordPress Theme How to move the "Sign in" link to header

This topic contains 0 replies, has 1 voice, and was last updated by  BWSM 2 years, 6 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #6573

    BWSM
    Keymaster

    1. Find the ../template/header.php, paste the code after line 70:

    <?php 
            	if(!is_user_logged_in()){
                    echo '<a class="subscribe-foot-link-a" href="' . esc_url(wp_login_url()) . '">' . __('Sign in','ux') . '</a>';
    				echo '<a class="subscribe-foot-link-a" href="' . esc_url(wp_registration_url()) . '">' . __('Sign up','ux') . '</a>';
                }else{
    				if(function_exists('pmpro_has_membership_access')){
    					echo '<a class="subscribe-foot-link-a" href="' . pmpro_url("account") . '">' . __('My Account','ux') . '</a>';
    				}
                    echo '<a class="subscribe-foot-link-a" href="' . wp_logout_url() . '">' . __('Sign Out','ux') . '</a>';
                } ?>

    Refer: https://www.dropbox.com/s/tmymq43oes05yx0/QQ20150309-1.jpg?dl=0

    2. remove the “Sign in” link in footer: https://www.dropbox.com/s/jpr2etjwwvgn2hj/QQ20150309-2.jpg?dl=0
    the widget would be shown here.

    Best

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.