Fungsi Membuka Tag Bagian CSS Baru

1
2
3
4
5
6
7
8
9
10
11
// attach my open 'section' function to the before product summary action
add_action( 'woocommerce_before_single_product_summary', 'my_non_image_content_wrapper_start', 20 );
// attach my close 'section' function to the after product summary action
add_action( 'woocommerce_after_single_product_summary', 'my_non_image_content_wrapper_end', 20 );
 
//This function opens a new css section tag called "no-image-wrap" to the page HTML before all of the woocommerce "stuff" except images
function my_non_image_content_wrapper_start() {
 echo '<section id="no-image-wrap">';
}
//This line adds the HTML to the page to end the new "no-image-wrap" section
function my_non_image_content_wrapper_end() { echo '</section>'; }
Bored Bee