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 | |
/** | |
* Genesis Framework. | |
* | |
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. | |
* Please do all modifications in the form of a child theme. | |
* | |
* @package Genesis\Framework | |
* @author StudioPress | |
* @license GPL-2.0+ |
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 support for custom header | |
add_theme_support( 'custom-header', array( 'width' => 250, 'height' => 70, 'header-selector' => '.site-title a', 'header-text' => false ) ); | |
//* Add theme support for custom background | |
add_theme_support( 'custom-background' ); | |
//* Add theme support for additional color style options | |
add_theme_support( 'genesis-style-selector', 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 | |
// WP_Query arguments for slide CPT | |
$args = array ( | |
'post_type' => 'slide', | |
'posts_per_page' => '5' | |
); | |
// The Query | |
$query = new WP_Query( $args ); | |
// The Loop | |
if ( $query->have_posts() ) { |
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
/* Site Container Fadein | |
---------------------------------------------------------------------------------------------------- */ | |
.site-container { | |
-webkit-animation: fadein 1s; | |
-moz-animation: fadein 1s; | |
-ms-animation: fadein 1s; | |
-o-animation: fadein 1s; | |
animation: fadein 1s; | |
} |
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('woocommerce_product_meta_start', 'my_woocommerce_after_single_product' ); | |
/** | |
* Add Brand taxonomy link to Single Product page | |
* @author Joe Dooley | |
* | |
*/ | |
function my_woocommerce_after_single_product () { |
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 | |
/** Conditionally Customize Read More Text */ | |
add_filter( 'excerpt_more', 'choosy_blog_read_more_link' ); | |
add_filter( 'get_the_content_more_link', 'choosy_blog_read_more_link' ); | |
add_filter( 'the_content_more_link', 'choosy_blog_read_more_link' ); | |
function choosy_blog_read_more_link() { | |
if ( is_home() ) |
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 | |
// ACF Theme Options Page | |
if( function_exists('acf_add_options_page') ) { | |
$acf_theme_settings = acf_add_options_page(array( | |
'page_title' => 'Theme General Settings', | |
'menu_title' => 'Theme Settings', | |
'menu_slug' => 'theme-general-settings', | |
'capability' => 'edit_posts', |
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
// WooCommerce add the image wrap | |
add_action( 'woocommerce_before_shop_loop_item_title', create_function('', 'echo "<div class=\"img-wrap\">";'), 5, 2); | |
add_action( 'woocommerce_before_shop_loop_item_title', create_function('', 'echo "</div>";'), 12, 2); |
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
add_action( 'after_setup_theme', 'woocommerce_support' ); | |
function woocommerce_support() { | |
//* Enable Support for WooCommerce | |
add_theme_support( 'woocommerce' ); | |
//* Add html5 markup structure | |
add_theme_support( 'html5' ); | |
//* Add viewport meta tag for mobile browsers |
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 | |
//* Enqueue scripts and styles for Slick Slider | |
add_action( 'wp_enqueue_scripts', 'choosy_slick_slider_enqueue_scripts' ); | |
function choosy_slick_slider_enqueue_scripts() { | |
if( is_front_page() ) | |
{ | |
wp_enqueue_style( 'slick-css', get_stylesheet_directory_uri() . '/lib/css/slick.css', array(), CHILD_THEME_VERSION ); |
OlderNewer