Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Logo title

Logo title 1 year 1 month ago #43768

  • creazy85
  • creazy85's Avatar
  • OFFLINE
  • OSTar
  • Posts: 159
  • Karma: 0
Hi,

This is the first time I came across this problem with a template. I can't figure out which file to edit to change the title="" for the logo. It is not part of the templates options in the template manager.

meterofbeer.com/

Thanks,

Greg
Greg
Please become a member of OSTraining to reply to this post.

Logo title 1 year 1 month ago #43778

  • tessa
  • tessa's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 3950
  • Thank you received: 134
  • Karma: 9
Hi Greg,

Could you paste your index.php code here for your logo?
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Logo title 1 year 1 month ago #43780

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Greg,

It's hard to tell from the front end, but here is where I would look.

It could be hard coded or it could be a variable calling the title from a language string.

Look at the index.php file for the template. Also look in the template directory for an html folder. If it's hard coded it will be in one of those files.

Or it could be in a language file and defined by a variable. Look at the language files in the template directory and see if there is a variable written like $variable="Joomla!" and change the word that it's equal to.

If it's borrowing a language string from the native Joomla install you can find it and override it by following this tutorial.

www.ostraining.com/blog/joomla/languge-manager/

Let us know what you discover or if we need to do more.

Cheers,
Ed

Please become a member of OSTraining to reply to this post.

Logo title 1 year 1 month ago #43783

  • creazy85
  • creazy85's Avatar
  • OFFLINE
  • OSTar
  • Posts: 159
  • Karma: 0
where would I find that? :( sorry I'm more of a designer.
Greg
Please become a member of OSTraining to reply to this post.

Logo title 1 year 1 month ago #43785

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
The files you need to inspect will be in

mainjoomladirectory/templates/nameofyourtemplate - Check the index.php file there
Also look for subdirectories like:

templates/nameofyourtemplate/html
templates/nameofyourtemplate/language

The language manager is in your Joomla admin under Extensions > Language Manager.

ed
Please become a member of OSTraining to reply to this post.

Logo title 1 year 1 month ago #43790

  • creazy85
  • creazy85's Avatar
  • OFFLINE
  • OSTar
  • Posts: 159
  • Karma: 0
ohh where would i find that question was for the first response from Tessa. The ones you mentioned Ed I do know where they are just didnt know if there was a separate index.php for logos lol - silly me.

Thanks for all the suggestions I will take a look. The template seems like it is borrowing something from the native. I think I will start there.

THANKS AGAIN GUYS!
Greg
Please become a member of OSTraining to reply to this post.

Logo title 1 year 1 month ago #43793

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Greg,

Sometimes we grab a post at the same time so you get two answers at once. Makes for a little confusion occasionally, but sometimes too much is better.

Let us know how it comes out and if you get stuck.

Cheers,
Ed
Please become a member of OSTraining to reply to this post.

Logo title 1 year 3 weeks ago #44596

  • creazy85
  • creazy85's Avatar
  • OFFLINE
  • OSTar
  • Posts: 159
  • Karma: 0
Hey Guys,

I know it's been a while but I was searching all the files and tried to search in the language overrides and I couldn't find anything?... From the code below it doesn't seem to be hard coded unless there is an override somewhere... (I dont know :/)
Here is the code for the logo in the index.php :
<div class="logoheader">
        <h1 id="logo">
          <?php if ($logo): ?>
          <a href="<?php echo $this->baseurl?>" title="<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>"><img src="images/stories/logo.png"  alt="meter of beer" /></a>
          <?php endif;?>            
          <?php if (!$logo ): 
          echo htmlspecialchars($templateparams->get('sitetitle'));
          endif; ?>
        </h1>
        <jdoc:include type="modules" name="user1" />
      </div>
        
      <div class="navigation">
        <jdoc:include type="modules" name="user2" />
      </div>
      <!-- end logoheader --> 

Thanks !
Greg
Greg
Please become a member of OSTraining to reply to this post.

Logo title 1 year 3 weeks ago #44662

  • tessa
  • tessa's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 3950
  • Thank you received: 134
  • Karma: 9
Hi Creazy85,

Your title is being created by pulling the name of your site and it's pulling "Joomla!" somewhere.

If you want an immediate fix, I'll provide the code to change the logo title, but you'd have to go in the code to change it again later on.

Here it is:
<div class="logoheader">
<h1 id="logo">
<?php if ($logo): ?>
<a href="<?php echo $this->baseurl?>" title="<?php echo 'This is your Logo Title';?>"><img src="images/stories/logo.png" alt="meter of beer" /></a>
<?php endif;?> 
<?php if (!$logo ): 
echo htmlspecialchars($templateparams->get('sitetitle'));
endif; ?>
</h1>
<jdoc:include type="modules" name="user1" />
</div>

<div class="navigation">
<jdoc:include type="modules" name="user2" />
</div>
<!-- end logoheader --> 

Let me know if you have any other questions. :-)
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.