Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Created April 8, 2015 14:23
Show Gist options
  • Select an option

  • Save thecodepoetry/474aa09abbb820d24096 to your computer and use it in GitHub Desktop.

Select an option

Save thecodepoetry/474aa09abbb820d24096 to your computer and use it in GitHub Desktop.
skype call
function presscore_top_bar_contact_element( $element ){
$white_list = array(
'address',
'phone',
'email',
'skype',
'clock'
);
if ( in_array($element, $white_list) ) {
$contact_content = of_get_option( 'header-contact_' . $element );
if ( $contact_content ) {
$class = $element;
if ( !of_get_option( 'header-contact_' . $element . '_icon', true ) ) {
$class .= ' icon-off';
}
if( $element == 'skype') {
echo '<span class="mini-contacts ' . esc_attr( $class ) . '"><a href="skype:'.$contact_content.'?call">'.$contact_content.'</a></span>';
}
else {
echo '<span class="mini-contacts ' . esc_attr( $class ) . '">' . $contact_content . '</span>';
}
}
}
}
@thecodepoetry

Copy link
Copy Markdown
Author

Add this code in your child theme fcunctions.php and use your user name in skype filed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment