【发布时间】:2020-08-20 10:47:39
【问题描述】:
我刚刚更改了 class-wc-frontend-scripts.php 文件的这一部分,该文件位于 Woocommerce 的“includes”文件夹中:
'flexslider' => apply_filters( 'woocommerce_single_product_carousel_options',
array(
'rtl' => is_rtl(),
'animation' => 'fade',
'easing' => 'swing',
'smoothHeight' => true,
'directionNav' => false,
'controlNav' => true,
'slideshow' => true,
'touch' => true,
'animationSpeed' => 1200,
'slideshowSpeed' => 3500,
'animationLoop' => true, // Breaks photoswipe pagination if true.
'allowOneSlide' => true,
'prevText' => "<", //String: Set the text for the "previous" directionNav item
'nextText' => ">", //String: Set the text for the "next" directionNav item
)
),
如何将其转移到子主题?
【问题讨论】:
标签: php wordpress woocommerce product flexslider