Tagged: enfold, image description
Hi,
is there a possibility to show the image description if I insert a image with Media Elements > Image?
—–
Hi,
gibt es eine Möglichkeit die Bildbeschreibung anzeigen zu lassen, wenn man ein Bild über Media Elemente > Bild einfügt?
Wenn man den Umweg über text block > Datei hinzufügen geht ist es möglich, aber nicht die eleganteste Methode.
Hi!
By Image Description you mean the Alt text? how would you like to display it?
Best regards,
Josue
Hi, here is a link:
http://disg-tipps.icosmedia-projekte.de/testseite/
Both pictures should have the same style.The first one is a image using media elements > Image, the second one is a text block.
I need this, to add e.g. copyright.
Hi,
Open js/avia.js and add this at the very end of the file:
jQuery(".avia-image-container").each(function(){
jQuery(this).append("<div class='wp-caption-text'>"+jQuery(this).find("img").attr("title")+"</div>")
});
That will add a caption based on the contents of the title attribute of the image.
Regards,
Josue
Hi,
thanks, this works.
Are there other attributes I can display, the description or label?
(I don’t know if these are the right names for it, I’m using WordPress in German, there it is “Beschriftung” and “Beschreibung”)
Is it just possible to have “title” and “alt”?
Hey!
Title and alt, if you want use alt, change the code to this:
jQuery(".avia-image-container").each(function(){
jQuery(this).append("<div class='wp-caption-text'>"+jQuery(this).find("img").attr("alt")+"</div>")
});
Cheers!
Josue