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
function my_theme_register_part_hooks( $parts ) { | |
$parts[] = array( | |
'label' => 'Custom Hooks', | |
'hooks' => array( | |
'genesis_after_before-footer_widget_area' => 'Before Footer Widgets', | |
) | |
); | |
return $parts; | |
} | |
add_filter( 'fl_theme_builder_part_hooks', 'my_theme_register_part_hooks', 11 ); |
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
( function( $ ) { | |
$( function() { | |
FLBuilderGalleryGrid.prototype.resize = function() | |
{ | |
var winWidth = $(window).width(), | |
wrap = $(this.wrapSelector), | |
wrapWidth = wrap.width(), | |
numCols = winWidth > 480 ? 3 : 1, |
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
/** | |
* This function assumes you have a Customizer export file in your theme directory | |
* at 'data/customizer.dat'. That file must be created using the Customizer Export/Import | |
* plugin found here... https://wordpress.org/plugins/customizer-export-import/ | |
*/ | |
function import_customizer_settings() | |
{ | |
// Check to see if the settings have already been imported. | |
$template = get_template(); | |
$imported = get_option( $template . '_customizer_import', false ); |
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 | |
/** | |
* @class Export_Import_Install_Control | |
*/ | |
final class Export_Import_Install_Control extends WP_Customize_Control { | |
/** | |
* @method render_content | |
* @protected |
NewerOlder