最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Add username and password section in WooCommerce's my account page

programmeradmin4浏览0评论

I am using a WordPress website. In my account's registration section only the email field is showing. I want to add the username and password field too in the section. So the user can create an account in no time.

And when user create an account, they receive a confirmation link on an email. I want to disable that too. For this, I don't want to install any plugin. Here is the snapshot

I am using a WordPress website. In my account's registration section only the email field is showing. I want to add the username and password field too in the section. So the user can create an account in no time.

And when user create an account, they receive a confirmation link on an email. I want to disable that too. For this, I don't want to install any plugin. Here is the snapshot

Share Improve this question edited Apr 13, 2020 at 16:57 Yus asked Apr 13, 2020 at 16:40 YusYus 1155 bronze badges 5
  • You need to provide more info. Show the code you're using, list the theme, tell us what you have access to and what can be edited/customized. – Tony Djukic Commented Apr 13, 2020 at 20:24
  • @TonyDjukic I am using HitMag WordPress theme. Please let me know which code do I have to provide you to make it fix? – Yus Commented Apr 14, 2020 at 6:36
  • Are you using a child theme? If you're just using the HitMag theme as is then you don't have an option but to either install or create a plugin that does this. If you edit the HitMag theme then you either can't update it afterwards or if you do update it you'll have to keep re-writing your code. – Tony Djukic Commented Apr 14, 2020 at 16:58
  • @TonyDjukic no, I am not using child theme. Example/my-account page refer to woocommerce not to HitMag theme. – Yus Commented Apr 15, 2020 at 16:21
  • I understand that but you have to be able to put the code somewhere and you have a theme that's maintained and updated by another developer and WooCommerce, so there's really nowhere for you to add code short of building a plugin. – Tony Djukic Commented Apr 15, 2020 at 16:25
Add a comment  | 

2 Answers 2

Reset to default 0

To show the password field on the registration page, you’ll want to uncheck/deselect this: https://i.sstatic/0GGqL.png

Since you're using a theme from the WordPress marketplace you won't be able to edit it unless you create a child theme, or build your own plugin. Here's an alternative that could give you the results that you want. It's a tutorial featuring a free plugin that will allow you to achieve the results you're after.

https://wpeverest/blog/woocommerce-registration-form/

发布评论

评论列表(0)

  1. 暂无评论