Skip to content

Instantly share code, notes, and snippets.

Avatar

Spencer Finnell spencerfinnell

View GitHub Profile
View gist:950052
add_action( 'after_setup_theme', 'child_theme_types', 11 );
function child_theme_types() {
remove_action( 'init', 'woo_post_types' );
add_action( 'init', 'my_post_types' );
}
function my_post_types() {
...
}
@spencerfinnell
spencerfinnell / support.php
Created Nov 3, 2011
bbPress Support Topics
View support.php
<?php
/**
* Not a real plugin yet. Just some code from WPBundle
*
* ....
*/
/**
* Toggle a topic's status. Used to mark a topic as resolved
* or not resolved. Mirrors other bbPress toggle functionality.
View gist:3915040
<?php
/**
* Upgrade Functions
*
* @package Easy Digital Downloads
* @subpackage Download Functions
* @copyright Copyright (c) 2012, Pippin Williamson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.3.1
View gist:5304598

Videos and Citations

[video src="VIDEO SOURCE HERE" width="520" height="295"] <cite class="video-note">CITATION HERE</cite>

Left Aligned Video & Citation

<div class="wp-caption alignleft">[video src="VIDEO SOURCE HERE" width="320" height="240"]
View gist:5345631
/*
Theme Name: Colink Theme
Description: Child theme for Fundify
Author: AppThemer
Template: fundify
*/
@import url("../fundify/css/style.css");
View gist:5357306
@media (min-width:665px) {
.site-secondary-menu-toggle {
display: none;
}
}
View style.css
@import url( "../../fundify/css/style.css" );
View css-style.css
@import url( "../../fundify/css/style.css" );
View functions.php
/**
* Set the number of decimal places per currency
*
* @since 1.4.2
* @param int $decimals Number of decimal places
* @return int $decimals
*/
function techdy_currency_decimal_filter( $decimals = 2 ) {
global $edd_options;
View gist:5420023
<?php
/**
* @package Fundify
* @since Fundify 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( ! is_page() ) : ?>
<?php if ( has_post_thumbnail() ) : ?>
You can’t perform that action at this time.