Envira Gallery Documentation
Documentation, Reference Materials and Tutorials for Envira Gallery
Documentation, Reference Materials and Tutorials for Envira Gallery
Do you have Breadcrumbs enabled inside of Envira Gallery, and would you like to change the URL of the homepage? This tutorial will walk you through how to change the default homepage URL to a custom URL for Envira Breadcrumbs.
To change the default Homepage URL to a different URL, just add the following code to a new file at wp-content/plugins/envira-gallery-change-breadcrumb-home-url.php
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <?php /** * Plugin Name: Envira Gallery - Change Breadcrumbs Homepage URL * Plugin URI: https://enviragallery.com * Version: 1.0 * Author: Envira Gallery Team * Author URI: https://enviragallery.com * Description: This will allow you to change the default Homepage URL to a URL of your choice */ add_filter( 'envira_breadcrumbs_data' , 'test_envira_breadcrumbs_data' , 10, 5 ); function test_envira_breadcrumbs_data( $breadcrumbs , $album_id , $gallery_id , $separator , $album_post_id ) { $breadcrumbs [0][ 'title' ] = 'Envira Gallery Homepage' ; return $breadcrumbs ; } |
If you’re unsure how to create a plugin file, follow these steps below:
envira-gallery-change-breadcrumb-home-url.php
.Your next step is to activate the plugin you just uploaded. Simply navigate to the Plugins from within your WordPress dashboard and activate the Envira Gallery – Change Breadcrumbs Homepage URL plugin.
After activating, you will see the homepage URL changed to the URL that was added inside of the plugin.
That’s it! Would you like to extend Envira further? Check out our tutorial on how to How to change the Image Counter Image text inside of the Envira Gallery Image Counter.
A: At this time, the text and URL entered in this plugin will be applied to all galleries that have Breadcrumbs enabled.