Chlegou's solution to "Add a Text Phone Number in Top Right Where Search Is Wordpress"

This will do it, <\/p>\n\n

you only need to add changes to "templates/header/header-search.php"<\/p>\n\n

i think this changes will do it:<\/p>\n

    $<\/span>contact<\/span> = '+555-555-555-555';     \n    echo '<div<\/span> style=<\/span>&quot;float:<\/span> right;height:<\/span> 100%;color:<\/span> #0066bf;font-size:<\/span> 18px;line-height:<\/span> 51px;padding:<\/span> 0px<\/span> 1px;&quot;<\/span>><\/span>'.$<\/span>contact<\/span>.'</div><\/span>';\n<\/pre><\/div>\n

here is full page code, copy and paste it there:<\/p>\n

<?php<\/span>\n// Exit if accessed directly.<\/span>\nif<\/span> (<\/span> !<\/span>defined<\/span>(<\/span> 'ABSPATH'<\/span> )<\/span> )<\/span> {<\/span> exit<\/span>;<\/span> }<\/span>\n\n$tz_disable_search_header<\/span> =<\/span> get_theme_mod<\/span>(<\/span> 'tz_disable_search_header'<\/span>,<\/span> 0<\/span> );<\/span> \n$tz_header_right_sidebar<\/span> =<\/span> get_theme_mod<\/span>(<\/span> 'tz_header_right_sidebar'<\/span>,<\/span> ''<\/span> );<\/span>\n$tz_disable_header_right_sidebar<\/span> =<\/span> get_theme_mod<\/span>(<\/span> 'tz_disable_header_right_sidebar'<\/span>,<\/span> 0<\/span> );<\/span> \n$tz_header_right_sidebar_class<\/span> =<\/span> (<\/span>$tz_disable_header_right_sidebar<\/span> ==<\/span> 1<\/span> &&<\/span> $tz_disable_search_header<\/span> ==<\/span> 1<\/span> )<\/span> ?<\/span> 'header-right-sidebar'<\/span> :<\/span> 'search-box'<\/span>;<\/span>\n\n\necho<\/span> '<div class=&quot;col-md-4 col-sm-4 col-xs-6 fl-right '<\/span>.<\/span>$tz_header_right_sidebar_class<\/span>.<\/span>'&quot;>'<\/span>;<\/span>\n    $contact<\/span> =<\/span> '+555-555-555-555'<\/span>;<\/span>\n    echo<\/span> '<div style=&quot;float: right;height: 100%;color: #0066bf;font-size: 18px;line-height: 51px;padding: 0px 1px;&quot;>'<\/span>.<\/span>$contact<\/span>.<\/span>'</div>'<\/span>;<\/span>\n    if<\/span>(<\/span> $tz_disable_search_header<\/span> !=<\/span> 1<\/span> ){<\/span>\n        get_search_form<\/span>();<\/span>\n    }<\/span>\n    else<\/span>{<\/span>\n        if<\/span> (<\/span>!<\/span>empty<\/span>(<\/span>$tz_header_right_sidebar<\/span>)<\/span> &&<\/span> $tz_disable_header_right_sidebar<\/span> ==<\/span> 1<\/span>)<\/span> {<\/span>\n            dynamic_sidebar<\/span>(<\/span> $tz_header_right_sidebar<\/span> );<\/span>\n        }<\/span>\n    }<\/span>\necho<\/span> '</div>'<\/span>;<\/span>\n<\/pre><\/div>\n

hope it helps.<\/p>\n

