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
jQuery(function( $ ){ | |
$(".site-header").backstretch([BackStretchImg.src],{duration:3000,fade:750}); | |
}); |
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 extra class to content | |
function wpstudio_add_class( $attributes ) { | |
$attributes['class'] = $attributes['class']. 'your_extra_class'; | |
return $attributes; | |
} | |
add_filter( 'genesis_attr_content', 'wpstudio_add_class' ); |
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
//Custom icon for PayPal payment option on WooCommerce checkout page. | |
function wpstudio_extended_paypal_icon() { | |
// picture of accepted credit card icons for PayPal payments | |
return get_stylesheet_directory_uri() .'/images/paypal.png'; | |
} | |
add_filter( 'woocommerce_paypal_icon', 'wpstudio_extended_paypal_icon' ); |
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 | |
/* | |
Template Name: Masonry Grid Scroll | |
*/ | |
/* | |
* @author Frank Schrijvers | |
* @link https://www.wpstud.io | |
*/ |
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 | |
/* | |
Template Name: Masonry Grid Scroll | |
*/ | |
/* | |
* @author Frank Schrijvers | |
* @link https://www.wpstud.io | |
*/ |
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
// Settings Masonary | |
jQuery( document ).ready( function( $ ) { | |
$( '#container' ).masonry( ); | |
} ); |
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
// Masonry loop | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'wpstudio_content_area', 'wpstudio_masonry', 30 ); | |
function wpstudio_masonry() { | |
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; | |
$args = ( array( | |
'post_type' => 'post', |
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 init infinite scroll | |
add_action( 'wp_footer', 'custom_infinite_scroll_js',100); | |
function custom_infinite_scroll_js() { | |
?> | |
<script> | |
var infinite_scroll = { | |
loading: { | |
msgText: "<?php _e( 'Loading the next set of posts...', 'plastic' ); ?>", | |
finishedMsg: "<?php _e( 'All posts loaded.', 'plastic' ); ?>" | |
}, |
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
// Build the page | |
get_header(); | |
do_action( 'wpstudio_content_area' ); | |
get_footer(); |
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
/* Masonry & Infinite scroll | |
--------------------------------------------- */ | |
#container { | |
margin-bottom: -1.875em; | |
margin-left: -1.562%; | |
overflow: hidden; | |
padding-bottom: 160px; | |
position: relative; | |
width: 103.125%; | |
} |