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
| function overriding_shortcode_to_remove_backslash($atts, $content = null) { | |
| global $flatsome_opt; | |
| $sliderrandomid = rand(); | |
| extract(shortcode_atts(array( | |
| 'name' => '', | |
| 'company' => '', | |
| 'stars' => '5', | |
| 'font_size' => '', | |
| 'text_align' => '', | |
| 'image' => '', |
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
| function functions_to_remove_tooltip_from_instagram($atts, $content = null) { | |
| $sliderrandomid = rand(); | |
| extract(shortcode_atts(array( | |
| 'title' => '', | |
| 'style' => 'outline', | |
| 'align' => '', | |
| 'scale' => '', | |
| 'defaults' => '', | |
| 'twitter' => '', | |
| 'facebook' => '', |
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
| function my_wc_custom_get_price_html( $price, $product ) { | |
| if ( $product->get_price() == 0 ) { | |
| if ( $product->is_on_sale() && $product->get_regular_price() ) { | |
| $regular_price = wc_get_price_to_display( $product, array( 'qty' => 1, 'price' => $product->get_regular_price() ) ); | |
| $price = wc_format_price_range( $regular_price, __( 'Free!', 'woocommerce' ) ); | |
| } else { | |
| $price = '<span class="amount">' . __( 'Free!', 'woocommerce' ) . '</span>'; | |
| } | |
| } |
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
| .admin-bar p.demo_store { | |
| top: 28px; | |
| } | |
| p.demo_store { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| margin: 0; |
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
| function custom_flatsome_woocommerce_shop_loop_excerpt(){ | |
| if(!flatsome_option('short_description_in_grid')) return; ?> | |
| <p class="box-excerpt is-small"> | |
| <?php /*echo get_the_excerpt();*/ ?> | |
| <?php echo wp_trim_words( get_the_excerpt(), 10); ?> | |
| </p> | |
| <?php | |
| } | |
| add_action('flatsome_product_box_after', 'custom_flatsome_woocommerce_shop_loop_excerpt', 21); |
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
| function custom_flatsome_woocommerce_shop_loop_excerpt(){ | |
| if(!flatsome_option('short_description_in_grid')) return; ?> | |
| <p class="box-excerpt is-small"> | |
| <?php /*echo get_the_excerpt();*/ ?> | |
| <?php echo wp_trim_words( get_the_excerpt(), 10); ?> | |
| </p> | |
| <?php | |
| } | |
| add_action('flatsome_product_box_after', 'custom_flatsome_woocommerce_shop_loop_excerpt', 21); |
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
| // [follow] | |
| function my_shortcode_reorder_follow_icons($atts, $content = null) { | |
| $sliderrandomid = rand(); | |
| extract(shortcode_atts(array( | |
| 'title' => '', | |
| 'style' => 'outline', | |
| 'align' => '', | |
| 'scale' => '', | |
| 'defaults' => '', | |
| 'twitter' => '', |
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
| function my_custom_translations( $strings ) { | |
| $text = array( | |
| 'Related products' => 'Customers Also Viewed', | |
| 'Some other one you like to translate/change' => 'Translate/Change' | |
| ); | |
| $strings = str_ireplace( array_keys( $text ), $text, $strings ); | |
| return $strings; | |
| } |
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
| add_filter( 'wc_product_sku_enabled', '__return_false' ); |
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
| function functions_to_change_mailto_link($atts, $content = null) { | |
| extract(shortcode_atts(array( | |
| 'title' => '', | |
| 'size' => '', | |
| 'align' => '', | |
| 'scale' => '', | |
| 'style' => '', | |
| ), $atts)); | |
| // Get Custom Share icons if set |