Forked from imran-khan1/flatsome_display_text_after_product_image.php
Created
March 17, 2020 12:47
-
-
Save KoolPal/553db42a4f8fb3136c6804aedd79bde0 to your computer and use it in GitHub Desktop.
This file contains 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