编辑 woo commerce 特色产品小部件的 HTML [英] Edit HTML of woo commerce featured products widget

查看:24
本文介绍了编辑 woo commerce 特色产品小部件的 HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想修改woo-commerce特色产品小部件的HTML代码.问题是我在我的模板文件夹/插件文件夹中找不到它.

I want to modify HTML code of woo-commerce featured product widget. Problem is that I can't find it inside my template folder/plugin folder.

有人知道怎么修改woo-commerce的特色商品widget吗?

Does someone knows how to modify featured product widget of woo-commerce?

推荐答案

这是通过位于 /woocommerce/templates/ 的 content-widget-product.php 模板修改的代码>.

This is modified via the content-widget-product.php template, located in /woocommerce/templates/.

要覆盖此模板,请将:woocommerce/templates/content-widget-product.php 复制到 yourtheme/woocommerce/content-widget-product.php,并使复制文件(不是原始文件)中的任何必要修改.

To override this template, copy: woocommerce/templates/content-widget-product.php to yourtheme/woocommerce/content-widget-product.php, and make any necessary modifications in the copied file (not the original).

有关正确修改 WooCommerce 模板的信息,请查看有关覆盖 WooCommerce 模板的文档.

For information on correctly modifying Woocommerce templates, please see the docs on overriding WooCommerce templates.

这篇关于编辑 woo commerce 特色产品小部件的 HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