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
/** | |
* Loads theme settings | |
* | |
*/ | |
if ( ! function_exists( 'et_load_core_options' ) ) { | |
function et_load_core_options() { | |
global $shortname, $$themename; | |
require_once get_template_directory() . esc_attr( "/options_{$shortname}.php" ); |
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
function bd_rrp_sale_price_html( $price, $product ) { | |
if ( $product->is_on_sale() ) : | |
$has_sale_text = array( | |
'<del>' => '<del>RRP: ', | |
'<ins>' => '<br>Sale Price: <ins>' | |
); | |
$return_string = str_replace(array_keys( $has_sale_text ), array_values( $has_sale_text ), $price); | |
else : |
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
function bd_rrp_price_html( $price, $product ) { | |
$retun_string = 'RRP: ' . $price; | |
return $return_string; | |
} | |
add_filter( 'woocommerce_get_price_html', 'bd_rrp_price_html', 100, 2 ); |
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
function bd_sale_price_html( $price, $product ) { | |
if ( $product->is_on_sale() ) : | |
$return_string = str_replace( '<ins>, '<ins><br>Sale Price: ', $price); | |
return $return_string; | |
else : | |
return $price; | |
endif; |
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
.amount::before { | |
content: 'RRP:'; | |
margin-right: 5px; | |
} |
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
del .amount::before, | |
ins .amount::before { | |
margin-right: 5px; | |
} | |
del .amount::before { | |
content: 'RRP:'; | |
} | |
ins .amount::before { |
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
.element { | |
position: relative; | |
} | |
/*replace the content value with the | |
corresponding value from the list below*/ | |
.element:before { | |
content: "\f000"; | |
font-family: FontAwesome; |
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
/* === Begin: Set the divi slider height === */ | |
/* Src: https://divibooster.com/changing-the-height-of-the-divi-slider/ */ | |
/* Desktop */ | |
.myslider .et_pb_slide .et_pb_container { | |
height: auto !important; | |
min-height: 500px !important; | |
} | |
/* Tablet */ | |
@media only screen and (min-width: 768px) and (max-width: 980px) { |
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
@media only screen and ( min-width:981px ) { | |
/* Set the slider height */ | |
.et_pb_slider, .et_pb_slider .et_pb_container { | |
height: 425px !important; | |
} | |
.et_pb_slider, .et_pb_slider .et_pb_slide { | |
max-height: 425px; | |
} | |
.et_pb_slider .et_pb_slide_description { | |
position: relative; |
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 | |
/** | |
* Plugin Name: WooCommerce Remove Variation "From: $XX" Price | |
* Plugin URI: https://gist.github.com/kabbo508/e255daff62e5671cde55a86aa62df40f | |
* Description: Disable the WooCommerce variable product "From: $X" price. | |
* Author: Kabbo Rahman | |
* Author URI: http://ndscript.com/ | |
* Version: 1.0 | |
* | |
* This program is free software: you can redistribute it and/or modify |
OlderNewer