【发布时间】:2016-03-01 14:40:01
【问题描述】:
这是我想添加一些 CSS 的脚本:
// Download URLs
if ( $show_download_links && $_product->exists() && $_product->is_downloadable() ) {
$download_files = $order->get_item_downloads( $item );
$i = 0;
foreach ( $download_files as $download_id => $file ) {
$i++;
if ( count( $download_files ) > 1 ) {
$prefix = sprintf( __( 'Download %d', 'woocommerce' ), $i );
} elseif ( $i == 1 ) {
$prefix = __( 'Download', 'woocommerce' );
}
echo "\n" . $prefix . '(' . esc_html( $file['name'] ) . '): ' . esc_url( $file['download_url'] );
}
}
// allow other plugins to add additional product information here
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order );
}
它是 Woocommerce 电子邮件(已完成订单)的一部分。我想在那里添加一些 CSS,我该怎么做?
【问题讨论】:
-
将其添加到位于主题中的 style.css...
标签: php html css wordpress woocommerce