Davina Quarterman
asked 7 years ago

Hello

Using share via email or print doesnt seem to work, please advise.

Email – email opens with subject line of article but no link to the article or other content. Also, a blank/empty window  opens.

Print – print options open up but a blank piece of paper prints. Also, a blank/empty window  opens.

 

Thanks

2 Answers
DominicStaff
answered 7 years ago

To resolve problems of ‘Email this article’ and ‘Print this article’

-Firstly, download the file print.css (download link: http://www.mediafire.com/download/ts8dobfxtgc4mvy/print.css)

– Paste this file into CSS folder: \wp-content\themes\dw-focus\assets\css
– Add the following code in the file funcsions.php / line 189

 
//print
wp_enqueue_style( 'print-style', get_template_directory_uri() . '/assets/css/print.css', array(), false, $media = 'print' );

see the screenshot : http://imgur.com/7C3Vb1o

Finally, open the functions.php file.
– replace the current/old code from line 428 – 431 with the following code lines
See the screenshot: http://imgur.com/9bVUMcn

 
<li class="email"><i class="icon-envelope-alt"></i><a href="mailto:?Subject=<?php echo $title; ?>&body=<?php echo $url; ?>"><?php _e('Email this article', 'dw_focus' ); ?></a></li>
<?php if( ! is_handheld() ) { ?>

<li class=”print”><i class=”icon-print”></i><a href=”#” onclick=”window.print();”><?php _e(‘Print this article’,’dw_focus’); ?></a></li><?php } ?>

Hope this helps!
Regards,
Dominic

Sunaina K
replied 7 years ago

Hi Dominic, the above has not helped. Are you sure the above actually resolves my issues? Please review and if possible, provide further guidance, this would be appreciated.

Sunaina K
replied 7 years ago

Your changes actually broke our site – the site disappeared. Since the suggested changes were made we have been suffering from ‘white screen of death’.

DominicStaff
answered 7 years ago

To resolve all this problem, you can download the update version 1.0.3 in the attachment, I solved this problem in the version 1.0.3

If still is not yet resolve this problem you can send me username & password your site for further checking
Regards,
Dominic

Powered by DW Question & Answer Pro