Skip to content

Snippet: Add Overlay To Custom Post Type Entry

/**
 * Example function for altering your entry overlay style for custom post types
 * outside the scope of the theme.
 *
 * Available options: see Total/framework/overlays.php wpex_overlay_styles_array()
 *
 * @since 3.2.0
 * @return string
 */
function myprefix_edd_entry_overlay() {
	return 'title-push-up'; // Alter overlay for Easy Digital Downloads entry
}
add_filter( 'wpex_download_entry_overlay_style', 'myprefix_edd_entry_overlay' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top