WordPress.org

Ready to get started?Download WordPress

Forums

Print Friendly and PDF Button
Add Class for span (2 posts)

  1. jedix84
    Member
    Posted 3 years ago #

    Hello,

    I wantet to float the Print-Button, so I added a class (wrap-pf) to the surrounding span-Element.

    This was neccessary at two positions in the code:
    $button = '<script src="http://cdn.printfriendly.com/printfriendly.js" type="text/javascript"></script><span class="wrap-pf" onclick="window.print(); return false;" style="'.$style.' text-decoration: none; outline: none; color: '.get_option('pf_text_color').'; cursor:pointer;">'.pf_button().'</span>';

    and

    $button_link = '<span style="'.$style.'" class="wrap-pf"><a href="'.$plink_url.$separator.'" rel="nofollow" style="text-decoration: none; outline: none; color: '.get_option('pf_text_color').';">'.pf_button().'</a></span>';

    in pf.php.

    Maybe you could add something like this with your next update to give people the opportunity to position the button the way they want to.

    Regards

    Jens

  2. printfriendly
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Jens,

    Floating the button is an option in the Plugin Settings. Did you have any trouble with that?

    Thanks,

    Taylor

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic