WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: POST2PDF Converter] Custom PDF Icon and CSS and PHP code

[Resolved] [Plugin: POST2PDF Converter] Custom PDF Icon and CSS and PHP code

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author redcocker
    Member

    @redcocker

    Hi, almstudio san

    Sorry, now, there is no easy way.
    Please edit /wp-content/plugins/post2pdf-converter/post2pdf-converter.php

    Line 549

    $link = '<div id="downloadpdf"><a href="'.$this->post2pdf_conv_plugin_url.'post2pdf-converter-pdf-maker.php?id='. $post->ID.'"'.$nofollow.'><img src="'.$this->post2pdf_conv_plugin_url.'img/pdf'.$this->post2pdf_conv_setting_opt['icon_size']. '.png" alt="download as a pdf file" /> '.$this->post2pdf_conv_setting_opt['link_text'].'</a></div>';

    If logo.png is put in wp-ontent/images/ directory, you can re-write it as follows.

    $link = '<div id="YOUR_ID"><a href="'.$this->post2pdf_conv_plugin_url.'post2pdf-converter-pdf-maker.php?id='.$post->ID. '"'.$nofollow.'><img src="'.WP_CONTENT_URL.'/images/logo.png" alt="download as a pdf file" /> '. $this->post2pdf_conv_setting_opt['link_text'].'</a></div>';

    If you need, you can also add id and class attributes.

    And put your own CSS in your theme css.

    Plugin Author redcocker
    Member

    @redcocker

    I released ver. 0.3.3.
    No longer need to edit /wp-content/plugins/post2pdf-converter/post2pdf-converter.php.

    To use your own icon, you can set a file name to “Custom icon file name” option.

    And please disable “CSS for download link” option before your own CSS is added.

    Hi redcocker,

    that’s great!!!!! Thanx a lot!!

    Greetings from Austria

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: POST2PDF Converter] Custom PDF Icon and CSS and PHP code’ is closed to new replies.