Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Links in image captions


 
Prev Previous Post   Next Post Next
  #1  
Old Apr 30, 2009, 09:38 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Links in image captions

I wanted to put a link to another post inside an image caption. When I did it, the caption was "broken," and the int link code showed up weirdly atop the photo! Ugly mess!

I found that if I created the image with caption in Visual mode as usual, but then went into HTML mode, I could enter an external link successfully.

The reason it was breaking before is that the caption treats everything inside it as a link:
Code:
[caption id="attachment_3029" align="alignleft" width="200" caption="Anant Nambiar"]<img class="size-full wp-image-3029" title="anants" src="http://www.larchmontgazette.com/wp27/wp-content/uploads/2009/04/anants.jpg" alt="anants" width="200" height="221" />[/caption]
What I did was to put my link code just before the closed caption bit:

Code:
[caption id="attachment_3029" align="alignleft" width="200" caption="Anant Nambiar"]<img class="size-full wp-image-3029" title="anants" src="http://www.larchmontgazette.com/wp27/wp-content/uploads/2009/04/anants.jpg" alt="anants" width="200" height="221" /><a href="http://www.cnn.com">[/caption]
However, if I want to link to an internal post, this method doesn't work. Any ideas, anyone?

I found a thread at wordpress.org involving a change to the footer.php code, but that seems like overkill.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] change header image to link to external page when clicked bilwebore Header configuration & styling 9 Sep 23, 2009 04:06 PM
Custom links IN header image mkny13 Header configuration & styling 7 Jul 21, 2009 11:13 AM
Changing the links default title text to an image jpg of text veenublue Sidebars & Widgets 2 Jun 5, 2009 06:05 AM
How to edit links widget or how to have links in sidebar of page? Joelb53 Sidebars & Widgets 1 May 6, 2009 03:52 AM
Captions won't show under image vka2b Atahualpa 3 Wordpress theme 0 Mar 24, 2009 08:01 PM


All times are GMT -6. The time now is 06:36 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.