Forum Replies Created
-
AuthorPosts
-
March 22, 2012 at 10:48 am in reply to: Lightbox Ultimate – User anchor text/ image with caption shortcode #43221imeisterMember
Sorry, but that’s exactly the solution I just described and had already come up with. The problem is that I can’t *not* switch between editors. I’m comfortable with the HTML editor, but my client is not, and there are dozens of images with captions I was hoping to apply this to.
How hard would it be to create a single shortcode that did both?
March 21, 2012 at 11:36 pm in reply to: Lightbox Ultimate – User anchor text/ image with caption shortcode #43219imeisterMemberThis is long, so forgive me:
Normally, Caption would surround an image anchor. Instead, I insert both a caption and a prettyPhoto, remove the anchor from the capture shortcode and substitute the prettyPhoto shortcode. It works great — as long as you never open that post in the Visual editor. If you do, the caption portion is stripped and you can’t undo it. I did have to slightly modify the CSS to get the description not to overlap the photo, but other than that it’s perfect.
The basic format is [caption ...][wp_lightbox_prettyPhoto_image …][/caption]
[caption id="attachment_388" align="alignright" width="300" caption="University of Pennsylvania student (Clara Ng), conducted surveys to explore the causes of childhood diabetes and malnutrition in the village of Fouh, Mali."][wp_lightbox_prettyPhoto_image link=”http://50.116.82.164/~palms/wp-content/uploads/2009/12/Clara2.jpg” description=”University of Pennsylvania student (Clara Ng), conducted surveys to explore the causes of childhood diabetes and malnutrition in the village of Fouh, Mali.” source=”http://50.116.82.164/~palms/wp-content/uploads/2009/12/Clara2-300×225.jpg”%5D%5B/caption%5D
-
AuthorPosts