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
<!-- | |
The shortcode will detect the current post type. | |
Usage: specify your taxonomy like so (defaults to "category"): | |
[checked-list taxonomy="portfolio"] | |
Add to functions.php | |
--> | |
<?php // Consider excluding opening PHP tag | |
function display_checked_list_shortcode( $atts ) { |
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
@keyframes fadeInDown2 { | |
from { | |
opacity: 0; | |
transform: translate3d(0, -30px, 0) | |
} | |
to { | |
opacity: 1; | |
transform: none | |
} | |
} |
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
/* | |
* Dynamic Image Scaling with Smartphone Landscape Exception | |
* ---------------------------------------------------------- | |
* Pic fits screen. | |
* Except on smartphone landscape, | |
* where it fills the width, and | |
* overflows the height. | |
*/ | |
img.dynamic-size { |
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
.gallery { | |
display: -webkit-box; | |
display: -ms-flexbox; | |
display: flex; | |
-ms-flex-wrap: wrap; | |
flex-wrap: wrap; | |
-webkit-box-pack: justify; | |
-ms-flex-pack: justify; | |
justify-content: space-between; | |
} |
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('fl_dynamic_switchboard', 'my_template_code'); | |
function my_template_code() { | |
/* Your template loop code here */ | |
} | |
add_action('fldts_fl_template','fldts_get_fl_template'); | |
function fldts_get_fl_template() { | |
FLBuilder::render_query( array( |
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_filter( 'body_class', 'dynamik_page_builder_body_class' ); | |
function dynamik_page_builder_body_class( $classes ) { | |
$classes[] = 'dynamik-page-builder'; | |
return $classes; | |
} | |
add_action('fl_dynamic_switchboard', 'fldts_template_content'); | |
function fldts_template_content() { |
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 | |
//Uncomment to enable shortcodes in widgets | |
/* add_filter('widget_text', 'do_shortcode'); */ | |
// Add Shortcode for Image Gallery Widget | |
function image_gallery_shortcode() { | |
ob_start(); | |
$args = array( | |
'post_type' => 'attachment', |
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 | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'custom_loop' ); | |
function custom_loop() { | |
while ( have_posts() ) : the_post(); | |
if ( has_post_thumbnail() ) { | |
$thumb_id = get_post_thumbnail_id(); | |
$thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail', true); | |
$my_thumb_url = $thumb_url[0]; | |
$my_post_thumb = "background-image: url(" . $my_thumb_url .");"; |
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
/* Basic vertical centring (middle) */ | |
.container { | |
position: relative; | |
} | |
.content { | |
position: absolute; | |
top: 50%; | |
-webkit-transform: translateY(-50%); |
NewerOlder