View genesis-facebook-sdk.php
<?php | |
/** | |
* Plugin Name: Genesis - Facebook SDK | |
* Plugin URI: https://fatpony.me/ | |
* Description: Adds the Facebook SDK script just after the opening <body> tag on Genesis Framework sites. | |
* Version: 1.0.0 | |
* Author: Erica Franz | |
* Author URI: https://fatpony.me/ | |
* License: GPL2 | |
*/ |
View year-archive-template.php
<?php | |
/** | |
* | |
* Custom Blog Loop for Bradonomics. | |
* | |
* Template Name: Bradonomics Blog | |
* | |
*/ | |
//* Remove standard post content output |
View functions-alt.php
<?php | |
// do NOT include the opening tag | |
add_filter( 'simple_social_default_glyphs', 'rgc_simple_social_icons_glyphs' ); | |
function rgc_simple_social_icons_glyphs( $glyphs ) { | |
$glyphs = array( | |
'bloglovin' => '<span class="fa fa-heart"></span><span class="screen-reader-text">Bloglovin</span>', | |
'dribbble' => '<span class="fa fa-dribbble"></span><span class="screen-reader-text">Dribbble</span>', | |
'email' => '<span class="fa fa-envelope"></span><span class="screen-reader-text">Email</span>', |
View gist:ba9b617afdbdb3867159
add_filter( 'tribe_event_label_singular', 'event_display_name' ); | |
function event_display_name() { | |
return 'XXXX'; | |
} | |
add_filter( 'tribe_event_label_plural', 'event_display_name_plural' ); | |
function event_display_name_plural() { | |
return 'XXXXs'; | |
} |
View px-rem-cheat-sheet.css
/*! = $rembase: 14px | |
-------------------------------------------------------------- | |
* hmtl { font-size: 87.5%; } | |
* body { font-size: 14px; font-size: 1rem; line-height: 1; } | |
* 4px 0.28571429rem | |
* 8px 0.571428571rem | |
* 12px 0.857142857rem | |
* 13px 0.928571429rem | |
* 14px 1rem | |
* 16px 1.142857143rem |
View gist:4150286
/** | |
* This widget presents a search widget which uses listings' taxonomy for search fields. | |
* | |
* @package AgentPressTwo | |
* @since 2.0 | |
* @author Russell Fair | |
*/ | |
class AgentPressTwo_Listings_Search_Widget extends WP_Widget { | |
function AgentPressTwo_Listings_Search_Widget() { |
View remove-wpe-info.php
<?php | |
// Remove all evidence of WP Engine from the Dashboard, unless the logged in user is "wpengine" | |
$user = wp_get_current_user(); | |
if ( $user->user_login != 'wpengine' ) { | |
add_action( 'admin_init', 'jpry_remove_menu_pages' ); | |
add_action( 'admin_bar_menu', 'jpry_remove_admin_bar_links', 999 ); | |
} | |
/** |
NewerOlder