Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Editing Bolt Template Logo size

Editing Bolt Template Logo size 1 year 9 months ago #28348

  • firespydr
  • firespydr's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 9
  • Karma: 0
I'm using the Bolt template from OSTraining. I need my logo to be larger than the 227x90 pixels allowed. I'm assuming that is specified in the included template.css file. Ideally I'd like the logo to be able to fill the banner section if needed and be approx 300px tall. How can I achieve this?

One thing I noted while using firebug to figure out what's happening is that included in the header is a leaderboard div, is that needed for the template to work?

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

Editing Bolt Template Logo size 1 year 9 months ago #28471

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16797
  • Thank you received: 386
  • Karma: 56
Hi firespydr,

It's a combination of the index.php file of the template and the template.css. You could comment out the divs for the logo and the leaderboard in the index.php and then just use add a background image in the template.css for the header div.

Check out the template design class and the coding class (complimentary) when you have some time:
www.ostraining.com/joomla-template-course/
www.ostraining.com/training/overview/coding-classes/

Kind regards,
Nick
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.

Editing Bolt Template Logo size 1 year 9 months ago #28505

  • firespydr
  • firespydr's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 9
  • Karma: 0
Thanks, I'll look into those courses. I've learned so much already, so worth the money!!
Please become a member of OSTraining to reply to this post.

Editing Bolt Template Logo size 1 year 9 months ago #28524

  • steve
  • steve's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3053
  • Thank you received: 163
  • Karma: 26
Hi firespydr

Yes - that's certainly possible and not too difficult. In fact, it's just what we did for this site which is also running Bolt.

What we try to do here is teach people how do these things themselves. So, have a go at modifying the template.css for the logo. If you get stuck, we'll post the answer here for you.
Ask. We'll help. It's as simple as that.

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.

Editing Bolt Template Logo size 1 year 9 months ago #28637

  • shirin
  • shirin's Avatar
  • OFFLINE
  • OSTar
  • Posts: 97
  • Karma: 0
Hi, I was trying to also work with logo sizes, and I saw this post. I commented out just the leaderboard div, and changed the size of logo in the template.css. I also changed the size of leaderboard to 0 pxl in template.css. this does seem to work but is it working because I changed the size of leaderboard to 0 or is it working because of the commenting out?

I am also trying to see if I can remove the top thick line just to see how it looks without it. WHen I comment it out in index file it changes nothing. but if I cut the code out it works. I was wondering what am I doing wrong? I dont want to delete anything, am I using the right code for commenting out? I am using /* */ , this what I saw in one of the template design tutorials.

Thanks,

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

Editing Bolt Template Logo size 1 year 9 months ago #28661

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16797
  • Thank you received: 386
  • Karma: 56
Hi Shirin,

It's working because of the comment out, but the css would work as well.

As to commeting out something, it depends on the language.
HTML uses <!-- comment -->

CSS uses /* comment */

PHP uses /*comment*/ and also one line comments like so:
//comment
But this is not commented

Hope this helps! let me know if you have any questions.

Kind regards,
Nick
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.

Editing Bolt Template Logo size 1 year 9 months ago #28672

  • shirin
  • shirin's Avatar
  • OFFLINE
  • OSTar
  • Posts: 97
  • Karma: 0
thanks, this worked.

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

Editing Bolt Template Logo size 1 year 9 months ago #28674

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16797
  • Thank you received: 386
  • Karma: 56
You're welcome, Shirin! :)

Kind regards,
Nick
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.

Editing Bolt Template Logo size 10 months 2 weeks ago #50967

  • firespydr
  • firespydr's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 9
  • Karma: 0
I'm wanting to use the same template (OS Training Bolt) to make a test site. I created a Joomla 1.7 site with the previous version of the template. I'm now using Joomla 2.5.6 and the newest version of the template. I've installed everything from scratch.

The last time I did this I had to make a few tweaks to the template.css and index.php files to make the logo fit. I have copied the template.css, index.php, and logo.png over to my test server. The changes to the template seem to take effect however the logo doesn't show up.

I have tried copying the logo.png to the /joomlasite/templates/ostrainingbolt/images folder as well as /joomlasite/images folder. Its in both folders, I have looked at these files and find no difference between them, I've tried overwritting them.

I'm stuck and am not sure how to get this resolved.
Here is the template.css code I had to change and what I'm currently using
#logo {
	position:absolute;
	top:0; left:0;
	width:960px; /* was227px; */
	}
h1.title {
	background:url(images/logo.png) no-repeat;
	height: 150px !important;
	height /**/:150px;
	margin: 0;
	padding: 90px 0 0 0;
	overflow: hidden;
	}
#leaderboard {
	position:absolute;
	right:0; bottom:0;
	text-align:right;
	width:728px;
	}
#menu {
	position:relative;
	z-index:999;
	margin-top:65px; /*new property added to move menu down */
	}

Here is the index.php changes that are no not working either.
<div id="header">
		<div id="logo" onclick="location.href='<?php echo JURI::base() ?>';" style="cursor: pointer;"><h1 class="title"><?php /*echo JDocument::getTitle(); */ ?></h1></div>
		<div id="leaderboard"><jdoc:include type="modules" name="leaderboard" style="none" /></div>
	</div>
Please become a member of OSTraining to reply to this post.

Editing Bolt Template Logo size 10 months 2 weeks ago #50970

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3950
  • Thank you received: 134
  • Karma: 9
Hi Firespydr,

Your CSS code and html code looks fine to me. I'm sure you have, but did you try clearing your cache/browser cache?

Also, if you put this site on a hosted server, it would be easier for us to point out the issue you are having. :-)
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.

Editing Bolt Template Logo size 10 months 2 weeks ago #50976

  • firespydr
  • firespydr's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 9
  • Karma: 0
Doh, it was the browser cache. Thanks
Please become a member of OSTraining to reply to this post.

Editing Bolt Template Logo size 10 months 2 weeks ago #50981

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3950
  • Thank you received: 134
  • Karma: 9
Hi Firespydr,

I'm glad that worked for you. I still have that issue although I know that it solves a lot of my problems. It's always hard to remember it is something as simple as this.

Have a wonderful weekend. :-)
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.