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%); |
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 | |
/* Do not remove this line. Add your functions below. */ | |
// Register Portfolio Items Custom Post Type | |
function register_portfolio() { | |
$labels = array( | |
'name' => _x( 'Portfolio Items', 'Post Type General Name', 'text_domain' ), | |
'singular_name' => _x( 'Portfolio Item', 'Post Type Singular Name', 'text_domain' ), | |
'menu_name' => __( 'Portfolio Items', 'text_domain' ), |
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_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); | |
add_action( 'genesis_after_entry_content', 'add_entry_header' ); | |
function add_entry_header() { |
NewerOlder