dsgdhtr_43654 2018-11-20 15:47 采纳率: 100%
浏览 83

在Woocommerce中只保留社交登录自定义选项

I install Plugin Woocommerce Social login from code canyon. And after we select product to add to cart, the customer have to choice which is manually login or using Social Login button. I would like customer to just have one choice which is using social login only instead of manually login.

You can see here, the two option of login enabled by Woocommerce Social login plugin:

Two option of login

How to remove Woocommerce default login form keeping the social login button functionality?

  • 写回答

1条回答 默认 最新

  • douchilian1009 2018-11-20 22:14
    关注

    To make customizations, you can override Woocommerce templates via your theme… First reed the following documentation, that explain how you can do that:

    Template structure & Overriding templates via a theme

    The related template to override is: myaccount/form-login.php

    Once you have copied form-login.php template from woocommerce plugin to your active themes's "woocommerce" folder, in a "myaccount" subfolder:

    1. open edit it
    2. remove the code from line 38 to line 58 (all the code inside the <form> tags).
    3. save

    That should only keep your "Two options social login form".

    评论

报告相同问题?

悬赏问题

  • ¥15 vscode的问题提问
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM