Skip to content

Instantly share code, notes, and snippets.

@simplethemes
simplethemes / Column Shortcode
Created August 11, 2011 07:42
Insert fraction-based layouts with this shortcode.
// Three Columns Example
[one_third]
Column One - Add anything you want here
[/one_third]
[one_third]
Column Two - Add anything you want here
[/one_third]
[one_third_last]
Column Three - Add anything you want here
[/one_third_last]
@simplethemes
simplethemes / CSS3 Button
Created August 11, 2011 07:44
CSS3 Button Shortcode
[button align="center" color="white" size="small" link="http://www.simplethemes.com"]Small Button[/button]
@simplethemes
simplethemes / Tabs Shortcode
Created August 11, 2011 07:45
Insert tabs in content with this shortcode.
[tabgroup]
[tab title="Tab 1" id="t1"]Tab 1 content[/tab]
[tab title="Tab 2" id="t2"]Tab 2 content[/tab]
[tab title="Tab 3" id="t3"]Tab 3 content[/tab]
[/tabgroup]
@simplethemes
simplethemes / Skeleton Layout Hooks
Created August 11, 2011 16:38
functions that control the general layout containers
* st_header // Opening header tag and logo/header text
* st_header_extras* // Additional content may be added to the header
* st_navbar // Opening navigation element and WP3 menus
* st_before_content // Opening content wrapper
* st_after_content // Closing content wrapper
* st_before_sidebar // Opening sidebar wrapper
* st_after_sidebar // Closing sidebar wrapper
* st_before_footer // Opening footer wrapper
* st_footer // The footer (includes sidebar-footer.php)
* st_after_footer // The closing footer wrapper
@simplethemes
simplethemes / Latest Posts Shortcode
Created August 12, 2011 17:59
Insert latest posts from specific category(s)
[latest excerpt="true" thumbs="true" width="50" height="50" num="5" cat="8,10,11"]
@simplethemes
simplethemes / Toggles Shortcode
Created August 12, 2011 18:26
Insert toggle panes in content with this shortcode.
[toggle title="Button text One"]
Toggle Content One
[/toggle]
[toggle title="Button Text Two"]
Toggle Content Two
[/toggle]
[toggle title="Button Text Three"]
Toggle Content Three
[/toggle]
@simplethemes
simplethemes / Callout Shortcode
Created August 14, 2011 05:59
Adds a styled callout to your content.
[callout align="center" width="400"]
This is a 400px centered callout box
[/callout]
[callout align="left" width="200"]
This is a 200px left aligned callout box
[/callout]
[callout align="right" width="100"]
This is a 100px right aligned callout box
@simplethemes
simplethemes / slideshow_shortcode
Last active September 27, 2015 06:48
Slideshow Shortcode
// Standard Slideshow Parameters
[slideshow effect="slide" category="17" autoplay="false" width="620" height="250" speed="1000" pagination="true" prevnext="true"]
// Content Slideshow Parameters
[contentslides effect="slide" thumbsize="200,150" display="content" type="category" ids="1" width="600" height="320" autoplay="3000" speed="700" length="4" readmore="false"]
@simplethemes
simplethemes / css-utilities
Created September 27, 2012 21:33
Utility Styles
/* ----------------------------------------------------- */
/* Utitlity Styles */
/* ----------------------------------------------------- */
/* Simple Image Thumbnails */
img.imgleft {
float: left;
margin: 0 10px 0 0;
}
@simplethemes
simplethemes / minify-theme.php
Created January 17, 2013 05:12
minify WordPress theme styles.
/*-----------------------------------------------------------------------------------*/
// Register and Minify Core Stylesheets
/*-----------------------------------------------------------------------------------*/
function st_registerstyles() {
// minify folder name (must be in your wp root).
$minpath = '/min';
// define directories
$child_theme = str_replace(site_url().'/wp-content/themes/', '', get_bloginfo('stylesheet_directory'));