Skip to content

Instantly share code, notes, and snippets.

View mjepson's full-sized avatar

Magnus Jepson mjepson

View GitHub Profile
<?php
/*-----------------------------------------------------------------------------------
TABLE OF CONTENTS
- Exclude categories from displaying on the "Blog" page template.
- Exclude categories from displaying on the homepage.
- Register WP Menus
- Page navigation
<?php
/*-----------------------------------------------------------------------------------
TABLE OF CONTENTS
- Change author archive slug
- Count users
- Count agents
- Set up Roles & Capabilities
@mjepson
mjepson / gist:4618676
Created January 24, 2013 08:20
Canvas disable IE8 responsive
add_action( 'init', 'custom_remove_responsive_ie8', 9 );
function custom_remove_responsive_ie8() {
if ( is_admin() ) return;
global $is_IE;
if ($is_IE) {
$browser = $_SERVER['HTTP_USER_AGENT'];
$browser = substr( "$browser", 25, 8);
if ($browser == "MSIE 8.0" ) {
add_action( 'init', 'woo_load_responsive_design_removal', 10 );
<iframe src="http://fast.wistia.net/embed/iframe/ypqgmytzt1?autoPlay=true&plugin%5Bsocialbar-v1%5D=%7B%22buttons%22%3A%22twitter-googlePlus-facebook%22%7D&version=v1&videoHeight=331&videoWidth=460&volumeControl=true" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" width="400" height="288" style="padding-left:50px; float:right;"></iframe>
323 Ventures, Inc. is a privately held digital marketing firm in Fort Lauderdale, Florida. It is the umbrella to a variety of entrepreneurial ventures, primarily specialized in building businesses with online traffic generation and technology. We partner with industry leaders to build dominant ventures, in addition to investing in the development of our own brands and products.
In today's digital space, there's no room for loosely put together marketing strategies, we like to <a href="https://s3.amazonaws.com/ksr/assets/000/216/707/7289fefaabcc022b92cb7224c6c672dd_large.jpeg?1350622873" target="_blank">keep 'em tight</a>. We
/*
WOO CUSTOM STYLESHEET
---------------------
Instructions:
Add your custom styles in this file instead of style.css so it
is easier to update the theme. Simply copy an existing style
from style.css to this file, and modify it to your liking. */
/*
WOO CUSTOM STYLESHEET
---------------------
Instructions:
Add your custom styles in this file instead of style.css so it
is easier to update the theme. Simply copy an existing style
from style.css to this file, and modify it to your liking. */
/*
WOO CUSTOM STYLESHEET
---------------------
Instructions:
Add your custom styles in this file instead of style.css so it
is easier to update the theme. Simply copy an existing style
from style.css to this file, and modify it to your liking. */
<?php
$settings = array(
'homepage_intro_message' => ''
);
$settings = woo_get_dynamic_values( $settings );
?>
<?php if ( '' != $settings['homepage_intro_message'] ) { ?>
<section id="intro-message" class="home-section">
<header>
<?php
/*-----------------------------------------------------------------------------------*/
/* Start WooThemes Functions - Please refrain from editing this section */
/*-----------------------------------------------------------------------------------*/
// Set path to WooFramework and theme specific functions
$functions_path = get_template_directory() . '/functions/';
$includes_path = get_template_directory() . '/includes/';
// Don't load alt stylesheet from WooFramework
<?php
$settings = array(
'homepage_intro_message' => ''
);
$settings = woo_get_dynamic_values( $settings );
?>
<?php if ( '' != $settings['homepage_intro_message'] ) { ?>
<section id="intro-message" class="home-section">
<header>