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( document ).ready( function( $ ) { | |
// This is where we apply opacity to the intro overlay | |
$( window ).scroll( function() { | |
// Hide the overlay if user has scrolled past 1px from top | |
if ( $( window ).scrollTop() >= 1 ) { | |
$( '.vanishing-message' ).removeClass('has-overlay'); | |
$( '.vanishing-message .text' ).css( 'opacity', 0 ); | |
} |
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 | |
/** | |
* Plugin Name: Sell Media Image Size Filter | |
* Plugin URI: https://graphpaperpress.com/plugins/sell-media/ | |
* Description: Filter to Sell Media that adds a new image size for a new image aspect ratio used in Sell Media archives and shortcodes | |
* Version: 1.0.0 | |
* Author: Thad Allender | |
* Author URI: https://graphpaperpress.com | |
* Author Email: [email protected] | |
* Text Domain: sell_media |
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 | |
/** | |
* Filter for prints text | |
*/ | |
function sell_media_print_text_filter(){ | |
return 'books'; | |
} | |
add_filter( 'sell_media_print_text', 'sell_media_print_text_filter' ); |
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 | |
/** | |
* Remove the default Sell Media action. | |
* We'll replace it with our own custom action hook below. | |
*/ | |
remove_action( 'sell_media_before_content', 'sell_media_append_media' ); | |
/** | |
* Add our new action hook to alter the media (featured image, etc) before the_content in Sell Media |
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 | |
/** | |
* Add more classes to main images appearing on single entries in Sell Media. | |
* Change 'lightbox' below to whatever classes you want to add. | |
*/ | |
function sell_media_filter_single_image_class( $classes ) { | |
if ( is_singular( 'sell_media_item' ) ) { | |
$classes[] = 'lightbox'; |
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 | |
/** | |
* Plugin Name: Theme.Works Theme Mods | |
* Plugin URI: http://theme.works | |
* Description: Adds your custom filters to an Theme.Works theme. | |
* Version: 1.0.0 | |
* Author: Thad Allender | |
* Author URI: http://theme.works | |
* Author Email: [email protected] |
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
[tw_grid cols="4"]Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur.[/tw_grid][tw_grid cols="4"]Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur.[/tw_grid][tw_grid cols="4"]Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur.[/tw_grid][tw_grid cols="4"]Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur.[/tw_grid] |
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
[tw_grid cols="3"]Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur.[/tw_grid][tw_grid cols="3"]Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur.[/tw_grid][tw_grid cols="3"]Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur.[/tw_grid] |
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
[tw_grid cols="2"]Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur.[/tw_grid][tw_grid cols="2"]Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur.[/tw_grid] |