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
.header-bar{ | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
} | |
.header-bar .branding{ | |
-webkit-box-ordinal-group: 2; |
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 this to your functions.php of main or child theme | |
add_filter( 'logout_url', 'custom_logout_url',10, 2 ); | |
function custom_logout_url( $logout_url, $redirect ) | |
{ | |
//Uncomment one of theese return statements | |
//1.link to current page | |
$args = array( 'redirect_to' => get_permalink() ); | |
//link to static logout page (set your URL here) | |
//$args 'http://example/my-account/customer-logout/'; |
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_dt_make_web_font_uri( $font, $effect = '' ) { | |
if ( !$font ) { | |
return false; | |
} | |
// add web font effect | |
if ( function_exists('dt_get_web_fonts_effects') ) { | |
if ( array_key_exists( $effect, dt_get_web_fonts_effects() ) ) { | |
$effect = '&effect=' . esc_attr( $effect ); |
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
if ($optionsframework_settings = get_option( 'optionsframework' ) && !function_exists('optionsframework_update_options_cache') ) | |
add_action( 'update_option_' . $optionsframework_settings['id'], 'optionsframework_update_options_cache_fix', 10, 2 ); | |
function optionsframework_update_options_cache_fix( $old_value, $value ) { | |
$value = apply_filters( 'dt_of_get_option_static', $value ); | |
wp_cache_set( 'saved_options', $value, 'optionsframework' ); | |
} |
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 add_custom_font( $fonts ) { | |
$fonts['Fibon'] = 'Fibon'; | |
return $fonts; | |
} | |
add_filter( 'presscore_options_get_safe_fonts', 'add_custom_font' ,30 , 1 ); |
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 this code to functions.php of your main or child theme | |
function presscore_render_paspartu() { | |
?><div class="paspartu_top"></div><?php | |
} | |
add_action( 'presscore_body_top', 'presscore_render_paspartu', 40 ); |
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
define('THE7_DEBUG', true); |
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
define( 'FS_METHOD', 'direct' ); |
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 add_after_body() | |
{ | |
?> | |
<!-- Google Tag Manager (noscript) --> | |
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXX" | |
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | |
<!-- End Google Tag Manager (noscript) --> | |
<?php | |
} |
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 move_price_location() { | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10); | |
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_single_price', 50); | |
} | |
add_action( 'init', 'move_price_location' ); |