Skip to content

Instantly share code, notes, and snippets.

@hmowais
Last active November 27, 2019 05:56
Show Gist options
  • Save hmowais/f9e81897b40ead2017bb58089e7cdbcc to your computer and use it in GitHub Desktop.
Save hmowais/f9e81897b40ead2017bb58089e7cdbcc to your computer and use it in GitHub Desktop.
add header elements in custom place
<?php
//go to avada-functions.php for more details
function my_custom_head_function_for_avada() {
//echo "<h3>+353 98 66011</h3>";
$phone_number = do_shortcode( Avada()->settings->get( 'header_number' ) );
echo "<h3>" . $phone_number . "</h3>";
}
add_filter( 'avada_logo_append', 'my_custom_head_function_for_avada' );
// get search form
get_search_form( false );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment