Skip to content

Instantly share code, notes, and snippets.

View jasonhobbsllc's full-sized avatar

Jason Hobbs jasonhobbsllc

View GitHub Profile
@norcross
norcross / bootstrap-cdn-item.php
Created January 8, 2014 18:06
load Bootstrap CDN items
<?php
add_action ( 'wp_enqueue_scripts', 'bootstrap_cdn_scripts_styles', 10 );
function bootstrap_cdn_scripts_styles() {
wp_enqueue_style( 'bootstrap-css', '//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css', array(), '3.0.3', 'all' );
wp_enqueue_script( 'bootstrap-js', '//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js', array(), '3.0.3', true );
}
@jdevalk
jdevalk / archive-speaking_event.php
Last active December 12, 2021 20:13
Genesis helper code for schema
<?php
add_filter( 'genesis_attr_content', 'yoast_schema_empty', 20 );
add_filter( 'genesis_attr_entry', 'yoast_schema_event', 20 );
add_filter( 'genesis_attr_entry-title', 'yoast_itemprop_name', 20 );
add_filter( 'genesis_attr_entry-content', 'yoast_itemprop_description', 20 );
add_filter( 'genesis_post_title_output', 'yoast_title_link_schema', 20 );
/**
* We'll use the post info output to add more meta data about the event.
@billerickson
billerickson / template-gallery.php
Last active January 10, 2017 09:12
Pagination in a custom query