Manuel Demetz
asked 10 years ago

Hi there, a email window is opening but with a cryptic subject line an no link in there… See screenshot

1 Answers
Kido D
answered 10 years ago

Hi Manuel,
To add the article link to the mail body, you can modify the email sharing link on the content-single.php file  in themes/dw-argo folder. So open that file and find the code below:

<li><a href="mailto:<?php echo get_option( 'admin_email' ); ?>?Subject=<?php echo urlencode( get_the_title() ); ?>"><i class="icon-envelope-alt"></i></a></li>

.. change it into this:

<li><a href="mailto:<?php echo get_option( 'admin_email' ); ?>?Subject=<?php echo get_the_title(); ?>&body=Hi,I found this article and thought you might like it: <?php echo get_permalink(); ?>"><i class="icon-envelope-alt"></i></a></li>

About the special characters in email subject, you’ll need to set the default encoding of your email client to UTF-8 unicode.
Hope this helps.

Powered by DW Question & Answer Pro