Inserting logo into X_treme theme --- ??

gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Wed, 2009-12-02 14:38

I'm about to finally add my own logo and looking for advice regarding the 'how to' process for doing this?

How to delete the generic logo which comes with the stock theme, and how to replace with mine?

thx!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-12-02 16:38

http://codex.gallery2.org/Gallery2:How_to_Add_Custom_Banner_or_Remove_Gallery_Logo

That's not going to be exactly the same as the bloated xtreme theme, but it should get you going. It may be in a different file, you may even be able to go to Site Admin > Themes and add it in the admin settings.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Wed, 2009-12-02 21:08

After fishing around to find where to park my own logo I found the right place and now have that aspect of design done and working properly.

However I haven't figured out how to move the logo around, re: increase left margin so any ideas for this would be most helpful!

ALSO, how can I decrease width of upper page margin where the logo sits?

Thx!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-12-02 22:32

Post a link to your site and I'll see if I can help
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Thu, 2009-12-03 15:19
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-12-03 17:28

ugh, I really dislike the xtreme theme, way too much code to get something done.

I just right-clicked on your page > view-source. yeah, that's right, right-click "protection" doesn't work, all I have to do is disable that option in Firefox :)

In your /themes/x_treme/templates directory find theme.tpl

Then find this code:

            <td style="height:{$logoHeight}px; width:{$logoWidth}px">
	      <a href="{g->url}" title="{g->text text='home'}" class="iconLogo">
		<div id="xlogo" title="{g->text text='home'}" onmouseover="this.className='logohover'"></div>
{*************************************
	  <img src="{g->url href="images/galleryLogo_sm.gif"}" width="107" height="48" alt=""/>
********}

Add/change the stuff in bold (probably just need to adjust the 150px number.

            <td style="margin: 0 0 0 150px; height:{$logoHeight}px; width:{$logoWidth}px">
	      <a href="{g->url}" title="{g->text text='home'}" class="iconLogo">
		<div id="xlogo" title="{g->text text='home'}" onmouseover="this.className='logohover'"></div>
{*************************************
	  <img src="{g->url href="images/galleryLogo_sm.gif"}" width="107" height="48" alt=""/>
********}

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

 
gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Thu, 2009-12-03 23:54

I'm familiar and comfortable editing the source, and this is what I expected for adjusting these changes and looked for this code. I would have thought it to be near the beginning of the script but did not find it there - must be buried much further into the source code - will look again...

thx again!!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-12-04 16:49

Every theme I've ever looked at, the code for the logo is near the top of the page for theme.tpl

However, x_treme is a bit different. :) It's about 3/4 of the way down.

Just use Find in your text editor and search for;
<td style="height:{$logoHeight}px; width:{$logoWidth}px">
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Sat, 2009-12-05 19:01

hello,

Found the script, added your suggestion, did not change anything. Also tweaked the existing script with a few different 'px height' combinations both with your suggested script and without it. Still nothing changed so something in admin must be the default...

Any other ideas ???

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2009-12-06 07:19

I don't see that the changes were applied here:
http://gemsofsouthwest.com/themes/x_treme/templates/theme.tpl
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Sun, 2009-12-06 16:03

That's because I reset all back to original code. Just to be safe and not have altered code in there which may conflict with the generic system or script.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-12-07 23:03

Try changing it back and clearing your cache afterwards:
FAQ: How can I clear cached data?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Tue, 2009-12-08 15:46

ok, tried again but same results. added the code suggested, tried a couple different px width's, cleared template cache each time, no enchilada!

however now I realize what is likely happening. there is space for the control bar options - login, site admin, options, etc, etc which uses the space between the logo and the main frame of the gallery pages.

so I would need to split that space or frame or whatever it is and how its done into a two column frame, one for the logo, one for the control bar options.

make sense?