Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lewis Rosenthal

    (@lewisr)

    Well, I’ve not had that request so far. I’ll add it to my list. ??

    Meanwhile, you can hack it. In wp-post-to-pdf-enhanced.php, go to line 307 (if using PHP earlier than 5.4), and change:

    $pdf->SetHeaderData( $logo, $logowidth, html_entity_decode( get_bloginfo( 'name' ), ENT_COMPAT | ENT_QUOTES ), html_entity_decode( get_bloginfo( 'description' ) . "\n" . home_url(), ENT_COMPAT | ENT_QUOTES ), $header_text_color, $header_line_color );

    to:

    $pdf->SetHeaderData( $logo, $logowidth, , , , $header_text_color, $header_line_color );

    Or, if using PHP 5.4 or above, make a similar edit for line 309.

    If you want to get fancy, you may comment lines 306, 308, 309, and 310, and just edit line 307 (no text means no need for html_entity_decode(), so no need to differentiate between PHP capabilities).

    Good luck, and let me know how that works. I’ll consider adding a logo-only option in the admin area.

    Cheers

    Lewis

    Thread Starter kurtko

    (@kurtko)

    Thanks a lot!!! it works perfectly

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show only logo image as header’ is closed to new replies.