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 include the opening php tag shown above. Copy the code shown below. | |
//* Modify the Genesis read more link | |
add_filter( 'excerpt_more', 'wps_read_more_link'); | |
add_filter('get_the_content_more_link', 'wps_read_more_link'); | |
function wps_read_more_link() { | |
return '... <a class="more-link" href="' . get_permalink() . '">Continue Reading<span class="screen-reader-text">' . get_the_title() . '</span></a>'; |
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
<a href="http://google.com" class="button">Primary button</a> | |
<a href="http://google.com" class="button-dark">Dark button</a> | |
<a href="http://google.com" class="button-light">Light button</a> |
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
[btn-light link="http://google.com"]Light button[/btn-light] |
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
[btn-dark link="http://google.com"]Dark button[/btn-dark] |
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
[btn link="http://google.com"]Primary button[/btn] |
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
/* Product thumbnails shop page | |
--------------------------------------------- */ | |
.product-thumbs { | |
display: block; | |
overflow: auto; | |
margin: 10px 0; | |
width :100%; | |
} | |
.product-thumbs .thumb { |
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
//* Add gallery thumbs to woocommerce shop page | |
add_action('woocommerce_shop_loop_item_title','wps_add_extra_product_thumbs', 5); | |
function wps_add_extra_product_thumbs() { | |
if ( is_shop() ) { | |
global $product; | |
$attachment_ids = $product->get_gallery_attachment_ids(); |
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 include the opening php tag shown above. Copy the code shown below. | |
//* Add Pinterest pin-it button to woocommerve single product page | |
add_action('woocommerce_share', 'wps_pinterest_share' ); | |
function wps_pinterest_share(){ | |
global $post; | |
$pinterestimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); | |
$pinterestbutton = '//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png'; |
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 include the opening php tag shown above. Copy the code shown below. | |
//* Add Pinterest pin-it button to Woocommerce single product page | |
add_action('woocommerce_share', 'wps_pinterest_share' ); | |
function wps_pinterest_share(){ | |
global $post; | |
$pinterestimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); |
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 include the opening php tag shown above. Copy the code shown below. | |
//* Loads Pinterest pin-it script | |
add_action( 'wp_enqueue_scripts', 'wps_load_scripts' ); | |
function wps_load_scripts() { | |
if ( is_product() ) { | |
wp_enqueue_script( 'pin-it', '//assets.pinterest.com/js/pinit.js', array('jquery'), null ); | |
} |