Trying to echo out custom field inside shortcode?

$html . = echo '' . $my_theme['social-twitter']; will throw the error. because syntax is wrong. you will try this:

$html.= ' ' . $my_theme['social-twitter'];