View gist:7288642
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 | |
function custom_date_format( $format ) { | |
return 'M j, Y'; | |
} | |
add_filter( 'themify_loop_date', 'custom_date_format' ); |
View gist:7288662
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 | |
$theme = wp_get_theme(); | |
function filter_theme_options( $options ) { | |
return $options; | |
} | |
add_filter( 'option_' . $theme->display('Name') . '_themify_data', 'filter_theme_options' ); |
View gist:7291432
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 | |
if( ! is_admin() ) { | |
add_filter( 'get_edit_post_link', '__return_null' ); | |
} | |
function restore_admin_bar_edit_link() { | |
remove_filter( 'get_edit_post_link', '__return_null' ); | |
} | |
add_action( 'wp_footer', 'restore_admin_bar_edit_link' ); |
View gist:7291827
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 | |
function custom_site_title( $html, $location, $logo_tag, $type ) { | |
global $post; | |
if( is_singular() && $custom_title = get_post_meta( $post->ID, 'site_title', true ) ) { | |
$title = get_bloginfo('name'); | |
$html = str_replace( $title, $custom_title, $html ); | |
} | |
return $html; | |
} |
View gist:7332067
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 | |
function disable_frontend_builder() { | |
global $ThemifyBuilder; | |
if( ! is_admin() ) { | |
remove_action( 'wp_enqueue_scripts', array( $ThemifyBuilder, 'load_front_js_css' ), 10 ); | |
remove_action( 'wp_before_admin_bar_render', array( $ThemifyBuilder, 'builder_admin_bar_menu'), 1000 ); | |
} | |
} |
View gist:7341755
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
.menu > li { | |
display: inline-block; | |
position: relative; | |
} | |
.menu > li > a { | |
padding: 5px 10px; | |
display: inline-block; | |
} | |
.menu li ul { | |
display: none; |
View gist:7343690
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
<a class="lightbox" href="#gallery1" rel="prettyPhoto"> Open Gallery </a> | |
<div id="gallery1" style="display: none;"> | |
<!-- add the [gallery] shortcode here --> | |
</div> |
View gist:7354290
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
.module.module-accordion.clean, | |
.module.module-accordion.clean ul, | |
.module.module-accordion.clean li, | |
.module.module-accordion.clean .accordion-title, | |
.module.module-accordion.clean li:hover .accordion-title, | |
.module.module-accordion.clean .accordion-content, | |
.module.module-accordion.clean li.current, | |
.module.module-accordion.clean li.current .accordion-content { | |
background: none; | |
border: none; |
View gist:7367465
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 | |
add_action( 'widgets_init', 'register_content_widget_areas' ); | |
add_action( 'themify_content_start', 'display_content_top_area' ); | |
add_action( 'themify_content_end', 'display_content_bottom_area' ); | |
function register_content_widget_areas() { | |
register_sidebar(array( | |
'name' => __( 'Content Top' ), | |
'id' => 'content-top', |
View gist:7376005
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
#site-logo, | |
#site-description, | |
.social-widget, | |
#header #searchform { | |
text-align: left; | |
text-indent: 5%; | |
margin-left: 0; | |
} | |
.widget.themify-social-links { | |
text-indent: 0; |
OlderNewer