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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Enqueue Lato Google font | |
add_action( 'wp_enqueue_scripts', 'sp_load_google_fonts' ); | |
function sp_load_google_fonts() { | |
wp_enqueue_style( 'google-font-lato', '//fonts.googleapis.com/css?family=Lato:300,700', array(), CHILD_THEME_VERSION ); | |
} |
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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
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
public function get_recent_summary() { | |
global $json_api; | |
$posts = $json_api->introspector->get_posts(); | |
$output = array(); | |
foreach ($posts as $post){ | |
$post_summary["id"] = $post->id; | |
$post_summary["url"] = $post->url; | |
$post_summary["title"] = $post->title; | |
$post_summary["date"] = $post->date; |
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
// Register full-width content widget after default home page widgets | |
// This code is added to the end of your child themes functions.php file | |
/** | |
* @author Brad Dalton - WP Sites | |
* | |
* @link http://wpsites.net/web-design/add-widget-home-php-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
//This codes gets added to the home_genesis_meta add actions in the home.php file, around line 15 | |
add_action( 'genesis_loop', 'agency_home_full_helper' ); |
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
//This code gets added to the end of the home.php file before the genesis() tag. | |
function agency_home_full_helper() { | |
if ( is_active_sidebar( 'full-content' ) ) { | |
echo '<div id="full-content">'; | |
dynamic_sidebar( 'full-content' ); | |
echo '</div><!-- end #full-content -->'; | |
} | |
} |
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( 'genesis_meta', 'agency_home_genesis_meta' ); | |
/** | |
* Add widget support for homepage. If no widgets active, display the default loop. | |
* | |
* Link http://wpsites.net/web-design/add-widget-home-php-genesis/ | |
*/ | |
function agency_home_genesis_meta() { |
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
{ | |
"$schema": "http://json-schema.org/schema#", | |
"id": "http://advancedcustomfields.com/json-schema/field_group", | |
"type": "object", | |
"definitions": { | |
"empty": { | |
"type": "string", | |
"maxLength": 0 | |
}, | |
"intOrEmpty": { |
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
add_action( 'wp_enqueue_scripts', 'generate_remove_fontawesome', 100 ); | |
function generate_remove_fontawesome() { | |
wp_dequeue_style( 'fontawesome' ); | |
} |
OlderNewer