What did you struggle with most in setting up your website?

Friday, 15 May 2009

Restoring my site logo after a backup

Good old Joomla!

I just upgraded from 1.5.9 to 1.5.10. That was straightforward enough, 
  1. download the .zip
  2. upload it to a /tmp directory
  3. go into cpanel and extract the .zip into my /html_public directory
  4. look at my site and scream!
I didn't scream because the upgrade had failed and destroyed my site. I screamed because the rhuk_milkyway template I use had replace my logo with its own. It's not a bad logo, it's just a big flag toanyone visiting the site that I'm using a template and not a commercial design. Having had positive feedback about the look of rhuk_milkyway, I want ot keep it, bit with my logo at the top!

So now I had to remember (i.e. Google again) the proceedure to install your own logo. I'm putting all the steps here, although in my case the logo was still there from last time so if like me you're just re-selecting the logo, start at step 3:
  • Create a logo as a .png file. Make it 298 wide and 75 high, for simplicity's sake.
  • Upload the logo file to /rhuk_milkyway/images/ Note that this is different from the /images/ file you will find in your /public_html/ directory
  • Log into  administrator: select Extensions - Template Manager - rhuk_milkyway - edit - edit CSS - template.css - edit
  • The file opens for editing. About 10% of the way down the file you'll find
div#logo {
    position: absolute;
      left: 0;
        top: 0;
          float: left;
            width: 298px;
              height: 75px;
                background: url(../images/NAME OF LOGO FILE.png) 0 0 no-repeat;
                  margin-left: 30px;
                    margin-top: 25px;
                      }
                        • replace "name of logo file" with your own
                        • save - save - preview
                          Finally, back to the site and there was my logo, restored for all the world to see! Big sigh of relief (only quietly, because Mrs Bull was already asleep next to me while I was doing this...)

                          'Til next time

                          Dave

                          My site is here.
                          Joomla! is based here.