Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #177913

    Is there a way to add a button (like Sign Up) in the header? I basically just need two things in the header on the right side – a Login link (easy via menu) and a Sign Up button (not sure how to do that).



    Hey franktw!

    You can refer to this link: http://codex.wordpress.org/Function_Reference/wp_register

    Edit header.php then add the code after the wp_nav:

    <a href="http://www.example.com/wp-login.php?action=register">Register</a>

    Replace http://www.example.com with your domain name.

    Best regards,


    I’m thinking of showing an actual button instead of a link. For example:


    Trying to create the “Buy Now” button.

    Thanks again



    You can add a class to a tag such as
    <a class="custom-button" href="http://www.example.com/wp-login.php?action=register">Register</a>
    then we can provide you CSS code to style it as your example


    • This reply was modified 4 years ago by  Yigit.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Button in Header’ is closed to new replies.