Support » Plugin: Waymark » Link in Marker Details not working

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe Hawes

    (@morehawes)

    Hi @simonbaumann,

    I’m glad you like the plugin 🙂

    Thanks for reaching out. The link you provided tells the browser to navigate to an element with an id of goldiwheel (i.e. <div id="goldiwheel"></div>). However this element does not exist on the page. With this corrected it should work.

    I hope this helps.

    Cheers,

    Joe

    Thread Starter simonbaumann

    (@simonbaumann)

    Hi Joe

    Hmmm.. strange. The ID is an Anchor link from the Row “Goldiwheel Trail”.
    If you put the url https://bikepark-thunersee.ch/2021/bikeparks_trails/#goldiwheel
    into the browser it works fine.

    Do you think it could be fixed somehow? As it would be awesome to link the Marker to the specific Trail in the description section.

    Cheers,
    Simon

    Plugin Author Joe Hawes

    (@morehawes)

    Hi Simon,

    There is a script on your site that “fakes” this behavior to work, but it does not add the correct id attribute to the element.

    There are a few ways you could tackle this. The following jQuery will fix this by adding the ID attribute:

    <script>
    jQuery(document).ready(function() {
      jQuery('.vc_row[data-q_id]').each(function() {
        jQuery(this).attr('id', jQuery(this).attr('data-q_id').replace('#', ''));
      });
    });
    </script>

    Note that this navigation will not use the smooth scroll animation, it will simply “jump” to that section.

    I hope this helps.

    Joe

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.