This file contains hidden or 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
ol { | |
counter-reset: li; /* Initiate a counter */ | |
margin-left: 0; /* Remove the default left margin */ | |
padding-left: 0; /* Remove the default left padding */ | |
} | |
ol > li { | |
position: relative; /* Create a positioning context */ | |
margin: 0 0 0 2em; /* Give each list item a left margin to make room for the numbers */ | |
padding: 0; /* Add some spacing around the content */ | |
list-style: none; /* Disable the normal item numbering */ |
This file contains hidden or 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
/*! | |
---------------------------------------------------------------- | |
Gravity Forms Front End Form Styles | |
Version 1.0 | |
http: //www.gravityforms.com | |
Based on the original forms.css that ships with Gravity Forms | |
---------------------------------------------------------------- | |
*/ |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<forms version="1.6.12"> | |
<form labelPlacement="top_label" useCurrentUserAsAuthor="1"> | |
<title><![CDATA[GF Form 1 Test - Top aligned labels, Descriptions below inputs]]></title> | |
<description><![CDATA[We would love to hear from you! Please fill out this form and we will get in touch with you shortly.]]></description> | |
<confirmation type="message"> | |
<message><![CDATA[Thanks for contacting us! We will get in touch with you shortly.]]></message> | |
</confirmation> | |
<button type="text"> | |
<text><![CDATA[Submit]]></text> |
This file contains hidden or 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 | |
/** | |
* Filters the image quality for thumbnails to be at the highest ratio possible. | |
* | |
* Supports the new 'wp_editor_set_quality' filter added in WP 3.5. | |
* | |
* @since 1.0.0 | |
* | |
* @param int $quality The default quality (90) | |
* @return int $quality Amended quality (100) |
This file contains hidden or 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
#Add this to .htaccess | |
<FilesMatch "\.(?i:mp3)$"> | |
ForceType audio/mpeg | |
SetEnvIf Request_URI "^.*/?([^/]*)$" FILENAME=$1 | |
Header set Content-Disposition "attachment; filename=%{FILENAME}e" | |
UnsetEnv FILENAME | |
</FilesMatch> |
This file contains hidden or 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 | |
/** | |
* This function removes the extra 10px width that WordPress adds to captions | |
* | |
* @param $output | |
* @param $attr | |
* @param $content | |
* | |
* @return string | |
*/ |
This file contains hidden or 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 /* | |
* Function similar to wp_link_pages but outputs an ordered list instead and adds a class of current to the current page | |
*/ | |
function pico_link_pages( $args = '' ) { | |
$defaults = array( | |
'before' => '<p>' . __( 'Pages:' ), 'after' => '</p>', | |
'link_before' => '', 'link_after' => '', | |
'next_or_number' => 'number', 'nextpagelink' => __( 'Next page' ), | |
'previouspagelink' => __( 'Previous page' ), 'pagelink' => '%', |
This file contains hidden or 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
jQuery(document).ready(function($) { | |
jQuery.fn.cleardefault = function() { | |
return this.focus(function() { | |
if( this.value == this.defaultValue ) { | |
this.value = ""; | |
} | |
}).blur(function() { | |
if( !this.value.length ) { | |
this.value = this.defaultValue; |