Documentation, Reference Materials and Tutorials for Envira Gallery
Do you have a video gallery with the Envira Gallery Image Counter enabled? Would you like to be able to change the Image text to Video instead? This tutorial will walk you through how to change this default text from ‘Images’ to ‘Videos’ for your video galleries.
This article contains PHP, CSS, and/or JavaScript to customize our plugin. We offer this code as a courtesy but don’t provide support for additional code customizations or 3rd party development.
/* Change the Image Counter text * * @link https://enviragallery.com/docs/how-to-change-the-image-counter-text/ */ add_filter( \'envirabox_theme_image_counter\', \'test_envirabox_theme_image_counter\', 10, 3 ); function test_envirabox_theme_image_counter( $html, $theme, $data ) { //Replace Video with your own label for the counter return str_replace(\'Image\', \'Video\', $html); }
That’s it! Would you like to extend Envira further? Check out our tutorial on how to Remove Fragment Cache from Envira Gallery.
A: At this time, the text entered in this plugin will be applied to all galleries that have the Image Counter enabled.
Envira Gallery: Create, Showcase, and Sell Your Work – Trusted by 150k+ Sites.
Enter the URL of your WordPress website to install
Unlock even more powerful features designed to make your galleries even more beaituful.
Video Galleries
eCommerce
Social media Sharing
Adobe Lightroom
And much more!
Copyright © [#this year :%Y] Envira Gallery, LLC. Envira Gallery is a trademark of Envira Gallery, LLC.