WordPress.org

Ready to get started?Download WordPress

Forums

POST2PDF Converter
[resolved] Custom PDF Icon and CSS and PHP code (4 posts)

  1. Achim Meurer
    Member
    Posted 2 years ago #

    Hi,

    first of all - great plugin!

    My problem is, that I need a custom icon and css for that icon/download button.

    Is there a trick or something else, that I can use my own button and place it in my theme in a custom place?

    Thanx and greets
    Achim

    http://wordpress.org/extend/plugins/post2pdf-converter/

  2. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  4. Achim Meurer
    Member
    Posted 2 years ago #

    Hi redcocker,

    that's great!!!!! Thanx a lot!!

    Greetings from Austria

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic