/*** SHORTCODES ***/
/* [CLEAR] shortcode */
function doInsertClear() {
return( '
');
}
add_shortcode('CLEAR','doInsertClear');
/* [DIVIDER] shortcode */
function doInsertDivider() {
return( '
');
}
add_shortcode('DIVIDER','doInsertDivider');
/* MAIN MENU TEXT */
function et_header_after_main_navigation () {
echo '
';
}
add_action( 'et_header_top', 'et_header_after_main_navigation' );
// Add 'click for details' button beneath each product rendered by divi Shop
add_action( 'woocommerce_after_shop_loop_item', 'my_after_product_preview', 20 );
function my_after_product_preview() {
global $product;
$productID = $product->id;
echo ('');
}
// Change WooCommerce "Related products" text
add_filter('gettext', 'change_rp_text', 10, 3);
add_filter('ngettext', 'change_rp_text', 10, 3);
function change_rp_text($translated, $text, $domain)
{
if ($text === 'Related products' && $domain === 'woocommerce') {
$translated = esc_html__('MORE OPTIONS', $domain);
}
return $translated;
}
?>
Contact Us - The Story of a Lifetime