This file contains 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 | |
/** | |
* Template Name: New Tests Archive | |
*/ | |
/** Remove original Primary Sidear -- add custom sidebar */ | |
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); | |
add_action( 'genesis_sidebar', 'csbeck_custom_sidebar_archive' ); | |
function csbeck_custom_sidebar_archive() { |
This file contains 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 | |
/** | |
* Template Name: Portfolio Grid | |
* This file displays a Grid within a page. | |
*/ | |
add_action( 'genesis_post_content', 'genesis_do_post_content' ); | |
/**remove_action( 'genesis_loop', 'genesis_do_loop' );**/ | |
add_action( 'genesis_loop', 'child_grid_loop' ); |
This file contains 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 | |
/** | |
* Possibly amend the loop. | |
* | |
* Specify the conditions under which the grid loop should be used. | |
* | |
* @author Bill Erickson | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/genesis-grid-loop-advanced/ |
This file contains 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
/* | |
Theme Name: eleven40 Child Theme | |
Theme URI: http://www.studiopress.com/themes/eleven40 | |
Description: eleven40 is a two or three column child theme created for the Genesis Framework. | |
Author: StudioPress | |
Author URI: http://www.studiopress.com/ | |
Version: 1.1 | |
Tags: black, blue, green, orange, red, white, dark, light, three-columns, two-columns, left-sidebar, right-sidebar, fixed-width, custom-menu, featured-images, full-width-template, post-formats, sticky-post, theme-options, threaded-comments |
This file contains 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 | |
/** Add custom meta box **/ | |
add_action( 'add_meta_boxes', 'myplugin_add_custom_box' ); | |
// backwards compatible (before WP 3.0) | |
// add_action( 'admin_init', 'myplugin_add_custom_box', 1 ); | |
/* Do something with the data entered */ | |
add_action( 'save_post', 'myplugin_save_postdata' ); |
This file contains 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 | |
/** | |
* This file adds a custom Genesis Loop */ | |
/* | |
Template Name: Feature Loop Page | |
*/ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'child_grid_loop_helper', 55 ); |
This file contains 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 | |
/** | |
* Template Name: Professionals Listing Page | |
* Description: Used as a page template to show page contents, followed by a loop through a CPT archive | |
*/ | |
remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop | |
add_action( 'genesis_loop', 'custom_do_loop' ); // Add custom loop |
This file contains 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
/******* Customize Login Logo ******/ | |
function my_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_bloginfo('stylesheet_directory').'/images/login_logo.png) !important; background-size: 287px 66px !important; height: 66px !important; width: 287px !important; margin-left: 20px !important; } | |
</style>'; | |
} | |
add_action('login_head', 'my_custom_login_logo'); |
This file contains 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
<!-- Search Form --> | |
<div style="margin:10px 0 10px 0;"> | |
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> | |
<table cellspacing="5"> | |
<tr> | |
<td> | |
<label for="s" style="margin:10px;">Search in Categories</label> | |
</td> | |
<td> | |
<input type="text" class="field" name="s" style="width: 100px;"/> |
This file contains 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 PHP functionality in Widgets | |
add_filter('widget_text','execute_php',100); | |
function execute_php($html){ | |
if(strpos($html,"<"."?php")!==false){ | |
ob_start(); | |
eval("?".">".$html); | |
$html=ob_get_contents(); | |
ob_end_clean(); | |
} | |
return $html; |
OlderNewer