Skip to content

Instantly share code, notes, and snippets.

Avatar

Brian Gardner bgardner

View GitHub Profile
@bgardner
bgardner / style.css
Created Jul 27, 2016
CSS used for Brocation members.
View style.css
/* Members
---------------------------------------------------------------------------------------------------- */
.members img {
vertical-align: top;
}
.member {
display: block;
float: left;
@bgardner
bgardner / members.html
Last active Jul 27, 2016
HTML used for Brocation members.
View members.html
<div class="member"><img src="http://gobrocation.com/images/brian-gardner.jpg" alt="Brian Gardner" /><span class="member-name"><a target="_blank" href="http://twitter.com/bgardner">Brian Gardner</a></span></div>
<div class="member"><img src="http://gobrocation.com/images/joshua-becker.jpg" alt="Joshua Becker" /><span class="member-name"><a target="_blank" href="http://twitter.com/joshua_becker">Joshua Becker</a></span></div>
<div class="member"><img src="http://gobrocation.com/images/darrell-vesterfelt.jpg" alt="Darrell Vesterfelt" /><span class="member-name"><a target="_blank" href="http://twitter.com/dvest">Darrell Vesterfelt</a></span></div>
<div class="member"><img src="http://gobrocation.com/images/john-shultz.jpg" alt="John Shultz" /><span class="member-name"><a target="_blank" href="http://twitter.com/jshltz">John Shultz</a></span></div>
<div class="member"><img src="http://gobrocation.com/images/marc-chernoff.jpg" alt="Marc Chernoff" /><span class="member-name"><a target="_blank" href="http://twitter.
@bgardner
bgardner / functions.php
Last active Aug 11, 2017
Hook widget area for Brocation members after header.
View functions.php
<?php
// Do NOT include the opening php tag.
// Add members widget area after header.
add_action( 'genesis_after_header', 'brocation_members_widget' );
function brocation_members_widget() {
genesis_widget_area( 'members', array(
'before' => '<div id="members" class="members"><div class="wrap">',
'after' => '</div></div>',
@bgardner
bgardner / functions.php
Last active Aug 11, 2017
Register widget area for Brocation members.
View functions.php
<?php
// Do NOT include the opening php tag.
// Register members widget area.
genesis_register_sidebar( array(
'id' => 'members',
'name' => __( 'Members', 'brocation' ),
'description' => __( 'This is the members widget area.', 'brocation' ),
) );
@bgardner
bgardner / functions.php
Last active Apr 9, 2019
Exclude categories from blog homepage with the Genesis Framework.
View functions.php
<?php
// Do NOT include the opening php tag.
// Exclude categories from blog homepage.
add_action( 'pre_get_posts', 'bg_exclude_categories' );
function bg_exclude_categories( $query ) {
if( $query->is_main_query() && $query->is_home() ) {
$query->set( 'cat', '-5,-7' );
}
@bgardner
bgardner / sample.css
Created Nov 16, 2015
Sample CSS to add "Made with Love" to your site footer with the Genesis Framework. Raw
View sample.css
/* Heart Icon
--------------------------------------------- */
.site-footer .icon {
font-size: 20px;
}
.site-footer .love .icon {
font-size: 12px;
margin-left: 2px;
@bgardner
bgardner / sample.html
Created Nov 16, 2015
Sample HTML to add "Made with Love" to your site footer with the Genesis Framework.
View sample.html
<p class="love">Made with <i class="icon ion-heart"></i> by Brian Gardner</p>
@bgardner
bgardner / sample.css
Last active Jan 13, 2016
Sample CSS used for social media links using Ionicons with the Genesis Framework.
View sample.css
/* Ionicons
--------------------------------------------- */
.site-footer p.social a {
border: 1px solid #949792;
border-radius: 50%;
color: #949792;
display: inline-block;
height: 42px;
margin-left: 10px;
@bgardner
bgardner / sample.html
Last active Nov 24, 2020
Sample HTML used for social media links using Ionicons with the Genesis Framework.
View sample.html
<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>
@bgardner
bgardner / functions.php
Created Nov 9, 2015
Enqueue Ionicons on your site with the Genesis Framework.
View functions.php
<?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 );
}
You can’t perform that action at this time.