Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save imran-khan1/b181086772825d331d8c3535f8283a0d to your computer and use it in GitHub Desktop.
Save imran-khan1/b181086772825d331d8c3535f8283a0d to your computer and use it in GitHub Desktop.
<?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');
@cortinashd
Copy link

se debe corregir esta linea para que funcione ?

function display_text_product_box_afte ()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment