• Resolved Hum Gurung

    (@etchbee)


    Hi,

    I would like to add home page or other page link within following line (message). Would appreciate your help.

    <?php echo esc_html__('Sorry this business is not available. Please search for other similar businesses.', 'houzez'); ?>

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @etchbee

    The esc_html__() function will escape (and therefore break) all HTML content in the string soy need to change the escaping.

    If you have absolute trust in your edit and site you can remove the escaping and then edit the string as follows:

    <?php echo __('Sorry this business is not available. Please search for other similar businesses.', 'houzez'); ?>

    If you prefer to maintain some level of security and have some escaping maybe try something like this:

    <?php echo wp_kses_post( __('Sorry this business is not available. Please search for other similar businesses.', 'houzez') ); ?>

    Thread Starter Hum Gurung

    (@etchbee)

    Thank you @mattyrob

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Anchor Link within php file’ is closed to new replies.