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
<div id="site-title" class="<?php echo $site_title_class; ?>"><?php bloginfo( 'name' ); ?></div> | |
to | |
<div id="site-title" class="<?php echo $site_title_class; ?>"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></div> |
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
add_action( 'get_header', 'dt_disable_sidebar', 10 ); | |
function dt_disable_sidebar() { | |
$config = Presscore_Config::get_instance(); | |
if(is_page()){ | |
$config->set( 'sidebar_position', 'disabled' ); | |
} | |
} |
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
edit section | |
if ( $title ) { | |
$title = '<div class="team-author-name">' . $title . '</div>'; | |
to | |
if ( $title ) { | |
if ( 'post' == $config->get( 'post.open_as' ) ) { |
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
$content = apply_filters( 'the_excerpt', get_the_excerpt() ); | |
$content = $content.'<a href="'.get_permalink().'">read more</a>'; //new line |
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 | |
/** | |
* The Header for single posts. | |
* | |
* Do not content header-main-content-open template part! |
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 dt_editor_remove_short_code_buttons( $plugin_array ) { | |
if( isset( $plugin_array['vogue_shortcodes'] ) ) { | |
unset( $plugin_array['vogue_shortcodes'] ); | |
} | |
return $plugin_array; | |
} | |
add_filter( 'mce_external_plugins', 'dt_editor_remove_short_code_buttons', 99, 1 ); | |
function dt_editor_cancel_short_code_buttons( $buttons ) { | |
if(isset( $buttons['vogue_chortcodes_megabutton'] ) ) { |
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 dt_product_category_config() { | |
if( is_product_category( 'digital-goods' ) ) { | |
$pagid = 34843; //header, sidebar, footer settings of the page id given will applie to product categiry | |
$config = presscore_get_config( ); | |
presscore_config_base_init( $pagid ); | |
} | |
} | |
add_action( 'get_header', 'dt_product_category_config', 10 ); |
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
add_action( 'woocommerce_after_shop_loop_item_title', 'dt_woocommerce_product_excerpt', 35, 2); | |
function dt_woocommerce_product_excerpt() | |
{ | |
echo '<span class="excerpt">'; | |
the_excerpt(); | |
echo '</span>'; | |
} |
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: 739px) { | |
#top-bar { | |
position:fixed !important; | |
top: 0px !important; | |
width: 100% !important; | |
z-index: 9999 !important; | |
} | |
#header { | |
margin-top: 27px !important; | |
} |
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
add_action( 'get_header', 'dt_archive_layout', 10 ); | |
function dt_archive_layout() { | |
$config = Presscore_Config::get_instance(); | |
if(is_page( 35 )){ | |
$config->set( 'header.layout', 'inline' ); | |
} |