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_core_send_mailo($mail){ | |
$mail = '[email protected],[email protected]'; | |
return $mail; | |
} | |
add_filter( 'dt_core_send_mail-to', 'my_dt_core_send_mailo',$mail ); |
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_action( 'get_header', 'tribe_event_fix', 10 ); | |
function tribe_event_fix() { | |
if ( is_post_type_archive('tribe_events') ) { | |
$post_id =704; //sidebar, footer settings of the page id given will be applied to event page | |
presscore_get_config()->set( 'post_id', $post_id ); presscore_config_populate_header_options(); |
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('woocommerce_sale_flash', 'woo_custom_hide_sales_flash'); | |
function woo_custom_hide_sales_flash() | |
{ | |
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
// Add scripts to wp_footer() | |
function child_theme_footer_script() { ?> | |
<!-- Your JS/HTML goes here --> | |
<?php } | |
add_action( 'wp_footer', 'child_theme_footer_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
add_filter( 'presscore_config_post_id_filter', 'dt_portfolio_archive_id_filter' ); | |
function dt_portfolio_archive_id_filter($new_post_id) { | |
if (is_post_type_archive('dt_portfolio')) | |
{ | |
$new_post_id = 84; //replace this to template post id | |
} | |
return $new_post_id; | |
} |
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_action( 'wp_footer', function () { ?> | |
<script src="//lcp360.cachefly.net/panoskin.min.js"></script> | |
<script> | |
PANOSKIN.createViewer({ | |
id: 'pano', | |
tour: 'TOUR-ID' /* Replace TOUR-ID with your tour's ID */ | |
}); | |
</script> | |
<?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 add_after_head() { | |
?> | |
<meta name="google-site-verification" content="PLACE HERE MY CODE" /> | |
<?php | |
} | |
add_action( 'wp_head', 'add_after_head' ); |
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_presscore_do_header_slideshow( $title ) { | |
$id = get_the_ID(); | |
$myPostId = 36444; | |
if ($id !== $myPostId ) return; | |
$config = Presscore_Config::get_instance(); | |
if ( 'slideshow' != $config->get('header_title') ){ | |
return; | |
} | |
$config->set( 'page_title.breadcrumbs.enabled', true ); | |
$config->set( 'header_title', 'enabled' ); |
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 dt_change_default_metabox() { | |
global $DT_META_BOXES; | |
if ( $DT_META_BOXES ) { | |
foreach ( $DT_META_BOXES as $key => $DT_META_BOX ) { | |
if (key_exists('id',$DT_META_BOX ) && ($DT_META_BOX['id'] === 'dt_page_box-portfolio_post_media_options') ) | |
{ | |
$DT_META_BOXES[ $key ]['fields']['0']['std'] = 'before'; |
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_filter_presscore_post_details_link( $output ){ | |
$output = str_replace( 'rel="nofollow"', '' ,$output); | |
return $output; | |
} | |
add_filter( 'presscore_post_details_link', 'my_filter_presscore_post_details_link' ); |