Add content with echo in functions

// -----Add custom message
add_action( 'theme or plugin hook', 'atk_custom_message' );
 
function atk_custom_message() {
  echo '<p class="no-back-button"><em>Your custom message.</em></p>';
}