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
//since The7 5.0.2 | |
function my_custom_logo_url($url) | |
{ | |
return "example.com"; | |
} | |
add_filter('presscore_display_the_logo-url', 'my_custom_logo_url' , 10, 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
function remove_woocommerce_button(){ | |
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); | |
} | |
add_action('init','remove_woocommerce_button'); |
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' ); |
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
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
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
//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
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
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 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 ); |