Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1209332

    Hi, I am using a Horizontal Gallery for a portfolio of images. As each image rotates through the gallery, I need to display related meta content (Title, Alt text, Caption, etc.) elsewhere on the page. I am currently using a JavaScript event handler to manipulate the DOM dynamically when the image is changed.

    From JavaScript it is easy to get the Title and Alt text attributes for the active gallery item. I can also reference its WordPress Caption which is added to the page in the Lightbox ‘a’ tag that is created when the gallery is set up to include a Lightbox link.

    However, I also need the WordPress image Description. (In WordPress the media item Description is stored as the post content for the media item’s attachment page.) My question is: is this metadata available somewhere in Enfold through JavaScript on the front end, maybe as some kind of a public property or function? If so, how could I access it for the active gallery item in the DOM?

    If not, where would I need to look in Enfold if I wanted to try to override PHP to inject this information into the page when it is built?

    Thank you in advance. I hope my question is clear.

    Gary

    #1209689

    Hey Gary,

    You will need to examine the files in this folder /enfold/config-templatebuilder/avia-shortcodes/gallery_horizontal/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1209690

    Great, thank you Victoria. I can probably take things from here, so you can close this if you like.

    Gary

    #1209722

    Hi,

    If you need additional help please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Horizontal Gallery – Get WordPress Image Metadata’ is closed to new replies.