This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! isset( $content_width ) ) | |
$content_width = 1200; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Register widget areas | |
genesis_register_sidebar( array( | |
'id' => 'services-page-1', | |
'name' => __( 'Services Page 1', 'altitude' ), | |
'description' => __( 'This is the front page 1 section.', 'altitude' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'services-page-2', | |
'name' => __( 'Services Page 2', 'altitude' ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add CTA widget support for site. If widget not active, don't display | |
* Modified from http://www.carriedils.com/add-widget-area-below-nav/ | |
*/ | |
function mp_cta_genesis() { | |
// Don't display the CTA on the home page, since it's built into the MP theme | |
if ( is_home() || is_page('blog') || is_archive() ) { | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add custom lightbox attribute to the menu Optin Monster | |
*/ | |
function prefix_menu_item_extra_atts( $atts, $item, $args ) | |
{ | |
if ( $item->object_id == '652') { | |
$atts['data-optin-slug'] = 'uc20zebirdm018gi'; | |
$atts['class'] = 'manual-optin-trigger'; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add homebox Shortcode | |
function homebox_shortcode( $atts , $content = null ) { | |
// Attributes | |
extract( shortcode_atts( | |
array( | |
'boxclass' => '', | |
'link' => '', | |
'title' => '', | |
'img' => '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//For Teas Page Squibbs Iced Teas http://squibbs.studioissa.com/our-teas/ | |
// Add Shortcode | |
function teas_insert_shortcode_first( $atts ) { | |
// Attributes | |
extract( shortcode_atts( | |
array( | |
'img' => '', | |
'title' => '', | |
'desc' => '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Hello_Lovecraft | |
* @version 1.6 | |
*/ | |
/* | |
Plugin Name: Hello Lovecraft | |
Plugin URI: http://wordpress.org/extend/plugins/hello-lovecraft/ | |
Description: This is not just a plugin, it symbolizes the despair and cosmic horror of an entire species summed up by H. P. Lovecraft: "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn”. When activated you will randomly see quote from <cite>Lovecraft</cite> in the upper right of your admin screen on every page. | |
Author: Studio Issa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Register all dashboard metaboxes | |
* | |
* @access public | |
* @since 1.0 | |
* @return void | |
*/ | |
function rc_mdm_register_widgets() { | |
global $wp_meta_boxes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // do not include | |
// Add Search to Secondary Nav | |
add_filter( 'wp_nav_menu_items', 'genesis_search_primary_nav_menu', 10, 2 ); | |
function genesis_search_primary_nav_menu( $menu, stdClass $args ){ | |
if ( 'primary' != $args->theme_location ) | |
return $menu; | |
if( genesis_get_option( 'nav_extras' ) ) | |
return $menu; | |
$menu .= sprintf( '<li class="search icon menu-item"><i class="fa fa-search"></i></li> <li id="menu-item-4439204" class="custom-search menu-item">%s</li>', __( genesis_search_form( $echo ) ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Custom widgets above category pages for pinterest style blog. | |
/** Register widget areas */ | |
genesis_register_sidebar( array( | |
'id' => 'cta-1', | |
'name' => __( 'Call to Action #1', 'mp' ), | |
'description' => __( 'This is the call to action section.', 'mp' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'cta-2', |