• Resolved fastrix

    (@fastrix)


    I’ve being trying to call the function in a part of my template as an HTML < a > Tag but i can’t get it to work. I’m trying something like this:

    <span class="pdf-icon"><a href='.' onClick='wp_objects_pdf(); title='PDF page'><i class="fa fa-file-pdf-o"></i> PDF</a></span>

    I hope that someone can point me in the right direction to do it.

    Awesome plugin by the way!!!! I tried it with the short code and works beautifully!!!!

    https://ww.wp.xz.cn/plugins/wp-pdf-generator/

Viewing 1 replies (of 1 total)
  • Thread Starter fastrix

    (@fastrix)

    Found this solution:

    <span class="pdf-icon"><a onclick="wppg_loading_pdf()" href="http://FreeHTMLtoPDF.com/?convert"><i class="fa fa-file-pdf-o"></i> PDF</a></span>

Viewing 1 replies (of 1 total)

The topic ‘wp_objects_pdf(); Function as href’ is closed to new replies.