Created
April 1, 2015 15:12
-
-
Save n7studios/6d69db541b467205cb98 to your computer and use it in GitHub Desktop.
Envira Gallery - Remove Prev / Next Text
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 | |
/** | |
* Plugin Name: Envira Gallery - Remove Prev / Next Text | |
* Plugin URI: http://enviragallery.com | |
* Version: 1.0 | |
* Author: Tim Carr | |
* Author URI: http://www.n7studios.co.uk | |
* Description: Removes prev / next text on lightbox arrow titles | |
*/ | |
function envira_gallery_lite_remove_prev_next_text( $data ) { | |
?> | |
tpl: { | |
next : '<a class="envirabox-nav envirabox-next" href="javascript:;"><span></span></a>', | |
prev : '<a class="envirabox-nav envirabox-prev" href="javascript:;"><span></span></a>' | |
}, | |
<?php | |
} | |
add_action( 'envira_gallery_api_config_callback', 'envira_gallery_lite_remove_prev_next_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment