• Resolved darren@haloassociates.co.uk

    (@darrenhaloassociatescouk)


    Hello,

    We have an issue where we cant get “Click a link with specific class name” to work.

    I’ve read your docs and have given my links the class of ‘gamipress-link’.

    All links are triggering when we use the ID instead, but none of them trigger when using a specific class.
    The link im using is:

    
    <a id="whitePaper_dl" class="btn gamipress-link whitePaper_dl" target="_blank" href="https://halo-dev.evolvemembers.com/wp-content/uploads/2019/02/sample-1.pdf">Download</a>
    

    I tried using different class and ID but that didnt fix it.

    Also tried returning to storefront theme and that didnt fix.

    Additionally, although all other links work with the ID. on this download link, the event triggers 3 times when I click download. I’ve re-created the event and checked it several times and cant see why it would trigger 3 times for a download link.

    Can anyone help?
    thanks!
    Darren

    running:
    WordPress 5.0.4
    GamiPress Version 1.6.9
    GamiPress – AffiliateWP integration Version 1.0.8 |
    Connect GamiPress with Contact Form 7
    GamiPress – Contact Form 7 integration Version 1.0.8 |
    GamiPress – Link Version 1.0.6
    GamiPress – Multimedia Content Version 1.0.1
    GamiPress – Vimeo integration Version 1.0.0
    GamiPress – WooCommerce integration Version 1.1.8

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Ruben Garcia

    (@rubengc)

    Hi @darrenhaloassociatescouk

    For performance, GamiPress – Link just enqueue scripts on pages where [gamipress_link] shortcode is placed

    If you setup custom elements without use [gamipress_link] you will need to enqueue GamiPress – Link scripts by adding the following code at your theme functions.php file:

    
    add_action( 'wp_enqueue_scripts', 'gamipress_link_enqueue_scripts', 100 );
    

    Hope it helps

    best regards

Viewing 1 replies (of 1 total)
  • The topic ‘Click a link with specific class name not working’ is closed to new replies.