• xavsio4

    (@xavsio4)


    The shadowbox won’t work with a page with a map and areas pointing to a youtube file. The shadowbox rel attribute is generated but not working.

    <area alt="Audio Acoustique" rel="shadowbox[post-414];player=swf;width=640;height=385;" href="http://www.youtube.com/v/EiqgL6GwZlw&autoplay=1&rel=0" coords="131,26,226,116" shape="rect">

    The plugin works ok with the rest of the site.

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Martz

    (@sivel)

    Shadowbox cannot operate automatically on area tags. the rel attribute has no effect on an area tag, only on an anchor tag.

    As a result, you must tell shadowbox what elements need to be monitored. There is an example of this upstream at https://github.com/mjijackson/shadowbox/blob/master/examples/image-map.html

    To use area tags with this plugin you will need to write a supplementary plugin to run the Shadowbox.setup() function, in addition in the plugins settings you will need to click “Show Advanced Configuration” and set “Skip Setup” to true. You will need to hook into wp_footer with a priority of something like 300, to make sure that Shadowbox.setup() runs after Shadowbox.init()

    There is more information about using Shadowbox.setup() upstream at http://www.shadowbox-js.com/usage.html#push

Viewing 1 replies (of 1 total)

The topic ‘Shadowbox js problem with map and areas’ is closed to new replies.