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 | |
//don't add again | |
// assumes that you have registered your js for the new lightbox and that you understand what a handle is. | |
// Gallery Support | |
add_theme_support( 'wc-product-gallery-zoom' ); | |
add_theme_support( 'wc-product-gallery-slider' ); | |
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 | |
//don't add above twice if it already exists | |
/** | |
* Check if WooCommerce Page of all kinds (not just cart and shop) | |
* @thanks: https://faish.al/2014/01/06/check-if-it-is-woocommerce-page/ | |
* Checked IDS with WooCommerce Repo 1 June 2019 | |
*/ | |
function ca_is_really_woocommerce_page() { |
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
.my-hero-container { | |
position: relative; | |
height: 20vh; | |
min-height: 150px; | |
} | |
@media (min-width: 800px) { | |
.my-hero-container { | |
height: 45vh; | |
min-height: 250px; |
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 | |
//Don't re-add the php tag | |
/* | |
* Comment out the ones you want to keep. You will need some, but not all, for each project. | |
* Also, if you un-register then you can't use the_widget(); | |
*/ | |
add_action( 'widgets_init', 'cab_unregister_widgets', 10 ); | |
/** |
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 | |
//don't re add the php tag above | |
add_filter('wp_link_query', 'cab_add_custom_post_type_archive_link', 10, 2); | |
/** | |
* Add Custom Post Type archive to WordPress search link query | |
* Author: https://github.com/mthchz/editor-archive-post-link/blob/master/editor-archive-post-link.php | |
*/ | |
function cab_add_custom_post_type_archive_link( $results, $query ) { |
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 | |
//don't add again | |
// Save Time? Consider a donation via PayPal @ me@christinacreativedesign.com | |
add_action( 'wp_head', 'childprefix_beaver_builder_modifications', 0 ); | |
/* | |
* Beaver Builder Builder Enabled Modifications |
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 | |
//* DON'T ADD ABOVE | |
/* | |
* | |
* READ ME: | |
* I'm using Beaver Builder for page post types and I don't want that option on | |
* WooCommerce store, cart, checkout, and my account pages. I don't want the client to ask why she can't change |
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 | |
///DO NOT copy above | |
remove_action( 'genesis_doctype', 'genesis_do_doctype' ); | |
add_action( 'genesis_doctype', 'childthemeprefix_html5_no_js_device_doctype' ); | |
/** | |
* Add Doc Type no-js default | |
* reference: http://alxmedia.se/code/2013/11/using-a-no-js-class-in-your-wordpress-theme/ |
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 | |
//IMPORTANT: don't add above | |
add_filter( 'body_class', 'yourprefix_category_slug_body_class_single' ); | |
/** | |
* Add category body class to single posts any post type | |
*/ | |
function yourprefix_category_slug_body_class_single( $classes ) { | |
if ( is_single() ) : |
NewerOlder