Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- /* -------------------------------------------------------------------------------------
- Add "Get a Quote" to gallery images
- ----------------------------------------------------------------------------------- */
- function filter_gallery_captions($image) {
- $image['caption'] .= '<a class="btn btn-default btn-gallery-quote" href="/building-quote/?item='.urlencode($image['src']).'&title='.urlencode($image['title']).'"><span class="hidden-xs">Get a Quote to Build This</span><span class="visible-xs">Quote Me This</span></a>';
- return $image;
- }
- add_filter( 'envira_albums_gallery_lightbox_image', 'filter_gallery_captions');
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement