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
<?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
.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
.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
<?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
#site-logo, | |
#site-description, | |
.social-widget, | |
#header #searchform { | |
text-align: left; | |
text-indent: 5%; | |
margin-left: 0; | |
} | |
.widget.themify-social-links { | |
text-indent: 0; |
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 | |
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', |
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
.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; |
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
<a class="lightbox" href="#gallery1" rel="prettyPhoto"> Open Gallery </a> | |
<div id="gallery1" style="display: none;"> | |
<!-- add the [gallery] shortcode here --> | |
</div> |
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
.menu > li { | |
display: inline-block; | |
position: relative; | |
} | |
.menu > li > a { | |
padding: 5px 10px; | |
display: inline-block; | |
} | |
.menu li ul { | |
display: none; |