Here’s how you can insert custom text, html, or anything into the “single slide view” in Lazyest Gallery (Lazyest Gallery Plugin by Macbrink).
Your stuff will be inserted below the image caption, but above the slide navigation.
Here’s the action and function. Replace line 5 with whatever you want to insert.
/** * Insert something on a single slide page in Lazyest Gallery */ function isa_frontend_slide() { echo 'Click on the image to see it full-size.<br /><br />'; } add_action('lazyest_frontend_slide', 'isa_frontend_slide' );
Jeff
October 21st, 2013 at 10:22 pm
Hi Isabel. I am not a programmer but I want to incorporate your code with addthis into my individual photos/slides. Which file do I need to modify to insert addthis using your code above?
Lazyest is a great gallery plugin.
Thank you!
Isabel
October 22nd, 2013 at 10:48 am
Hi, here’s one example using “addthis.” You would drop the following code into your
functions.php
file. (But if you update your theme, your functions file will be overwritten So, making a child-theme with your custom functions is better.)If you prefer the “addthis” buttons to be centered instead of left-aligned, you must add this line of CSS to your
style.css
file:Yes, Lazyest Gallery is probably my favorite WP plugin. Hope this helps.
Jeff
October 29th, 2013 at 7:56 pm
Hi Isabel!
I can finally try to code this today! 🙂 setting up WAMP once again.
Thanks!!
Jeff
October 30th, 2013 at 3:59 am
Hi Isabel,
I got this error message:
( ! ) Fatal error: Call to undefined function add_action() in C:\wamp\www\sns2\wp-includes\functions.php on line 4222
Call Stack
# Time Memory Function Location
1 0.0007 247848 {main}( ) ..\index.php:0
2 0.0010 251368 require( ‘C:\wamp\www\sns2\wp-blog-header.php’ ) ..\index.php:17
3 0.0015 268072 require_once( ‘C:\wamp\www\sns2\wp-load.php’ ) ..\wp-blog-header.php:12
4 0.0020 279648 require_once( ‘C:\wamp\www\sns2\wp-config.php’ ) ..\wp-load.php:29
5 0.0035 373320 require_once( ‘C:\wamp\www\sns2\wp-settings.php’ ) ..\wp-config.php:90
6 0.0231 1381968 require( ‘C:\wamp\www\sns2\wp-includes\functions.php’ ) ..\wp-settings.php:65
and line 4222 points to:
add_action(‘lazyest_frontend_slide’, ‘isa_lazyest_frontend_slide’ );
Jeff
October 30th, 2013 at 4:10 am
Thank you God for Angels like you Isabel! It works! 😀
Isabel
October 30th, 2013 at 4:43 pm
Glad to hear it works.