Hi,
Thanks for your reply.
By using the above code I am able to create a button. But what I am actually looking is to replace my default wp-login with login/signup pop up.
I created a site in which I want user should be logged in to perform some task. So if they click any button firstly it will check whether the user is logged in or not. If not currently it’s opening the wp-login but I want login/Signup pop up.
by using your above code I have to create a button for each page. is there any option to replace my default wp-login with login/signup popup
Thanks in advance
@bamboovinoth did you find the solution.
I also need to open popup instead of the default login page at on click create post