Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Uendi

    (@uendi)

    I have already resolved it.

    Thanks.

    How did you resolve the problem?

    Thread Starter Uendi

    (@uendi)

    By adding filter to functions.php

    add_action( ‘register’ , ‘register_replacement’ );
    function register_replacement( $link ){
    if ( ! is_user_logged_in() ) {
    if ( get_option(‘users_can_register’) )
    $link = $before . ” . __(‘Register’) . ” . $after;
    else
    $link = ”;
    } else {
    $link = $before . ” . __(‘Your Title Here’) . ” . $after;
    }
    return $link;
    }

    and Header.php :

    <?php wp_register( $before, $after ); ?>

    Won’t these be lost if/when you update your theme?

    Thread Starter Uendi

    (@uendi)

    No, I create a child theme. I have copied the php file into my directory. So even there is an update, it won’t affect my setting.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sign In and Register show at the top of the site’ is closed to new replies.