Skip to content

Instantly share code, notes, and snippets.

View craigsimps's full-sized avatar

Craig Simpson craigsimps

View GitHub Profile
<?php
add_filter( 'genesis_customizer_theme_settings_config', __NAMESPACE__ . '\\remove_genesis_customizer_panels' );
/**
* Remove redundant Genesis Customizer panels.
*
* @param array $config The config array for theme settings in the Customizer.
*
* @return array
*/
<?php
add_action( 'genesis_before_sidebar_widget_area', __NAMESPACE__ . '\\sidebar_switcher' );
/**
* Conditionally replace the sidebar.
*
* @since 1.0.0
*/
function sidebar_switcher() {
<?php
wp_add_inline_script(
'handle',
'// <![CDATA[
// Custom JS here.
// ]]>'
);
<?php
/**
* Remove redundant Genesis meta boxes.
*
* @param string $pagehook Page hook for the Theme Settings page.
*
* @since 1.1.0
*/
add_action( 'genesis_theme_settings_metaboxes', function ( $pagehook ) {
<?php
/**
* Register widget areas.
*
* @uses genesis_register_widget_area()
*
* @since 1.0.0
*/
add_action( 'widgets_init', function () {
//----------------------------
// Base
//----------------------------
@import "base/typography";
@import "base/*";
//----------------------------
// Base
//----------------------------
@import "base/*";
//----------------------------
// Base
//----------------------------
@import "base/accessibility";
@import "base/buttons";
@import "base/forms";
@import "base/headings";
@import "base/layout";
@import "base/lists";
toolkit.extendConfig({
/* ... Shortened for readability. */
js: {
'global': [ /* File will be output as global.js and global.min.js */
'develop/js/responsive-menus.js',
'develop/js/backstretch.jquery.js',
'develop/js/bxslider.jquery.js',
'develop/js/main.js'
],
'account': [ /* File will be output as account.js and account.min.js */
toolkit.extendConfig({
/* ... Shortened for readability. */
js: {
'global': [ /* File will be output as global.js and global.min.js */
'develop/js/responsive-menus.js',
'develop/js/backstretch.jquery.js',
'develop/js/bxslider.jquery.js',
'develop/js/main.js'
],
'account': [ /* File will be output as account.js and account.min.js */