我试图用子主题修改wordpress主题。我的父主题在functions.php中具有以下功能:
require_once(get_template_directory() . "/includes/theme-styles.php");我想更改它以包含我自己的样式表:
require_once(get_template_directory() . "../child-theme/includes/theme-styles.php");我可以在子主题的functions.php中包含此函数,但是由于首先加载了子主题的functions.php,因此我看不到任何方法来覆盖/阻止父主题的require_once()。有什么方法可以做到这一点,或者有可能的解决方法?谢谢
                  @PieterGoosen主题styles.php包含了“()require_once”是通过加载主题自定义CSS /脚本的functions.php
                
                
                  
                    —
                    亚历
                    
                  
                
              
                  如果不包括该文件,则可能会丢失一些所需的样式文件。最好包括自己的style.css文件以及父主题样式表。
                
                
                  
                    —
                    redelschaap 
                    
                  
                
              
theme-styles.php