html - How can I add CSS to a PHP script? -
this script on i'd add css :
// download urls if ( $show_download_links && $_product->exists() && $_product->is_downloadable() ) { $download_files = $order->get_item_downloads( $item ); $i = 0; foreach ( $download_files $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 add additional product information here do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order ); }
it part of woocommerce email (completed order). i'd add css there, how can ?
according woocommerce documentation, more powerful (and advanced) way customize order emails override email template file. woocommerce uses convenient templating system allows customize parts of site (or emails) copying relevant template file theme, , modifying code there. each of email types has template file content
can check woocommerce documentation here
Comments
Post a Comment