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 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
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 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
<?php | |
// Disable Admin Bar for everyone but administrators | |
if (!function_exists('df_disable_admin_bar')) { | |
function df_disable_admin_bar() { | |
if (!current_user_can('manage_options')) { | |
// for the admin page |
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_shortcode_to_remove_blank_from_email($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
<?php | |
defined( 'ABSPATH' ) or die( 'Keep Silent' ); | |
?><!DOCTYPE html> | |
<html <?php language_attributes(); ?> class="no-js"> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<link rel="profile" href="http://gmpg.org/xfn/11"> | |
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?> |
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
<script type="text/javascript"> | |
jQuery( document ).ready(function() { | |
jQuery(".product-categories .cat-parent").addClass( "active"); | |
}); | |
</script> |
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 | |
/* | |
Template name: WooCommerce - My Account | |
This templates add My account to the sidebar. | |
*/ | |
get_header(); ?> | |
<?php do_action( 'flatsome_before_page' ); ?> |