When I create a new post and insert a brand new media file into the page, I then have to click the pencil icon to edit the image and add my link attributes (class= size-full and rel= wp_lightbox_fancybox_image)
My question is: Can I modify my functions.php to set those as default for all images so that I don’t have to manually add the attributes? I am using the WP Lightbox Ultimate plugin.
I would appreciate your guidance on this. It would certainly help to streamline my post creation.
Thanks
Hi Chris
I guess one option would to use Jetpack Carousel. It’s a lightbox that only works for galleries but you can insert a image gallery. I just mention this because Jetpack Carousel doesn’t require and attributes, it just works. You can set the image to full size as you insert it.
Here is a post discussing what you’re after:
http://wordpress.stackexchange.com/questions/14802/apply-a-tag-to-every-images-link-rel
The function they are talking about would be inserted into the functions.php of a child theme. Perhaps that’ll help.