Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #198546

    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.

    #198774

    Hi!

    By Image Description you mean the Alt text? how would you like to display it?

    Best regards,
    Josue

    #198891

    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.

    #199137

    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

    #199399

    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”?

    #199519

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Image Description within Avia Layout Builder’ is closed to new replies.