I uploaded my company's site logo successfully to my site and whenever I created sites under my site collection, the logo is inheriting successfully. But the problem is when I click the site logo from any sub-site, it's taking me to that particular site's homepage, but not to the top-level site. How could I do that?
The OOTB master page uses the ~site token as the URL to surround the site logo, just change this to ~sitecollection/ (the trailing slash is necessary) or even / depending on your particular requirements.
In v4.master the section to change is at line 297 and should wind up looking something like:
<SharePoint:SPLinkButton runat="server" NavigateUrl="~sitecollection/" id="onetidProjectPropertyTitleGraphic" > <SharePoint:SiteLogoImage name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/images/siteIcon.png" runat="server"/> </SharePoint:SPLinkButton>