[PGTheme] Change logo.gif Path to my Website's Homepage

NNatic

Joined: 2006-07-20
Posts: 18
Posted: Thu, 2006-08-17 01:14

I would like to change the path of the logo.gif and logoon.gif. i would like it to take my visitors back to my main page instead of the gallery main page.

Also, what would it take to add another button up there to return to the gallery main page. I would prefer the above to no change, but if haveing another button is possible for a newbie, i would be interested in getting it done.

Thanks!!

This may be of some help to those that may have an idea. i am new to this and did not see anything that i could easily change, but again, i am new to this.

http://gallery.menalto.com/node/51766

 
NNatic

Joined: 2006-07-20
Posts: 18
Posted: Fri, 2006-08-18 04:20

bump?

 
leschek

Joined: 2006-07-29
Posts: 42
Posted: Fri, 2006-08-18 06:45

You can try this:
Find in theme.tpl (around line 254):

<a href="{g->url}" 
onmouseover="logo.src='{$imageURL_baseCP}logoon.gif'"  
onmouseout="logo.src='{$imageURL_baseCP}logo.gif'" title="{g->text text='home'}">
                    <img id="logo" src="{$imageURL_baseCP}logo.gif" alt="{g->text text='home'}" longdesc="{g->text text='Home'}" title="{g->text text='home'}" /></a>

and in first line change:
<a href="{g->url}"
to
<a href="your_home_page_url"
I did not try it, but it should work.

 
NNatic

Joined: 2006-07-20
Posts: 18
Posted: Fri, 2006-08-18 13:47

THANKS!!!

but i do have a ? for ya.

in my theme.tpl in gallery\themes\pgtheme\templates i have:

onmouseover="logo.src='{$imageURL_baseCP}logoon.gif'"
onmouseout="logo.src='{$imageURL_baseCP}logo.gif'" title="{g->text text='home'}">
<img id="logo" src="{$imageURL_baseCP}logo.gif" alt="{g->text text='home'}" longdesc="{g->text text='Home'}" title="{g->text text='home'}" /></a>
</td>
<td style="text-align:right" valign="top">
{if $theme.params.expandBtn}
<a href="javascript:expand()"

Should i change that javascript part to what you stated above. My lines are slightly different. I am running gallery 2 with PG's latest theme.

*edit, i tried what you stated in place of the javascript line and that did not work... it actually didnt change the functionality of it at all... do i habe the right theme file?

 
leschek

Joined: 2006-07-29
Posts: 42
Posted: Fri, 2006-08-18 18:38

Hallo.
I'm sure there is <a href="{g->url}" right above the code what you wrote.
Change only this <a href="{g->url}" to this <a href="your_home_page_url". I wrote the rest to help you to find the right code.
It realy should work. I just changed it now in my Gallery. You can check it here: http://www.angrezphoto.com/gallery2/ . If you click on logo there you will go to my old website.

EDIT: If you change templates don't forget to Delete template cache in Admin Options - Maintenance.

 
NNatic

Joined: 2006-07-20
Posts: 18
Posted: Fri, 2006-08-18 18:41

Hell of a guy!!!

Thanks man! i am not quite sure how i missed that... i was looking for that line below the logoon blah blah blah... Thanks for your help!!! i really appreciate it!

 
leschek

Joined: 2006-07-29
Posts: 42
Posted: Fri, 2006-08-18 19:11

No problem . I'm happy to help.

 
nessuswx

Joined: 2007-09-13
Posts: 1
Posted: Thu, 2007-09-13 20:53

thank a lot, I try and work fine.