• Hi,

    I have a simple post that I would like to add an apply button to at the bottom. When you click on the button (could be en email link) I would like it to generate a new email to a specific email address, and include the page title of the post it is being sent from. That’s it. Is there a way of doing this without massive coding?

    Any input would be appreciated

    Thank You,

    Joe

Viewing 5 replies - 1 through 5 (of 5 total)
  • Put something like this in the code of your post (in the loop or in the template):

    <a href="mailto:[email protected]?subject=<?php echo get_permalink(); ?>">APPLY HERE</a>

    Thread Starter whresumes

    (@whresumes)

    Senff,

    Thanks for the code. It shows up as code on the post, not a link. Is the code correct? I am a newbie and am learning code so not a master yet, lol

    Don’t put the code in the post content.

    You’ll have to put it in the template for your posts (probably single.php), but if you’re gonna meddle with code, I advise to use a child theme for your site: https://codex.www.ads-software.com/Child_Themes

    If you’re not sure where/what/how, you might want to ask an experienced developer to do this for you.

    Thread Starter whresumes

    (@whresumes)

    That worked PERFECTLY!!! THANK YOU SO MUCH, YOU ARE A GENIUS!

    JOE

    Thread Starter whresumes

    (@whresumes)

    Oh No, it doesnt work with web-based email. It only launched email clients, bummer.

    Joe

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Creating an email link that acts as an apply button’ is closed to new replies.