Registration button and login
Hello everyone,
Can someone tell me if it is possible to delete the log and logon button since I do not want to use it, or finally change the url …
Thank you.!!!
Question is closed for new answers.
Rahul Aryan selected answer
Hi Koke!
You must override the ‘answer-form.php’ file.
- create a ‘anspress’ folder in your active theme folder (ex., wp-content/themes/twentyseventeen/anspress)
- copy the ‘answer-form.php’ file from the template folder of anspress ( wp-content/plugins/anspress-question-answer/templates ) to the folder created in step 1
- edit the file to hide the login buttons. I commented the line 35 that call the function to print the buttons -> ap_get_template_part(‘login-signup’ )
Hope this helps,
Jorge
Stacy commented on answer
![](https://secure.gravatar.com/avatar/748160f453d5361d96d44846ebdd6c14?s=30&d=https%3A%2F%2Fanspress.net%2Fwp-content%2Fuploads%2Fap_avatars%2Ff816dc0acface7498e10496222e9db10.jpg&r=g)
koke2819 commented
Super, Thank you 🙂
![](https://secure.gravatar.com/avatar/f46f871149d9a16d3dfa85ec3757e1ed?s=30&d=https%3A%2F%2Fanspress.net%2Fwp-content%2Fuploads%2Fap_avatars%2Fc3395dd46c34fa7fd8d729d8cf88b7a8.jpg&r=g)
Stacy commented
Can you explain the simpler override way? Would be great to have this as a settings option since there’s social logins. Or can I change the url the widget’s login goes to to a front end page where a login form is ?
![](https://secure.gravatar.com/avatar/f46f871149d9a16d3dfa85ec3757e1ed?s=30&d=https%3A%2F%2Fanspress.net%2Fwp-content%2Fuploads%2Fap_avatars%2Fc3395dd46c34fa7fd8d729d8cf88b7a8.jpg&r=g)
Stacy commented
What would be the css for hiding it please?
Or simply by overridng login-signup.php and remove all contents of this file. 🙂