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 | |
// get ACF image object | |
$image = get_field('hero_image'); | |
// set var to unique value for section and section class name - here the var is dynamimcally being assigned based on the WP post_name | |
$waldo_class = 'hero-image-' .$post->post_name; | |
// call Waldo to build and complile styles | |
$waldo_styles = $waldo->waldoStylesArray($image, $waldo_class, $waldo_styles, $waldo_class); |
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
// #staff_name search input placeholder | |
$('select').on('select2:open', function() { | |
$('.select2-search--dropdown .select2-search__field').attr('placeholder', 'Type to search...'); | |
}); |
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
// prevent auto-focus on select2 search input | |
$(document).ready(function(){ | |
$('select').on('select2:open', function() { | |
$('.select2-search input').prop('focus', 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 | |
/* modified from https://code.tutsplus.com/tutorials/how-to-activate-plugins-themes-upon-wordpress-installation--cms-23551 */ | |
// set the options to change: https://codex.wordpress.org/Option_Reference | |
$option = array( | |
'blogdescription' => '', | |
'comments_notify' => 0, | |
'default_comment_status' => 'closed', | |
'default_ping_status' => 'closed', |
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 | |
/* | |
* Debugging @TODO: remove or comment out for production | |
*/ | |
function printr($data) { | |
echo "<pre>"; | |
print_r($data); | |
echo "</pre>"; | |
} |
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
curl https://raw.githubusercontent.com/qrpike/Web-Font-Load/master/install.sh | sh |
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 | |
/* | |
* Remove Dashboard Items | |
*/ | |
if (is_admin()) { | |
if (!(function_exists('pl_remove_dash_items'))) { | |
function pl_remove_dash_items() | |
{ | |
// Check that the built-in WordPress function remove_menu_page() exists in the current installation |