• Feed
  • About The Blog

    The Blogosaurus is a company technology blog from Louisville Web Development firm MIB Solutions. The issues on or blog range from our personal use of Wordpress, Joomla, PHP and Database programming, AJAX, Flash, and other web development languages and tools we use on our client's projects.

    The Blogosaurus was born in 2008, and continues to be a resources for Internet professionals and Google searches alike.

  • Categories

  • Archives

  • Recent Posts

  • Our Analytics


    9,383
    Unique
    Visitors
    Powered By Google Analytics
  • Look Around

  • Recent Posts

  • Categories

  • « NextGen Gallery Images Not Uploading in Wordpress | Home | Google Chrome Operating System, gOS »

    Wordpress Header Div Clickable

    July 7, 2009

    If you’re using Wordpress, which if not we need to have a talk, then most likely you are using a background image in the ‘header’ div. We are doing the same thing with The Blogosaurus, and wanted our header image to become a clickable link without messing with the header.php file and keeping the ‘header’ div the background image. I simply added this to the ‘header’ div to make the div link clickable,

    <div id=”header” onclick=”location.href=’<?php bloginfo(’url’);?>’;” style=”cursor:pointer;”>

    And it worked perfectly. Note: If you are using a CMS or website other than Wordpress, just remove the php part and it should work.

    Comments