• ansayaz

    (@ansayaz)


    hi i have create a nwe website.. and install theme… but on the header of the front page… there is login button .. once i click on that button it redirect to wordpres login website.. not to my website login page… here is the link where it will open after clicking on that button

    https://www.knivesfactory.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.knivesfactory.com%2Fmy-account

    i want to change that login to my website that is below link

    https://www.knivesfactory.com/my-account

    i have write below the PHP code of this header button please guide me how i can change it to my desire link…
    <li><a>" href="<?php echo wp_login_url(get_permalink()); ?>"><span class="fa fa-sign-in"></span><?php _e('Member Login', 'iamd_text_domain'); ?></a></li>

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    thank you

    • This topic was modified 9 years ago by Jan Dembowski.
    • This topic was modified 8 years, 12 months ago by bdbrown.
Viewing 1 replies (of 1 total)
  • Hi

    looks like you want to modify the theme’s login button’s URL to your custom login page.

    You can manually edit the theme file by simply replace <?php echo wp_login_url(get_permalink()); ?> to https://www.knivesfactory.com/my-account

Viewing 1 replies (of 1 total)

The topic ‘login button redirect to wrong website’ is closed to new replies.