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
/********************************** | |
* | |
* Move WooCommerce Price on Single Product Page | |
* | |
* @author AlphaBlossom / Tony Eppright | |
* @link http://www.alphablossom.com | |
* | |
* Reference hook locations using woocommerce_single_product_summary hook | |
* | |
* @hooked woocommerce_template_single_title – 5 |
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 //Remove this line | |
/** | |
* Remove Genesis child theme style sheet | |
* @uses genesis_meta <genesis/lib/css/load-styles.php> | |
*/ | |
remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
/** | |
* Enqueue Genesis child theme style sheet at higher priority |
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 include the opening php tag | |
//* Set content/sidebar as the default layout | |
genesis_set_default_layout( 'content-sidebar' ); | |
//* Set sidebar/content as the default layout | |
genesis_set_default_layout( 'sidebar-content' ); | |
//* Set content/sidebar/sidebar as the default layout |
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 include the opening php tag | |
//* Force content-sidebar layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' ); | |
//* Force sidebar-content layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_sidebar_content' ); | |
//* Force content-sidebar-sidebar layout |
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 | |
define('DB_NAME', ''); | |
define('DB_USER', 'root'); | |
define('DB_PASSWORD', 'root'); | |
define('WP_HOME', 'http://.loc/'); | |
define('WP_SITEURL', 'http://.loc/'); | |
define('DB_HOST', 'localhost'); | |
define('FS_METHOD','direct'); | |
define('WP_DEBUG', 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
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Display a custom favicon | |
add_filter( 'genesis_pre_load_favicon', 'cmk_favicon_filter' ); | |
function cmk_favicon_filter( $favicon_url ) { | |
return get_stylesheet_directory_uri().'/images/favicon.png'; | |
} |
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
/** | |
* @author David Perez - Closemarketing | |
* @example https://www.closemarketing.es/ | |
*/ | |
add_action('get_header', 'wpsites_remove_header'); | |
function wpsites_remove_header() { | |
if (is_home()||is_front_page()) { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
} | |
} |