Skip to content

Instantly share code, notes, and snippets.

Avatar

Carrie Dils cdils

View GitHub Profile
View roadmap.md

This is where we'll collect all the things that need doing on Post Status, in terms of overall goals for improving things. It is not a specific issue tracker, though issues may be referenced from here.

Site goals

Improve user experience!

Checkout and My Account

  • Improve Checkout flow to require fewer and appropriate fields
  • Improve layout of cart/checkout
  • Ensure as much is being auto-filled as possible to reduce barrier for existing customers
@Daronspence
Daronspence / count-podcasts.php
Last active Dec 12, 2016
Podcast Count Shortcode
View count-podcasts.php
<?php
/**
* Plugin Name: Podcast Shortcode
* Description: Adds a shortcode to display your podcast count. <code>[podcast-count]</code>
* Version: 1.0
* Author: Daron Spence
* Author URI: https://daronspence.com/
*
* A simple shortcode to display the number of published podcasts on your site. Uses the `podcast` post type.
*
@jcasabona
jcasabona / howibuit.md
Last active Sep 4, 2019
Guest Notes for How I Built It Podcast
View howibuit.md

Guest Notes for How I Built It Podcast

Tips for Good Recording

I'll be doing dual track recording, but if you could record audio on your side that would be great! That way if we see a dip in connection or get weird quality, I can do some track-layering action. To do that:

On a Mac

screenshot 2016-07-29 14 05 25

@logoscreative
logoscreative / plugin.php
Last active Oct 30, 2020
Friendlier, Safer WordPress Admin Areas
View plugin.php
<?php
/**
* "Friendlier, Safer WordPress Admin Areas"
* Presented by Cliff Seal at WordCamp Atlanta 2015 and Asheville 2016
* Slides: http://www.slideshare.net/cliffseal/wp-admin
*
* Plugin Name: A Better Admin Experience
* Plugin URI: http://evermoresites.com
* Description: Cleans up and sanitizes the WordPress admin area
* Version: 1.0
@calliaweb
calliaweb / modify-tinymce-editor-to-remove-h1.php
Last active Apr 25, 2019
Modify TinyMCE editor to remove H1
View modify-tinymce-editor-to-remove-h1.php
<?php
// Do NOT include the opening php tag above
add_filter('tiny_mce_before_init', 'tiny_mce_remove_unused_formats' );
/*
* Modify TinyMCE editor to remove H1.
*/
function tiny_mce_remove_unused_formats($init) {
// Add block format elements you want to show in dropdown
$init['block_formats'] = 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Address=address;Pre=pre';
@BrianBourn
BrianBourn / functions.php
Last active Aug 29, 2015
WordPress 3.9 filter to remove the blog and archive page templates from Genesis, and function to remove the Genesis theme settings blog metabox
View functions.php
<?php //Do not include opening php tag
add_filter( 'theme_page_templates', 'bourncreative_remove_page_templates' );
/**
* Remove Genesis blog and archive templates from page templates dropdown.
*
* @author Brian Bourn
* @link http://www.bourncreative.com/remove-genesis-blog-archive-page-templates/
*
* @param array $templates List of templates.
@srikat
srikat / functions.php
Created Feb 5, 2014
Adding 'Last updated on: date' to post info in Genesis
View functions.php
//* Add last updated date to the post info in entry header (requires HTML5 theme support)
add_filter( 'genesis_post_info', 'sk_post_info_filter' );
function sk_post_info_filter($post_info) {
if (get_the_modified_time() != get_the_time()) {
$post_info = $post_info . '<br/>Last updated on: ' . the_modified_date('F j, Y', '', '', false);
}
return $post_info;
}
@bradpotter
bradpotter / responsive-menu.js
Last active Jan 4, 2016
Combine Primary and Secondary Menu into one Responsive Menu
View responsive-menu.js
/* Make sure your Menus are named Primary Navigation and Secondary Navigation in Appearance > Menus */
(function( window, $, undefined ) {
'use strict';
$('.nav-primary').before('<button class="menu-toggle" role="button" aria-pressed="false"></button>'); // Add toggles to menus
$('nav .sub-menu').before('<button class="sub-menu-toggle" role="button" aria-pressed="false"></button>'); // Add toggles to sub menus
// Show/hide the navigation
$('.menu-toggle, .sub-menu-toggle').click(function() {
@robneu
robneu / genesis-seo-post-info.php
Last active Jan 4, 2016
The default Genesis post info can be tweaked for a bit of extra SEO goodness. This will change your posts publish date to use the last-updated date instead. It also allows you to select a custom author page rather than using the standard post archive. This part is optional and doesn't affect the post date at all.
View genesis-seo-post-info.php
<?php
/**
* Some tweaks to the Genesis post info for SEO purposes.
*
* This set of functions are designed to change the output of the Genesis post info
* to reflect the date a post was updated rather than the date it was published. A
* function to set a custom author page is also included and is entirely optional.
*
* @author FAT Media, LLC
* @link http://auditwp.com/genesis-post-info-seo/
View gist:8531535
<?php
/**
* Uses a query string (color) to apply a body class.
*
* @param array $classes
* @return array
*/
function ja_dynamic_body_class( $classes ){
if ( empty( $_GET['color'] )