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 | |
| // Do not copy opening PHP tag above | |
| // Add the Shop page to Genesis breadcrumbs in WooCommerce | |
| // NOTE: Assumes Genesis Connect for WooCommerce plugin is active | |
| add_filter( 'genesis_archive_crumb', 'wsm_prepend_shop_link', 11, 2 ); | |
| add_filter( 'genesis_single_crumb', 'wsm_prepend_shop_link', 11, 2 ); | |
| function wsm_prepend_shop_link( $crumb, $args ) { | |
| if ( is_singular( 'product' ) || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) { |
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 | |
| // enable divi functions | |
| add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' ); | |
| function my_enqueue_assets() { | |
| wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
| } | |
| //add 1440px image size | |
| add_image_size('image_1440', 1440, 9999, false); |
OlderNewer