Demo of loading images using the Flickr API with Ionic.
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
// Hook after header area | |
add_action( 'genesis_after_header', 'bw_featured_image_title' ); | |
function bw_featured_image_title() { | |
// If it is a page and has a featured thumbnail, but is not the front page do the following... | |
if (has_post_thumbnail() && is_single() ) { | |
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' ); |
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_filter('body_class', 'single_posts_body_class'); | |
function single_posts_body_class($classes) { | |
$classes[] = 'custom-single'; | |
return $classes; | |
} | |
genesis(); |
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
//Moves titles above content and sidebar | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
add_action( 'genesis_after_header', 'genesis_do_post_title', 20 ); | |
//this removes post titles from blog archive pages as well | |
//Add titles back to home page, single posts, categeory archives and one specific page | |
add_action('get_header', 'move_other_post_titles'); | |
function move_other_post_titles() { | |
if (is_home() || is_single() || is_page('contact-me') || is_category()) { // added conditional 'or is_single' and 'or is_category' | |
remove_action( 'genesis_after_header', 'genesis_do_post_title', 20 ); |
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
body { | |
/* 16px is browser default */ | |
font-size:16px; | |
font-size:1rem; | |
/* Always use off-black */ | |
color: #333; | |
} | |
h1,h2,h3,h4,h5,h6 { | |
/* Applies to all headers */ |
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
@media only screen and (max-width: 800px) { | |
.header-image .site-title > a { | |
background-size:100%; | |
} | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
//* Modify the length of post excerpts | |
add_filter( 'excerpt_length', 'bw_excerpt_length' ); | |
function bw_excerpt_length( $length ) { | |
return 40; // pull first 50 words | |
} |
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
// Styles for home featured posts, a slightly modified version of the agency pro stylesheet | |
// Source: benweiser.com | |
.home-featured-posts .featuredpost .post:nth-of-type(3n+1) { | |
clear: left; | |
} | |
.home-featured-posts { | |
padding: 10% 0 5%; | |
} |