No longer kept up to date.
Please see Sridhar's fork.
| /* Column Classes | |
| Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
| --------------------------------------------- */ | |
| .five-sixths, | |
| .four-sixths, | |
| .one-fourth, | |
| .one-half, | |
| .one-sixth, | |
| .one-third, |
| /** | |
| * Add a 1% surcharge to your cart / checkout | |
| * change the $percentage to set the surcharge to a value to suit | |
| * Uses the WooCommerce fees API | |
| * | |
| * Add to theme functions.php | |
| */ | |
| add_action( 'woocommerce_cart_calculate_fees','woocommerce_custom_surcharge' ); | |
| function woocommerce_custom_surcharge() { | |
| global $woocommerce; |
| <?php | |
| /** | |
| * Add in custom lead fields to WordPress Leads Plugin | |
| * | |
| * This function adds additional fields to your lead profiles. Insert this code into functions.php of your theme | |
| * Label: Name of the Field | |
| * key: Meta key associated with data | |
| * priority: Where you want the fields placed. See https://github.com/inboundnow/leads/blob/master/modules/wpl.m.userfields.php#L7 for current weights | |
| * type: type of user area. 'text' or 'textarea' | |
| */ |
| // 1. Go to page https://www.linkedin.com/settings/email-frequency | |
| // 2. You may need to login | |
| // 3. Open JS console | |
| // ([How to?](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)) | |
| // 4. Copy the following code in and execute | |
| // 5. No more emails | |
| // | |
| // Bookmarklet version: | |
| // http://chengyin.github.io/linkedin-unsubscribed/ |
No longer kept up to date.
Please see Sridhar's fork.
| <?php | |
| ################################################################################ | |
| // Custom WordPress Local Config | |
| // Use only for Development | |
| // https://gist.github.com/bhubbard/8428583 | |
| ################################################################################ | |
| /* Database Connection Info */ | |
| define('DB_NAME', ''); | |
| define('DB_USER', ''); |
| # These steps will get nginx installed on your Mac for local development and | |
| # testing purposes, to be used alongside MAMP (which already includes Apache). | |
| # The following steps assume that you're running MAMP and that you already | |
| # have php-cgi in /Applications/MAMP/bin/php/php5.4.10/bin/php-cgi. | |
| # The start-nginx and stop-nginx scripts created at the end do not | |
| # start or stop MySQL because it is assumed that you normally run MAMP | |
| # with Apache + MySQL turned on and that you occasionally want to switch | |
| # your web server to Nginx for testing purposes and that you leave MySQL running. | |
| # This process was tested successfully on OS X 10.9. |
| /** | |
| * Disable script concatenation. | |
| * If WordPress's dashboard isn't loading styles from load-styles.php | |
| * add this to wp-config.php to disable concatenation and load styles that | |
| * don't have errors | |
| */ | |
| define( 'CONCATENATE_SCRIPTS', false ); |
| /* | |
| * Start by creating a few image sizes for us to use | |
| */ | |
| add_image_size('smallest', 479, 9999); | |
| add_image_size('small', 768, 9999); | |
| add_image_size('largest', 1800, 9999); | |
| /* | |
| * Enqueue our Picturefill Javascript |
| <?php //* Mind this opening php tag | |
| /** | |
| * This will hide the Divi "Project" post type. | |
| * Thanks to georgiee (https://gist.github.com/EngageWP/062edef103469b1177bc#gistcomment-1801080) for his improved solution. | |
| */ | |
| add_filter( 'et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1 ); | |
| function mytheme_et_project_posttype_args( $args ) { | |
| return array_merge( $args, array( | |
| 'public' => false, |