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
# https://anythinggraphic.net/disable-emojis-in-wordpress-without-a-plugin | |
## BEGIN BROWSER CACHING (EXPIRES CACHING) | |
## EXPIRES HEADER CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType text/css "access 1 month" |
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
# https://anythinggraphic.net/disable-emojis-in-wordpress-without-a-plugin | |
# BEGIN DISABLE ETAG HEADER | |
FileETag None | |
# END DISABLE ETAG HEADER |
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 | |
/* @link https://anythinggraphic.net/yoast-seo-add-custom-social-share-images-for-archive-category-pages-in-wordpress | |
/* Add custom Facebook Social Share images for Yoast SEO for Archive pages | |
----------------------------------------------------------------------------------------*/ | |
add_filter( 'wpseo_opengraph_image', 'ag_yoast_seo_fb_share_images', 10, 1 ); | |
function ag_yoast_seo_fb_share_images( $img ) { | |
if( is_post_type_archive( 'archivename') ) { | |
$img = get_stylesheet_directory_uri().'/images/your-image-file.jpg'; | |
} | |
if( is_category( 'categoryname') ) { |
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 | |
/* @link https://anythinggraphic.net/yoast-seo-add-custom-social-share-images-for-archive-category-pages-in-wordpress | |
/* Add custom Twitter Social Share descriptions for Yoast SEO for Archive pages | |
----------------------------------------------------------------------------------------*/ | |
add_filter( 'wpseo_metadesc', 'ag_yoast_seo_tw_share_descriptions', 10, 1 ); | |
function ag_yoast_seo_tw_share_descriptions( $desc ) { | |
if( is_post_type_archive( 'portfolio' ) ) { | |
$desc = 'Design and development projects by Anything Graphic.'; | |
} | |
if( is_category( 'categoryname' ) ) { |
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 | |
/* @link https://anythinggraphic.net/yoast-seo-add-custom-social-share-images-for-archive-category-pages-in-wordpress | |
/* Add custom Facebook Social Share descriptions for Yoast SEO for Archive pages | |
----------------------------------------------------------------------------------------*/ | |
add_filter( 'wpseo_opengraph_desc', 'ag_yoast_seo_fb_share_descriptions' ); | |
function ag_yoast_seo_fb_share_descriptions( $desc ) { | |
if( is_post_type_archive( 'posttypename' ) ) { | |
$desc = 'Design and development projects by Anything Graphic.'; | |
} | |
if( is_category( 'categoryname' ) ) { |
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
/* | |
Original link http://www.templatemonster.com/blog/style-checkboxes-radio-buttons-css adapted to Gravity Forms. | |
Uses Font Awesome. Make sure to wrap labels in <span> like so: | |
<script type="text/javascript"> | |
jQuery(function($) { | |
$(".gfield_checkbox label, .gfield_radio label").wrapInner("<span></span>") | |
}); | |
</script> | |
*/ |
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
/* | |
Original link http://www.templatemonster.com/blog/style-radioes-radio-buttons-css adapted to Gravity Forms. | |
Uses Font Awesome. Make sure to wrap labels in <span> like so: | |
<script type="text/javascript"> | |
jQuery(function($) { | |
$(".gfield_checkbox label, .gfield_radio label").wrapInner("<span></span>") | |
}); | |
</script> | |
*/ |
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 | |
/* @link TBA | |
/* Within your custom loop, get all taxonomies for a custom post type (CPT) and display each post within those taxonomies | |
----------------------------------------------------------------------------------------*/ | |
$post_type = 'your_cpt_name'; | |
// Get all of the taxonomies for this post type | |
$taxonomies = get_object_taxonomies((object) array( 'post_type' => $post_type )); ?> |
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
/* Change the description of Gravity Forms/Stripe Form Stripe Receipt (product) | |
----------------------------------------------------------------------------------------*/ | |
add_filter( 'gform_stripe_charge_description', 'ag_custom_product_receipt', 10, 4 ); | |
function ag_custom_product_receipt( $description, $strings, $entry, $submission_data ) { | |
$payment_amount = rgar( $submission_data, 'payment_amount' ); | |
$description = "Payment Amount: " . $payment_amount; | |
GFCommon::log_debug( __METHOD__ . "(): Custom description for the product: " . $description ); |
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 | |
/* Move Post Title and Post Info from inside Entry Header to Entry Content on Posts page | |
----------------------------------------------------------------------------------------*/ | |
add_action( 'genesis_before_entry', 'reposition_entry_header' ); | |
function reposition_entry_header() { | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); |