Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi tzso80,

    Don’t know if you find the following code in wp-post-to-pdf-enhanced.php and edit out the description that should remove it.

    find:

    if ( version_compare( phpversion(), '5.4.0', '<' ) ) {
    				$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 );
    			}else {
    				$pdf->SetHeaderData( $logo, $logowidth, html_entity_decode( get_bloginfo( 'name' ), ENT_COMPAT | ENT_HTML401 | ENT_QUOTES ), html_entity_decode( get_bloginfo( 'description' ) . "\n" . home_url() ), ENT_COMPAT | ENT_HTML401 | ENT_QUOTES );
    			}

    and replace with:

    if ( version_compare( phpversion(), '5.4.0', '<' ) ) {
    				$pdf->SetHeaderData( $logo, $logowidth, html_entity_decode( get_bloginfo( 'name' ), ENT_COMPAT | ENT_QUOTES ), ENT_COMPAT | ENT_QUOTES );
    			}else {
    				$pdf->SetHeaderData( $logo, $logowidth, html_entity_decode( get_bloginfo( 'name' ), ENT_COMPAT | ENT_HTML401 | ENT_QUOTES ), ENT_COMPAT | ENT_HTML401 | ENT_QUOTES );
    			}

    hope it helps

    if you want to remove the header completely you can add this code beneath that I listed previously:

    $pdf->setPrintHeader(false);

    pps. you will need to reset the pdf cache to see results 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove webpage link from header’ is closed to new replies.