This file contains 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
<h1> | |
This is the primary heading and there should only be one of these per page | |
</h1> | |
<p> | |
A small paragraph to <em>emphasis</em> and show <strong>important</strong> bits. | |
</p> | |
<ul> | |
<li>This is a list item | |
</li> | |
<li>So is this - there could be more |
This file contains 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
/** | |
* HTML Kitchen Sink | |
*/ | |
background: #fff; | |
font: normal normal 14px/1.4 Arial, "Helvetica Neue", Helvetica, sans-serif; | |
/* background: linear-gradient(45deg, #f06, yellow); */ | |
min-height:100%; |
This file contains 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
/** | |
* Horizontal Type Line Behind Text | |
* Inspired by this discussion @ CSS-Tricks: http://css-tricks.com/forums/discussion/comment/51357#Comment_51357 | |
* Available on jsFiddle: http://jsfiddle.net/ericrasch/jAXXA/ | |
* Available on Dabblet: http://dabblet.com/gist/2045198 | |
* Available on GitHub Gist: https://gist.github.com/2045198 | |
*/ | |
h2 { | |
font: 33px sans-serif; |
This file contains 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 | |
// How to display your latest tweets in your WordPress site without a plugin | |
// Source: http://dinolatoga.com/2010/07/31/how-to-display-your-latest-tweets-in-your-wordpress-blog-without-a-plugin/ | |
include_once(ABSPATH . WPINC . '/feed.php'); | |
//configuration | |
$username = "EricRasch"; // Just insert the username of the Twitter account you want to display | |
$feed = "http://twitter.com/statuses/user_timeline/$username.rss"; // Changed the code from dinolatoga.com to actually use the username variable | |
$num = 2; // Set the number of Tweets you want to display |
This file contains 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 | |
/* =BEGIN: Add Class to first Paragraph in WordPress the_content(); | |
Source: http://webdevbits.com/wordpress/add-class-to-first-paragraph-in-wordpress-the_content/ | |
---------------------------------------------------------------------------------------------------- */ | |
function first_paragraph($content){ | |
// Testing to see if the content is a Page or Custom Post Type of school, if so, display the text normally (without the class = intro). | |
if ( is_page() || ('school' == get_post_type() ) ) { | |
return preg_replace('/<p([^>]+)?>/', '<p$1>', $content, 1); | |
} else { | |
return preg_replace('/<p([^>]+)?>/', '<p$1 class="intro">', $content, 1); |
This file contains 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
/** | |
* Ordered List Item Style Prefix | |
* prefix ordered list item numbers with a static string using CSS | |
* Dabblet (by @EricRasch): http://dabblet.com/gist/2919680 | |
* jsFiddle (by @EricRasch): http://jsfiddle.net/NUJJk/ | |
* SCSS Mixin (by @JimmyNotJim): http://jsfiddle.net/KY9ua/ | |
* forked from: http://jsfiddle.net/BoltClock/9VdB3/ | |
* StackOverflow Q&A: http://stackoverflow.com/a/5568259/1428800 | |
*/ | |
body { |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Responsive Breakpoint Hinting · CodePen</title> | |
<link rel="stylesheet" href="http://codepen.io/stylesheets/css/normalize.css"> |
This file contains 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 | |
$taxonomyName = "cpt_rankings_cat"; // Set your custom taxonomy here. | |
// Alternate method for retrieving a term ID. Source: http://codex.wordpress.org/Function_Reference/wp_get_post_terms#Examples | |
$term_list = wp_get_post_terms($post->ID, $taxonomyName, array("fields" => "ids")); | |
// Source: http://codex.wordpress.org/Function_Reference/get_term_children#A_Basic_Example | |
$term_parent_ID = $term_list[0]; // Pulls the parent term ID from the call above. |
This file contains 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
Show hidden characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Railscasts.tmTheme", | |
"theme": "Phoenix Dark.sublime-theme", | |
"file_exclude_patterns": [ | |
".DS_Store", | |
"dump.rdb" | |
], | |
"folder_exclude_patterns": | |
[ | |
".svn", |
This file contains 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 | |
$ig_post_custom_fields = array ( | |
"infographic" => array( | |
"name" => "is_infographic", | |
"std" => "", | |
"title" => "Is this an infographic post?", | |
"description" => "If you check this box, we'll add a Pin It share option.", | |
"type" => "checkbox"), | |
"image_url" => array( |
OlderNewer