[SOLVED] Where is the logo called?

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Wed Nov 02, 2011 7:18 pm
Hi peeps,

A pretty vague request here but I was wondering if anyone had any idea which file calls the logo?

I know where the css for the logo is so that isn't a problem. Basically I am trying to have different logos for a language change and need to find the file that actually calls up the logo.

Any help would be greatly appreciated

Thanks
User avatar
Senior Boarder

GK User
Wed Nov 02, 2011 8:50 pm
If you want to change logo you can do it just in css file (templates --> gk_corporate --> css --> style1.css in line22:

Code: Select all
a#logo_styled{
   background: transparent url(../images/style1/logo.png) no-repeat 0 0;


Just replace current logo.
User avatar
Platinum Boarder

GK User
Wed Nov 02, 2011 8:59 pm
Thanks, I actually am not having any trouble replacing the logo. I have to try and set it up so that the logo changes when I change the language on my site (with joomfish). To do this I think I have to change some code somewhere because there that tells the template to use the french logo when I choose the french language.

All the examples I find talk about the location of this code being in the index.php but it seems that GK templates have a rather different file structure. So I was hoping to find out which file actually calls up the logo... CSS obviously is controlling the file and the size but that css has to be called up by something in the first place.... That's what I'm looking for.

Thank you though
User avatar
Senior Boarder

GK User
Wed Nov 02, 2011 9:06 pm
Try to look in "Joomla Roottemplatesgktemplatenamelayoutsblockslogo.php"
User avatar
Platinum Boarder

GK User
Wed Nov 02, 2011 9:16 pm
Unfortunately it doesn't exist.... I am using joomla 1.5 if that makes much difference.

In my layouts/blocks area I only have the following:

botsl.php
cufon.php
definitions.php
footer.php
head.php
header.php
left.php
main.php
mainnav.php
right.php
toolbar.php
topsl.php
User avatar
Senior Boarder

GK User
Wed Nov 02, 2011 9:18 pm
its in mainnav.php file...
User avatar
Platinum Boarder

GK User
Fri Nov 04, 2011 9:40 pm
Legend... Thank you sir
User avatar
Senior Boarder

GK User
Fri Nov 04, 2011 9:46 pm
No problem at all, if you get this working you might want to share the code in here for future references :D
User avatar
Platinum Boarder

GK User
Fri Nov 04, 2011 9:50 pm
Absolutely... Fingers crossed I shall have it beaten by the end of the weekend. :unsure:
User avatar
Senior Boarder

GK User
Sun Nov 06, 2011 2:30 am
Well Norman... I have to thank you for helping me get this started because I seem to have managed to sort this out. I am going to post my solution here and then post it again under a more suitable heading so that people can find it easier.

In no specific order:

I created an English and French logo which I named en-GB.png and fr-FR.png (these can be anything as long as it is reflected in your Template.css changes.

I duplicated the logo section of my template.css file, as below

Code: Select all
/* logo styling */
h1.logo,
div.logo-text { float:left; padding:0 10px 0 0; background:#f4f2ef; }
h1.logo { width:150px; height:40px; background:#f4f2ef url('../images/en-GB.png') no-repeat 0 0; padding:0; }
h1.logo>a { text-indent:-999em; display:block;width:150px;height:100%; }
div.logo-text h1 { font-size:18px; line-height:26px; height:26px; color:#6b6459; text-transform:uppercase; }
div.logo-text h1 a { color:#6b6459; }
div.logo-text h1 a:hover { text-decoration:none; }
div.logo-text p { font-size:11px; line-height:14px; height:14px; color:#6b6459; text-transform:uppercase; letter-spacing:0.65px; }
/* if you've change logo size - please change also below dimensions */
.gk-nav { margin-left:160px; }

/* logo2 styling */
h1.logo2,
div.logo2-text { float:left; padding:0 10px 0 0; background:#f4f2ef; }
h1.logo2 { width:150px; height:40px; background:#f4f2ef url('../images/fr-FR.png') no-repeat 0 0; padding:0; }
h1.logo2>a { text-indent:-999em; display:block;width:150px;height:100%; }
div.logo2-text h1 { font-size:18px; line-height:26px; height:26px; color:#6b6459; text-transform:uppercase; }
div.logo2-text h1 a { color:#6b6459; }
div.logo2-text h1 a:hover { text-decoration:none; }
div.logo2-text p { font-size:11px; line-height:14px; height:14px; color:#6b6459; text-transform:uppercase; letter-spacing:0.65px; }
/* if you've change logo size - please change also below dimensions */
.gk-nav { margin-left:160px; }


Obviously changing my second logo class to "logo2". I just copied the whole section to ensure consistency between logo classes.

Then in 'mainnav.php' I found the following code:

Code: Select all
<h1 class="logo">


And changed it to:

Code: Select all
<?php
$lang =& JFactory::getLanguage();
if($lang->getTag() == 'en-GB'): ?>
<h1 class="logo">
<?php else: ?>
<h1 class="logo2">
<?php endif; ?>


Perhaps there is a better way but this is the best I could piece together for now... I am open to any suggestions anyone may have.

I hope this helps anyone that is also struggling with the same problem.
User avatar
Senior Boarder

GK User
Sun Nov 06, 2011 3:23 am
Yes i thank you for this as it will help a few users. We might change the code slightly and throw a switch in template options to turn on/off multilanguage logo :D
User avatar
Platinum Boarder

GK User
Sun Nov 06, 2011 4:06 am
That would be awesome... Glad I could help
User avatar
Senior Boarder


cron