【问题标题】:WooCommerce Function missing in Storefront functions店面功能中缺少 WooCommerce 功能
【发布时间】:2020-01-17 13:38:44
【问题描述】:

我是开发 Wordpress 和 WooCommerce 的新手,我正在尝试使用子主题自定义 Storefront 主题。

例如,我想删除header.php的产品搜索。

在 header.php 中有一条注释:

* @hooked storefront_product_search                   - 40

操作“storefront_header”

但在 storefront-template-hooks.php 中,我无法找到添加到函数“storefront_product_search”的操作,如前所述。

当我在 storefront-template-functions.php 中搜索函数“storefront_product_search”时,我也没有找到。

这个函数在哪里?

另外一个问题,有没有用于 php/wordpress 开发的前向导航 IDE?

我目前正在使用 Visual Studio Code

【问题讨论】:

  • 搜索店面文件夹中的所有文件,而不是单个文件
  • 谢谢,我在“storefront-woocommerce-template-functions.php”文件中找到了它。只是为了确定,为什么这个文件中的函数而不是“storefront-template-functions.php”?

标签: php wordpress woocommerce


【解决方案1】:

此视频对您有帮助 - (https://www.youtube.com/watch?v=LcwKue77uOY)

你只需要添加额外的 css

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-17
    • 2022-01-21
    • 2021-06-15
    • 2017-06-05
    • 1970-01-01
    相关资源
    最近更新 更多