Gallery Genius Wanted Apply Now

jacunivac

Joined: 2009-10-09
Posts: 3
Posted: Wed, 2009-11-04 17:00

I have searched the forum, read the tips and still can't tweak my Carbon Theme with a new logo. Currently it shows the lovely image missing icon. Would someone go to http://kennedyalbum.com and take a look at the source and clue me in on what is obviously wrong? I have wiped out this poor guys site twice. Good thing I made a backup.

Thanks,

Jac

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Wed, 2009-11-04 17:15

First read this:
http://codex.gallery2.org/Gallery2:Editing_Templates

In theme.tpl just get rid of the Smarty call:
Change

Quote:
<img src="{g->url href="images/Kennedy_Logo.png"}" width="107" height="48" alt=""/>

to

Quote:
<img src="http://www.kennedyalbum.com/images/Kennedy_Logo.png" width="107" height="48" alt=""/>

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
wiggs
wiggs's picture

Joined: 2009-06-16
Posts: 10
Posted: Wed, 2009-11-04 17:21

Just looked quickly and noticed that you have the following for your logo image source:

kennedyalbum.com/images/images/Kennedy_Logo.png

Is that correct? It appears that you have the wrong path for the logo image since I can not navigate to it. Where is the image located on the webserver?

Regards,

wiggs
www.dwithers.com

Login or register to post comments
jacunivac

Joined: 2009-10-09
Posts: 3
Posted: Wed, 2009-11-04 17:46

Thanks for the speedy reply. It is located inside the image folder inside the Carbon template folder.

Jac

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Wed, 2009-11-04 17:55

No kennedy_log.png is, not Kennedy_Logo.png :)

On Linux systems those are 2 different files :)

Try changing:
{g->url href="images/Kennedy_Logo.png"}"

to
{g->url href="images/kennedy_logo.png"}"

Also, the Carbon theme has a place where you can specify a logo in it's settings. Make sure that's blank if you have edited your theme to do this. Then make sure you clear your cache:
FAQ: How can I clear cached data?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
jacunivac

Joined: 2009-10-09
Posts: 3
Posted: Wed, 2009-11-04 17:55

That did the trick. Can I change the size in theme.tpl from 107 x 48 to something larger without having to change anything else in the html code?

Terrific,

Jac

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Wed, 2009-11-04 17:57

You can either remove those size settings in the HTML, or edit them to match what ever your logo size is.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
wiggs
wiggs's picture

Joined: 2009-06-16
Posts: 10
Posted: Wed, 2009-11-04 18:43

Glad you got it working. If you are planning on leaving the logo in the upper left hand corner, why not use the logo option on the theme admin page? Just wondering.

@nivekiam - good catch on the file names.

Regards,

wiggs
www.dwithers.com

Login or register to post comments