Skip to content

Instantly share code, notes, and snippets.

@CoachBirgit
CoachBirgit / sample.css
Created January 13, 2016 15:59
Sample CSS to add "Made with Love" to your site footer with the Genesis Framework. Raw
/* Heart Icon
--------------------------------------------- */
.site-footer .icon {
font-size: 20px;
}
.site-footer .love .icon {
font-size: 12px;
margin-left: 2px;
@CoachBirgit
CoachBirgit / sample.html
Created January 13, 2016 16:00
Sample HTML to add "Made with Love" to your site footer with the Genesis Framework.
<p class="love">Made with <i class="icon ion-heart"></i> by Brian Gardner</p>
@CoachBirgit
CoachBirgit / sample.css
Created January 13, 2016 16:00
Sample CSS used for social media links using Ionicons with the Genesis Framework.
/* Ionicons
--------------------------------------------- */
.site-footer p.social a {
border: 1px solid #949792;
border-radius: 50%;
color: #949792;
display: inline-block;
height: 42px;
margin-left: 10px;
@CoachBirgit
CoachBirgit / sample.html
Created January 13, 2016 16:00
Sample HTML used for social media links using Ionicons with the Genesis Framework.
<p class="social">
<a href="http://twitter.com/bgardner"><i class="icon ion-social-twitter"></i></a>
<a href="http://www.facebook.com/bgardner"><i class="icon ion-social-facebook"></i></a>
<a href="http://instagram.com/bgardner"><i class="icon ion-social-instagram-outline"></i></a>
<a href="http://dribbble.com/bgardner"><i class="icon ion-social-dribbble-outline"></i></a>
</p>
@CoachBirgit
CoachBirgit / functions.php
Created January 13, 2016 16:00
Enqueue Ionicons on your site with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Enqueue Ionicons
add_action( 'wp_enqueue_scripts', 'bg_enqueue_ionicons' );
function bg_enqueue_ionicons() {
wp_enqueue_style( 'ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION );
}
@CoachBirgit
CoachBirgit / functions.php
Created January 13, 2016 16:01
Register featured images with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Add featured images
add_image_size( 'front-page-hero', 800, 450, TRUE );
add_image_size( 'front-page-square', 125, 125, TRUE );
add_image_size( 'front-page-thumbnail', 200, 100, TRUE );
@CoachBirgit
CoachBirgit / functions.php
Created January 13, 2016 16:01
Remove the author box on archive pages with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Remove the author box on archive pages
remove_action( 'genesis_before_loop', 'genesis_do_author_box_archive', 15 );
@CoachBirgit
CoachBirgit / functions.php
Created January 13, 2016 16:01
Customize site footer with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Remove the site footer
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
//* Customize the site footer
add_action( 'genesis_footer', 'bg_custom_footer' );
@CoachBirgit
CoachBirgit / functions.php
Created January 13, 2016 16:02
Enqueue Dashicons with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Enqueue Dashicons
add_action( 'wp_enqueue_scripts', 'enqueue_dashicons' );
function enqueue_dashicons() {
wp_enqueue_style( 'dashicons' );
}
@CoachBirgit
CoachBirgit / functions.php
Created January 13, 2016 16:03
Load Google Fonts with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Load Google Fonts
add_action( 'wp_enqueue_scripts', 'bg_load_google_fonts' );
function bg_load_google_fonts() {
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,700|Neuton:400', array(), CHILD_THEME_VERSION );
}