Captions not shown in script generated html
-
I have the following problem:
I inserted an image into a page using the visual editor
I gave it a caption, an alt-Text and I set Link to: image url
Now the image is shown on the page with the caption and if I open it, it is shown in an overlay (I noticed that the fact that it opens in an overlay is somehow depended on the presence of a caption, I don’t know why.)
Now, I create the html-code for my wordpress pages with a script, and I used the following code for images I found in the source code of the page generated by wordpress after I did the above steps:<div style="width: 1345px" class="wp-caption alignnone"><a href="image file here"><img src="image file here" alt="Alt Text" width="1335" height="979" /></a><p class="wp-caption-text">Caption Text</p></div>
If I paste my html code into the WordPress HTML Editor and save the page, I get the image with the caption, but it does not open in an overlay, but when I click on it, the browser just loads the image file itself.
If I then go to the wordpress html editor, the code above is there alright. However, if I switch to the visual editor and click on the edit button on the image, the caption field is empty.Does anyone of you know what’s going on here? Why is the image not opened as an overlay? And Why does the wordpress image editor not show the caption?
Any suggestions welcome!
WordPress 3.9.1 with Responsive Theme 1.9.6.0 and Foobox Free Version
EDIT: if you want to take a look at the page itself, it is this: https://ride.i-d-e.de/issues/issue-1/nietzschesource/
- The topic ‘Captions not shown in script generated html’ is closed to new replies.