How to display customer name after login into site in magento
<p>Hi Can anyone tell me how to display customer name after login into the site in magento.</p>

<p>As of now instead of customer name it is displaying as DROPDOWN. Can anyone check this and solve this it will be very helpful for me.As i am new to magento </p>

<p>app\code\core\Mage\Page\Block\Html\header.php(code from this file).</p>

<pre><code> public function getWelcome()
{
    if (empty($this-&gt;_data['welcome'])) {
        if (Mage::isInstalled() &amp;&amp; Mage::getSingleton('customer/session')-&gt;isLoggedIn()) {
            $this-&gt;_data['welcome'] = $this-&gt;__('Welcome, %s!', $this-&gt;escapeHtml(Mage::getSingleton('customer/session')-&gt;getCustomer()-&gt;getName()));
        } else {
            $this-&gt;_data['welcome'] = Mage::getStoreConfig('design/header/welcome');
        }
    }

    return $this-&gt;_data['welcome'];
}
</code></pre>

<p>This is the code from where it is getting as 'DROPDOWN' but not getting how to get the name and display the customer name instead of dropdown.</p>

<pre><code>&lt;div data-toggle="dropdown" class="dropdown-toggle md-ink"&gt;
&lt;span class="fa fa-cog hidden-sm hidden-lg hidden-md"&gt;&lt;/span&gt;
&lt;span class="hidden-xs"&gt;&lt;?php echo $this-&gt;__('Dropdown') ?&gt;
&lt;span class="caret"&gt;&lt;/span&gt;&lt;/span&gt;                                                          
&lt;/div&gt;
</code></pre>