This file contains 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
/** | |
* Gravity Wiz // Gravity Forms // Kayak-style Datepicker | |
* Style your Gravity Forms Datepickers like Kayak.com | |
*/ | |
.datepicker-clean.ui-datepicker { | |
background-color: #fff; | |
width: 516px !important; | |
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1) !important; | |
padding-left: 20px; | |
position: relative; |
This file contains 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 | |
/* | |
* array_cartesian | |
* | |
* This function will fix a frustrating issue in the WooCommerce plugin | |
* When adding a product using variations, you will most likely use the 'Create variations from all attributes' function | |
* The issue with this function is that it will create the variations in a random order | |
* This is frustrating for your clients to edit | |
* |
This file contains 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 | |
if( have_rows('acf_repeaterfield') ): | |
while ( have_rows('acf_repeaterfield') ) : the_row(); | |
$imageID = get_sub_field('acf_subfield'); | |
$image = wp_get_attachment_image_src( $imageID, 'full' ); | |
$alt_text = get_post_meta($imageID , '_wp_attachment_image_alt', true); | |
?> | |
<img src="<?php echo $image[0]; ?>" alt="<?php echo $alt_text; ?>" class="port-img front" /> |
This file contains 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
// AJAX function for listing directory entries alphabetically | |
add_action('wp_ajax_directory_alpha', 'mytheme_ajax_directory_alpha'); | |
add_action('wp_ajax_nopriv_directory_alpha', 'mytheme_ajax_directory_alpha'); | |
function mytheme_ajax_directory_alpha() { | |
function alpha_post_where( $where ) { | |
$new_where = $where . " AND lower(substring(post_title, 1, 1)) = lower('" . $_REQUEST['s'] . "')"; | |
return $new_where; | |
} |
This file contains 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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |