Disable bold in a part of a sentence
Posted: Fri Dec 16, 2022 6:22 am
Hi,
?>
<p><h2><?php esc_attr_e( 'Print Invoice:', 'woo-invoice' ); ?> <a href="<?php echo esc_url_raw( $url ); ?>" target="_blank"><?php esc_attr_e( 'Open print view in browser', 'woo-invoice' ); ?></a></p>
<?php endif;
The output of the code above is :
Print Invoice: Open print view in browser
This whole sentence is bold because "Print Invoice" is in h2.
I want the "Open print view in browser" link not to be in BOLD.
Please, how do I fix the code to do this?
Thanks in advance!
?>
<p><h2><?php esc_attr_e( 'Print Invoice:', 'woo-invoice' ); ?> <a href="<?php echo esc_url_raw( $url ); ?>" target="_blank"><?php esc_attr_e( 'Open print view in browser', 'woo-invoice' ); ?></a></p>
<?php endif;
The output of the code above is :
Print Invoice: Open print view in browser
This whole sentence is bold because "Print Invoice" is in h2.
I want the "Open print view in browser" link not to be in BOLD.
Please, how do I fix the code to do this?
Thanks in advance!