Audio in galleries?

Discussion in 'Terschelling' started by rockstar, Jan 24, 2017.

  1. rockstar

    rockstar New Member

    Joined:
    Jan 17, 2017
    Messages:
    5
    Likes Received:
    0
    Hi there,

    the audio-shortcode does not work in gallery templates. Is there any way to add audio to galleries? Would be great for atmospherical background-sounds (but needs start/stop/loop/no autoplay-options...), allowing some kind of storytelling.

    Thanks!
     
  2. maimairel

    maimairel Administrator
    Staff Member

    Joined:
    Apr 16, 2014
    Messages:
    1,584
    Likes Received:
    58
    Hi,

    I will check this out. Actually [audio] should work inside galleries. But will check this and update it this week.

    Thanks!
     
  3. rockstar

    rockstar New Member

    Joined:
    Jan 17, 2017
    Messages:
    5
    Likes Received:
    0
    Hi,

    yes, it works - have to work with direct URLs. First I tried to create the "audio"-tag with page builder on a blank page, selected the audio in media library and copy/paste the generated audio-tag into gallery but this does not work because it uses item-numbers. All I got this way was a not working "item-number-text-link". Exchanging the item number with direkt-link in src-attribute did the job.

    Thank you.
     
  4. maimairel

    maimairel Administrator
    Staff Member

    Joined:
    Apr 16, 2014
    Messages:
    1,584
    Likes Received:
    58
    Actually that's how the [audio] shortcode works. It only accepts the direct URL. Is the page builder putting the attachment ID into the shortcode? That needs to be fixed then.

    Thanks!
     

Share This Page