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_theme_meta_boxes($arg) { | |
array_push($arg[4]['options'][1]['meta'], array('value' => 'cyan', 'img' => 'images/layout-icons/color-cyan.png')); | |
array_push($arg[4]['options'][1]['meta'], array('value' => 'silvergrape', 'img' => 'images/layout-icons/color-silvergrape.png')); | |
return $arg; | |
}; | |
add_filter( 'themify_do_metaboxes', 'custom_themify_theme_meta_boxes' ); |
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
.single #body { | |
position: relative; | |
width: 978px; | |
margin: auto; | |
} | |
.single .post-inner { | |
margin-right: 240px; | |
} | |
.single #layout { | |
position: absolute; |
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
.products .product:before, | |
.single .product-single-top:before { | |
content: " "; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
top: 0; | |
left: 0; | |
background: rgba(255,255,255,.4); | |
z-index: 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
<?php | |
function custom_chart_vars( $options ) { | |
return array( | |
'trackColor' => '#f2f2f2', | |
'scaleColor' => false, | |
'lineCap' => 'butt', | |
'rotate' => 0, | |
'size' => 170, | |
'lineWidth' => 22, |
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 wmpl_get_post_translations( $post_id = null ) { | |
global $post, $sitepress; | |
if( ! isset( $post_id ) ) | |
$post_id = $post->ID; | |
$post = get_post( $post_id ); | |
$trid = $sitepress->get_element_trid( $post_id, 'post_' . $post->post_type ); |
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; | |
} |
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
<?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
#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 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' ); |