php - 在 Woocommerce 中的简短描述之后移动产品描述
问题描述
我已经使用了这个钩子的第一个选项(其他的没有用)-> Woocommerce Product Default Description for All Products
这就是它的外观(红色标记的文本是标准描述)
但是,我希望文本出现在产品描述之后。红色箭头在哪里,我想要标准文本。所以上面'in winkelmand'(意思是'添加到袋子')
我怎样才能做到这一点?
解决方案
那个对我也不起作用,所以我一直在寻找并找到了这个,它工作得很好
// Move Description to Under Price WooCommerce
function woocommerce_template_product_description() {wc_get_template( 'single-product/tabs/description.php' );}
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_product_description', 20 );
推荐阅读
- javascript - 如何将输入文件参数从 html 页面传递到 Javascript
- c - 数据数组的 mmap 函数
- kubernetes - Kubernetes 中的资源分配:如何调度 Pod?
- javascript - 如何将数组添加到 vue-kanban 块
- java - 云配置收到请求执行错误。来自 Eureka 服务器的 endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/}
- node.js - 在我的代码中使用 node-rdkafka 2.5.1 版本连接到 kafka,一段时间后连接崩溃
- redis - 如何在 Spring Boot 应用程序中使用 Redis 作为会话进行身份验证
- c - 如何将循环中获得的字符值附加到字符串中,以将其传递给 ShellExecute()?
- php - 如何从多个文件上传中删除图像
- c++ - 当我尝试在类中创建数组时,为什么会出现“无效使用非静态数据成员”错误?