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
// customize single post header content for dx5 | |
add_action( 'genesis_entry_header', 'dx5_do_post_header'); | |
function dx5_do_post_header() { | |
genesis_markup( array( | |
'html5' => '<header %s>', | |
'context' => 'dx5-post-heading', | |
) ); |
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 | |
add_action( 'cookbook_recipe_print_head', 'prefix_cookbook_inline_print_css', 99 ); | |
/** | |
* Inline custom print styles in the Cookbook print head. | |
* | |
* @since 1.0.0 | |
* @access public | |
* @return void | |
*/ |
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
# BEGIN serve images from production | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f [NC] | |
RewriteRule ^(.*\.(js|css|png|jpe?g|gif|ico|svg)) http://example.com/$1 [NC,P,L] | |
</IfModule> | |
# END serve images from production |
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 | |
add_filter( 'cookbook_recipe_image_size', 'prefix_get_recipe_image_size' ); | |
/** | |
* Modify the default cookbook recipe image size. | |
* | |
* @since 1.0.0 | |
* @param string $size The current image size. | |
* @return string | |
*/ |
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 | |
add_filter( 'cookbook_strings', 'prefix_custom_strings' ); | |
/** | |
* Modify the default template strings in Cookbook. | |
* | |
* @since 1.0.0 | |
* @param array $strings The default template strings. | |
* @return array | |
*/ |
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 | |
/** | |
* Write a debug log. | |
* | |
* @param mixed $msg A message to log. | |
*/ | |
function sitecare_debug_log( $msg = null ) { | |
if ( ! is_string( $msg ) ) { | |
$msg = print_r( $msg, true ); |
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
/* globals FWP */ | |
/** | |
* JavaScript for FacetWP Infinite Scroll | |
*/ | |
(function( $ ) { | |
'use-strict'; | |
var throttleTimer = null; | |
var throttleDelay = 100; |
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 | |
add_action( 'wp_enqueue_scripts', 'prefix_disable_wp_featherlight_woocommerce', 10 ); | |
/** | |
* Remove all required scripts and styles on WooCommerce pages. | |
* | |
* @since 0.1.0 | |
* @access public | |
* @return void | |
*/ | |
function prefix_disable_wp_featherlight_woocommerce() { |
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
<a href="https://www.youtube.com/embed/CEYRBTZWu8U" data-featherlight="iframe" data-featherlight-iframe-width="960" data-featherlight-iframe-height="540"> | |
<img class="alignnone" src="http://img.youtube.com/vi/CEYRBTZWu8U/maxresdefault.jpg" alt="" width="1280" height="720" /> | |
</a> |
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 ( ! function_exists( 'shitty_pluggable_function' ) ) { | |
function shitty_pluggable_function() { | |
echo 'I am a piece of shit and I wish I was never created'; | |
} | |
} |
NewerOlder