Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    We have received your request and it is now being processed. We will get back to you on this forum as soon as we can.

    Regards,
    BestWebSoft Support Team

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Unfortunately, this code doesn`t work. It displays two inactive images without any functionality. If you need help with our plugin, please create a ticket at bestwebsoft.zendesk.com.

    Regards,
    BestWebSoft Support Team

    Thread Starter Luis Fatorbinario

    (@fatorbinario)

    Darn.. Now I noticed the board tried to execute the code messing up with the function, sorry. Here is the correct one. Set pict size as you like.

    //Shortcode for BWS PDF & Print
    function SetPrintButtonsShortcode() {
    	$printer_icon = '<a href="' . get_permalink() . '?&print=print"><img src="/wp-content/plugins/pdf-print/images/print.gif" alt="Print" width="18" height="18"></a>';
    	$pdf_icon = '<a href="' . get_permalink() . '?&print=pdf"><img src="/wp-content/plugins/pdf-print/images/pdf.png" alt="PDF" width="18" height="18"></a>';
    
    	return '<span style="word-spacing:14px;">' . $pdf_icon . " " . $printer_icon . '</span>';
    }
    add_shortcode('setprintbuttons', 'SetPrintButtonsShortcode');
    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    This code is not working just as the previous one. It also displays two inactive images without any functionality. We do not plan to add the functionality of adding buttons using a shortcode. In any case, thank you for your idea.

    Regards,
    BestWebSoft Support Team

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Added a shortcode’ is closed to new replies.