Last active
April 5, 2021 15:32
-
-
Save imran-khan1/b181086772825d331d8c3535f8283a0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//flatsome display text after product detail page image, if product is on sale | |
function display_flatsome_after_product_images() { | |
global $product; | |
if ( $product->is_on_sale() ) | |
{ | |
echo '<div style="color:red; border:1px solid #ccc;">Limited time offer</div>'; | |
} | |
} | |
add_action('flatsome_after_product_images', 'display_text_product_box_after'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
se debe corregir esta linea para que funcione ?
function display_text_product_box_afte ()