Envira Gallery Documentation
Documentation, Reference Materials and Tutorials for Envira Gallery
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.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.