Adding text to top header

Hi,
Iam using the GreatMag theme and I want to upload some text to the top header, in which file I can add this text and where can I find this file?

Thanks in advance!

Hello there,

You could use this snippet and add it to a child theme’s functions.

function greatmag_child_top_bar() {

	$hide_search_icon = get_theme_mod( 'hide_search_icon', 0 );

	?>
		<?php if( $hide_search_icon == 0 ) { ?>
		<div class="top-search-form row">
			<?php get_search_form(); ?>
		</div>
		<?php } ?>
		<div class="top-header row">
			<div class="container">
				<div class="row">
					<div class="col-sm-8">
						<?php greatmag_latest_news(); ?>
            <div class="extra-top-text">
              <p>Your extra text goes here.</p>
            </div>
					</div>
					<div class="col-sm-4 auth-social">
						<?php greatmag_social_login(); ?>
					</div>
				</div>
			</div>
		</div>
	<?php
}
function greatmag_child_remove_action() {
  remove_action( 'greatmag_before_header', 'greatmag_top_bar');
}
add_action('init', 'greatmag_child_remove_action');
add_action( 'greatmag_before_header', 'greatmag_child_top_bar');

If you don’t run any child theme, you can use Code Snippets plugin.

Regards,
Kharis