Skip to content

Instantly share code, notes, and snippets.

View bcoco's full-sized avatar

Adam Kayce bcoco

View GitHub Profile
@bcoco
bcoco / functions.php
Created October 2, 2018 17:34 — forked from srikat/functions.php
Adding Simple Social Icons to Navigation bar in Genesis. http://sridharkatakam.com/adding-simple-social-icons-navigation-bar-genesis/
genesis_register_sidebar( array(
'id' => 'nav-social-menu',
'name' => __( 'Nav Social Menu', 'your-theme-slug' ),
'description' => __( 'This is the nav social menu section.', 'your-theme-slug' ),
) );
add_filter( 'genesis_nav_items', 'sws_social_icons', 10, 2 );
add_filter( 'wp_nav_menu_items', 'sws_social_icons', 10, 2 );
function sws_social_icons($menu, $args) {
<a href="http://example.com/link-to-pdf" class="button">Download Now</a>
<div class="clearfix">
<div class="one-third first">First column stuff</div>
<div class="one-third">Second column stuff</div>
<div class="one-third">Third column stuff</div>
</div>
<span class="textcolor">text here</span>
@bcoco
bcoco / all-facets
Created February 3, 2015 15:44
All Facets
{"facets":[{"label":"Categories","name":"categories","type":"dropdown","source":"tax\/category","label_any":"Any","parent_term":"","orderby":"count","count":"10"},{"label":"Career Stage","name":"career_stage","type":"dropdown","source":"tax\/career-stage","label_any":"","parent_term":"","orderby":"display_value","count":""},{"label":"Rating","name":"rating","type":"checkboxes","source":"tax\/rating","parent_term":"","orderby":"display_value","operator":"and","hierarchical":"no","ghosts":"no","preserve_ghosts":"no","count":"10"}],"templates":[{"label":"Default","name":"default","query":"<?php\nreturn array(\n 'post_type' => 'any',\n 'posts_per_page' => 15,\n);","template":"<?php while ( have_posts() ) : the_post(); ?>\n <div><a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?><\/a><\/div>\n<?php endwhile; ?>"},{"label":"Career Stage","name":"career_stage","query":"<?php\nreturn array(\n'post_type' => 'career-stage',\n'posts_per_page' => 15,\n);","template":"<?php while ( have_posts() ) : the_post(); ?>\
@bcoco
bcoco / template-career-stage
Created February 3, 2015 15:44
Template - Career Stage
{"templates":[{"label":"Career Stage","name":"career_stage","query":"<?php\nreturn array(\n'post_type' => 'career-stage',\n'posts_per_page' => 15,\n);","template":"<?php while ( have_posts() ) : the_post(); ?>\n<div><a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?><\/a><\/div>\n<?php endwhile; ?>"}]}
.responsive-iframe-container {
position: relative;
padding-bottom: 120%;
padding-top: 30px;
height: 0;
overflow: auto;
}
.responsive-iframe-container iframe,
.vresponsive-iframe-container object,
<div class="responsive-iframe-container">iframe code from google</div>