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_down_arrow() { | |
global $themify; | |
if( '' != $themify->query_category && 'section' == $themify->query_post_type ) { | |
echo '<a href="#body" id="arrow-down" style="position: absolute; left: 50%; bottom: 100px; color: #fff; font-size: 25px;"><i class="fa fa-arrow-circle-down"></i></a>'; | |
} | |
} | |
add_action( 'themify_header_end', 'custom_down_arrow' ); |
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_comment_form_fields( $fields ) { | |
unset( $fields['url'] ); | |
return $fields; | |
} | |
add_filter( 'comment_form_default_fields', 'custom_comment_form_fields' ); |
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
Implemented in the theme. |
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_extend_image_sizes( $sizes ) { | |
$sizes['extralarge'] = __( 'Extra Large', 'themify' ); | |
return $sizes; | |
} | |
add_filter( 'image_size_names_choose', 'custom_themify_extend_image_sizes' ); |
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_layout_widget_areas' ); | |
add_action( 'themify_layout_before', 'display_features_area' ); | |
add_action( 'themify_layout_after', 'display_bottom_area' ); | |
function register_layout_widget_areas() { | |
register_sidebar(array( | |
'name' => __( 'Features' ), | |
'id' => 'features', |
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
#gallery-controller .slider .slides { | |
position: absolute; | |
bottom: 100px; | |
top: auto !important; | |
left: 50% !important; | |
overflow: hidden; | |
width: 100px !important; | |
margin-left: -50px !important; | |
} | |
#gallery-controller .caroufredsel_wrapper, |
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
#main-nav { | |
width: 100%; | |
} | |
#main-nav > li { | |
float: none; | |
display: table-cell; | |
width: 1%; | |
} | |
#main-nav:after, | |
#main-nav:before { |
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_product_default_bg_image() { | |
$bg_image = themify_get( 'background_image' ); | |
if( ! $bg_image ) { | |
global $post; | |
$thumb_url = wp_get_attachment_image_src( get_post_thumbnail_id(),'shop_single', true ); | |
echo "<style> .post-{$post->ID} .product-bg { background-image: url('{$thumb_url[0]}'); } </style>"; | |
} | |
} |
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
.sidebar-none.list-post .section { | |
background-position: center; | |
background-repeat: no-repeat; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} |
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
.fixed-nav-bar + #skrollr-body hgroup { | |
-webkit-transform: inherit !important; | |
-moz-transform: inherit !important; | |
} | |
.fixed-nav-bar + #skrollr-body #site-logo { | |
position: fixed; | |
top: 0; | |
left: 0; | |
z-index: 9999; | |
} |