• I have no idea what’s wrong, but my mailto link is not working. Here is the template code

    <a href="mailto:<?php echo get_field('email_address');?>" class="employee_email"><img src="<?php echo get_template_directory_uri()."/img/mail.png"?>"></img></a>

    The output is:

    <a href="mailto:test@test.dk" class="employee_email"><img src="http://maigaardwww.dk/wp-content/themes/twentytwelve/img/mail.png"></a>

    When I click that link nothing happens. Where do I start troubleshooting?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you link us the issue?

    Thread Starter viktor89

    (@viktor89)

    http://maigaardwww.dk

    [ user ID and password redacted, these forums do not offer that level of support ]

    It’s on the bottom of the page (the letter icon). It’s a dev-environment, so it’s messy

    Thread Starter viktor89

    (@viktor89)

    okay, I can’t link you the issue. Any ideas where to start?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Switch to another browser & machine to check whether the issue is specific to your machine.

    Thread Starter viktor89

    (@viktor89)

    I figured out the issue (can’t believe this took me 3 hours, lol). An image had some overlay, so the link wasn’t clickable, becuase a cropped part of an image was covering the actual button. sigh…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘href mailto not working’ is closed to new replies.