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
//Deregister Gravity Stylesheets and Scripts from specific pages | |
add_action("gform_enqueue_scripts", "deregister_scripts"); | |
function deregister_scripts(){ | |
//Change this conditional to target whatever page or form you need. | |
if(is_front_page()) { | |
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 this line if used in functions.php | |
/** | |
* WP scripts to Footer with jQuery Google CDN support. | |
* | |
* Ensures that Modernizr/HTM5shiv is loaded | |
* in the head for IE9 and less support | |
* | |
* @package Optimize_WP_Scripts_Loading | |
* @author BryanWillis |
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 | |
/** | |
* HTML5 Styles Dropdown | |
* | |
* @author Bryan Willis | |
* @link https://www.tinymce.com/docs/demo/format-html5/ | |
*/ | |
function mce_html5_formatting( $init ) { |
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 | |
/** | |
* Debug Genesis Attributes | |
* @author Bryan Willis | |
*/ | |
add_action( 'wp_footer', 'debug_genesis_attr_filters' ); | |
function debug_genesis_attr_filters() | |
{ | |
global $wp_filter; // current_filter() might be a better way to do this | |
$genesis_attr_filters = array (); |
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 | |
$genesis_atts = array( | |
'nav-primary', | |
'nav-secondary', | |
'site-header', | |
'site-inner', | |
'content-sidebar-wrap', | |
'content', | |
'sidebar-primary', |
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 | |
/* STYLES IN EDITOR - Multiple stylesheets | |
================================================== */ | |
function child_load_editor_mce_css( $mce_css ) { | |
if ( ! empty( $mce_css ) ) { | |
$mce_css .= ','; | |
} | |
$mce_css .= BW_CHILD_URL_DIST . '/bootstrap/css/bootstrap.css'; |
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 | |
/** | |
* Genesis Framework. | |
* | |
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. | |
* Please do all modifications in the form of a child theme. | |
* | |
* @package Genesis\Assets | |
* @author StudioPress | |
* @license GPL-2.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 | |
/** | |
* Module: Bootstrap Genesis Plugin - Structural Wraps | |
* Author: Bryan Willis | |
*/ | |
/** | |
* Add theme support for structural wraps | |
*/ | |
function gb3_add_theme_support_structural_wraps() { |
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 | |
// Only administrators can delete published posts: | |
add_filter( 'map_meta_cap', | |
function( $required_caps, $cap ) { | |
if ( 'delete_post' == $cap ) | |
$required_caps[] = 'manage_options'; | |
return $required_caps; | |
}, 10, 2 ); |
NewerOlder