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 | |
/* Template Name: Test */ | |
/** | |
* Genesis custom loop | |
*/ | |
function be_custom_loop() { | |
global $post; | |
// arguments, adjust as needed |
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 | |
/* | |
* Disable My Sites menu in toolbar for Super Admins & replace with custom menu | |
* Docs: http://codex.wordpress.org/Class_Reference/WP_Admin_Bar | |
*/ | |
function jpl_remove_my_sites( $wp_admin_bar ) { | |
if (current_user_can('manage_network')) |
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
/** | |
* WordPress Genesis Accessible skip links for screen readers and keyboard users | |
* Rian Rietveld - rrwd.nl | |
* Add this to style.css in the child theme for the Genesis Framework by StudioPress. | |
* The skip links are dependent on the selected page layout | |
*/ | |
a.skip-link { | |
background-color: #f2f9ff; |
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
Sass Mixin for typekit variation-specific font-family names | |
Typekit IE6-8 Support (http://help.typekit.com/customer/portal/articles/6855-Using-multiple-weights-and-styles) | |
$lucida-grande: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif; | |
$georgia: Georgia, Cambria, "Times New Roman", Times, serif; | |
// Must include fallbacks for EACH typekit font — set them each as variables | |
//************************************************************************// | |
$typekit-fonts: "source-sans-pro", "ff-tisa-web-pro"; // index [1, 2] |
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
/** | |
* Post Authors Post Link Shortcode | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/wordpress-post-multiple-authors/ | |
* | |
* @param array $atts | |
* @return string $authors | |
*/ | |
function be_post_authors_post_link_shortcode( $atts ) { |
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_filter('tribe_get_events_title','custom_get_events_title'); | |
function custom_get_events_title( $depth=true ) { | |
global $wp_query; | |
$tribe_ecp = TribeEvents::instance(); | |
$title = __('Class Schedule', 'tribe-events-calendar'); | |
// TODO: Use the displayed dates for the title | |
/* | |
if ( tribe_is_upcoming() || isset( $_REQUEST['tribe-bar-date'] ) ) { |
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
/*-----------------------------------------------------------------------------------*/ | |
/* Set Post Titles in Genesis | |
/*-----------------------------------------------------------------------------------*/ | |
add_action('genesis_post_title','custom_do_post_title'); | |
function custom_do_post_title() { | |
$tribe_ecp = TribeEvents::instance(); | |
$title = get_the_title(); | |
if ( strlen( $title ) == 0 ) |
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 | |
add_filter( 'agentpress_featured_listings_widget_loop', 'child_featured_listings_widget_loop' ); | |
/** | |
* This code will replace the "," left behind in AgentPress feature listing widget after | |
* the listing detail IDs have been changed. | |
* Change the IDs to suit your needs. | |
*/ | |
function child_featured_listings_widget_loop( $loop ){ |
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
/* Form */ | |
.with_frm_style label{ | |
font-size:12px; | |
float:none; | |
text-align:left; | |
margin:0; | |
padding:0; | |
width:auto; | |
} |
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 | |
/** | |
* Template Name: Testimonial Archives | |
* 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 |