adding custom HTML to header
-
Hi Lewis,
I’ve gathered from a few other support threads that to add custom HTML to the header one would need to modify the following lines of wp-post-to-pdf-enhanced.php:
$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 );
}I was wondering however if you could show an example of what custom html would look like in the above lines. So far my uninformed attempts at doing so have resulted in fatal errors. Thanks so much in advance–that would be really helpful!
The topic ‘adding custom HTML to header’ is closed to new replies.