This will do it, you only need to add changes to "templates/header/header-search.php" i think this changes will do it: $contact = '+555-555-555-555'; echo '
'.$contact.'
'; here is full page code, copy and paste it there: '; $contact = '+555-555-555-555'; echo '
'.$contact.'
'; if( $tz_disable_search_header != 1 ){ get_search_form(); } else{ if (!empty($tz_header_right_sidebar) && $tz_disable_header_right_sidebar == 1) { dynamic_sidebar( $tz_header_right_sidebar ); } } echo '
'; hope it helps.. ###EDIT: copy and paste that code and it should work: '; // start code added for contact $contact = '+555-555-555-555'; echo '
'.$contact.'
'; // end code added for contact if( $tz_disable_search_header != 1 ) : get_search_form(); endif; echo '
';
This will do it, you only need to add changes to "templates/header/header-search.php" i think this changes will do it: $contact = '+555-555-555-555'; echo '
'.$contact.'
'; here is full page code, copy and paste it there: '; $contact = '+555-555-555-555'; echo '
'.$contact.'
'; if( $tz_disable_search_header != 1 ){ get_search_form(); } else{ if (!empty($tz_header_right_sidebar) && $tz_disable_header_right_sidebar == 1) { dynamic_sidebar( $tz_header_right_sidebar ); } } echo '
'; hope it helps. ###EDIT: (2): copy and paste that code and it should work: . now it's showing the same as social buttons, bold, and by changing the `font-size` value, you could get the result you want (i have made it 24px) php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) { exit; } $tz_disable_search_header = get_theme_mod( 'tz_disable_search_header', 0 ); echo '
social-icon">'; // start code added for contact $contact = '+555-555-555-555'; echo '
18px24px;linefont-heightweight: 51pxbold;padding: 0px 1px;">'.$contact.'
'; // end code added for contact if( $tz_disable_search_header != 1 ) : get_search_form(); endif; echo '
';
This will do it, you only need to add changes to "templates/header/header-search.php" i think this changes will do it: $contact = '+555-555-555-555'; echo '
'.$contact.'
'; here is full page code, copy and paste it there: '; $contact = '+555-555-555-555'; echo '
'.$contact.'
'; if( $tz_disable_search_header != 1 ){ get_search_form(); } else{ if (!empty($tz_header_right_sidebar) && $tz_disable_header_right_sidebar == 1) { dynamic_sidebar( $tz_header_right_sidebar ); } } echo '
'; hope it helps. ###EDIT (23): copy and paste that code and it should work. now it's showing the same as social buttons, bold, and by changing the `font-size` value, you could get the result you want (i have made it 24px) ) added link option to call for mobile, also the style, to make italways the same color as social icons. php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) { exit; } $tz_disable_search_header = get_theme_mod( 'tz_disable_search_header', 0 ); echo '
This will do it, you only need to add changes to "templates/header/header-search.php" i think this changes will do it: $contact = '+555-555-555-555'; echo '
'.$contact.'
'; here is full page code, copy and paste it there: '; $contact = '+555-555-555-555'; echo '
'.$contact.'
'; if( $tz_disable_search_header != 1 ){ get_search_form(); } else{ if (!empty($tz_header_right_sidebar) && $tz_disable_header_right_sidebar == 1) { dynamic_sidebar( $tz_header_right_sidebar ); } } echo '
'; hope it helps. ###EDIT (3): copy and paste that code and it should work. now it's showing the same as social buttons, bold, and by changing the `font-size` value, you could get the result you want (i have made it 24px) added link option to call for mobile, also the style, to make italways the same color as social icons. '; // start code added for contact $contact = '+555-555-555-245'; echo '
'; echo ''; echo '.'" target="_black">'.$.'">'.$contact.''; echo '
'; // end code added for contact if( $tz_disable_search_header != 1 ) : get_search_form(); endif; echo '
';
This will do it, you only need to add changes to "templates/header/header-search.php" i think this changes will do it: $contact = '+555-555-555-555'; echo '
'.$contact.'
'; here is full page code, copy and paste it there: '; $contact = '+555-555-555-555'; echo '
'.$contact.'
'; if( $tz_disable_search_header != 1 ){ get_search_form(); } else{ if (!empty($tz_header_right_sidebar) && $tz_disable_header_right_sidebar == 1) { dynamic_sidebar( $tz_header_right_sidebar ); } } echo '
'; hope it helps. ###EDIT (3): copy and paste that code and it should work. now it's showing the same as social buttons, bold, and by changing the `font-size` value, you could get the result you want (i have made it 24px) added link option to call for mobile, also the style, to make italways the same color as social icons. 4): copy and paste that code and it should work. now it's showing the same as social buttons, bold, and by changing the `font-size` value, you could get the result you want (i have made it 24px) added link option to call for mobile, also the style, to make italways the same color as social icons. added a missed class, to show same color always (i miss copied the correct code, but i made it blueish from the beginning ;p ) col-md-4 col-sm-4 col-xs-6 fl-right search-box social-icon">'; // start code added for contact $contact = '+555-555-555-245'; echo '
'; echo ''; echo 'class="tel" href="tel:'.$contact.'">'.$contact.''; echo '
'; // end code added for contact if( $tz_disable_search_header != 1 ) : get_search_form(); endif; echo '
';

User: Chlegou

Question: Add a Text Phone Number in Top Right Where Search Is Wordpress

Back to question