简体   繁体   中英

Trying to override Woocommerce My Account page template

Essentially, I want to remove the registration form on the My Account page. I tried setting up the file structure in my Theme folder and everything looks correct. But when I try to make changes to the template nothing happens.

my-child-theme/woocommerce/myaccount/form-login.php

This is how I have it setup. Woocommerce detects the override in system status too. I tried adding a class to the register form so that I could hide the form using css but it doesn't appear in the code.

Any clues as to what I'm missing?

Thanks

尝试清除缓存,在wp-config文件中定义false缓存。

Hello Have you tried to put it in main theme with the same structure?? Or is there any woo commerce folder exists in your main theme.

Use this CSS in your style.css -

.entry-content #my-courses .col-2
     {
       display : none;
     }

hope this will help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM