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
<?php | |
function custom_footer_scripts() { ?> | |
<script> | |
jQuery(window).load(function(){ jQuery(window).resize(); }); | |
</script> | |
<?php } | |
add_action( 'wp_footer', 'custom_footer_scripts', 99999 ); |
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
<?php | |
function custom_builder_frontend_display_setup() { | |
global $ThemifyBuilder; | |
remove_filter( 'the_content', array( $ThemifyBuilder, 'builder_show_on_front' ), 11 ); | |
add_filter( 'the_content', 'custom_builder_frontend_display', 11 ); | |
} | |
add_action( 'template_redirect', 'custom_builder_frontend_display_setup' ); |
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
<?php | |
function product_lightbox_full_text() { | |
if( themify_theme_is_product_lightbox() ) { | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); | |
add_action( 'woocommerce_single_product_summary', 'the_content', 20 ); | |
} | |
} | |
add_action( 'init', 'product_lightbox_full_text' ); |
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
<?php | |
function media_custom_field_support() { | |
add_post_type_support( 'attachment', 'custom-fields' ); | |
} | |
add_action( 'init', 'media_custom_field_support' ); | |
function do_attachment_redirect() { | |
if( is_attachment() && $redirect = get_post_meta( $GLOBALS['post']->ID, 'redirect', true ) ) { | |
wp_redirect( $redirect ); |
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
<?php | |
function custom_theme_enqueue_scripts() { | |
wp_dequeue_script( 'theme-script' ); | |
wp_enqueue_script( 'theme-script', THEME_URI . '/js/themify.custom.script.js', array('jquery'), false, true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'custom_theme_enqueue_scripts', 12 ); |
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
<?php | |
function custom_themify_accordion_shortcode( $atts, $content = '' ) { | |
$class = isset( $atts['style'] ) ? $atts['style'] : ''; | |
$output = '<div class="module module-accordion"><ul class="ui module-accordion '. $class .'">'; | |
$output .= do_shortcode( $content ); | |
$output .= '</ul></div>'; | |
return $output; | |
} | |
add_shortcode( 'accordion', 'custom_themify_accordion_shortcode' ); |
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
#headerwrap { | |
background: none; | |
} | |
#header { | |
background: #0e88be; | |
width: auto; | |
margin-top: 180px; /* equal to the height of the logo */ | |
} | |
@media (min-width: 781px) { | |
#sidr { |
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
<?php | |
function register_custom_tile_size( $args ) { | |
$args[4]['options'][0]['meta'][] = array( 'value' => 'custom', 'img' => 'images/layout-icons/tile-custom.png', 'title' => __( 'Custom', 'themify' ) ); | |
return $args; | |
} | |
add_filter( 'themify_do_metaboxes', 'register_custom_tile_size' ); |
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
<?php | |
function custom_body_classes( $classes ) { | |
if( is_singular( 'portfolio' ) ) { | |
$id = array_search( 'sidebar-none', $classes ); | |
unset( $classes[$id] ); | |
$classes[] = 'sidebar1'; | |
} | |
return $classes; |
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
.list-post .post-meta { | |
top: 100%; | |
width: 100%; | |
text-align: left; | |
} | |
.list-post .post-meta span, | |
.post-meta .post-date { | |
display: inline-block; | |
margin-right: 10px; | |
} |