Image in place of site name at top of site

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
kellyjean81
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu May 06, 2010 2:20 am

Image in place of site name at top of site

Post by kellyjean81 » Tue May 10, 2011 9:54 pm

Hello
Can anyone tell me what the code is that puts the site name at the top of the page, and how I could put an image in that place? Thanks in advance.

I'm not a total newbie, but I don't want to mess anything up, and if someone knows the answer, it would save me a ton of (additional) time trying to figure it out. Thanks!

kellyjean81
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu May 06, 2010 2:20 am

Re: Image in place of site name at top of site

Post by kellyjean81 » Thu May 12, 2011 6:19 pm

So, after some playing, I replaced this code below in templates/atomic/index.php:

<div class="joomla-header span-16 append-1">
<h1><?php echo $app->getCfg('sitename'); ?></h1>
</div>

changed to:
<div class="joomla-header span-16 append-1">
<img src="myimpage.gif" alt="Image created by a PHP script" width="200" height="80">
</div>

I loaded the image into my main folder.

openxcell
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jun 15, 2010 7:06 am
Location: India, USA
Contact:

Re: Image in place of site name at top of site

Post by openxcell » Thu Jun 02, 2011 10:21 am

kellyjean81 wrote:So, after some playing, I replaced this code below in templates/atomic/index.php:

<div class="joomla-header span-16 append-1">
<h1><?php echo $app->getCfg('sitename'); ?></h1>
</div>

changed to:
<div class="joomla-header span-16 append-1">
<img src="myimpage.gif" alt="Image created by a PHP script" width="200" height="80">
</div>

I loaded the image into my main folder.
Along with this you have to give Home Page URL also. Thanks.

skeeter_xu
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Sep 30, 2011 2:50 am

Re: Image in place of site name at top of site

Post by skeeter_xu » Fri Sep 30, 2011 3:03 am

Thanks for the hints. I was looking for the similar stuff.

Denny2011
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Dec 22, 2011 7:05 pm

Re: Image in place of site name at top of site

Post by Denny2011 » Tue Jan 31, 2012 9:24 pm

I am very new to Joomla! and would like to know how you accessed the templates/atomic/index.php. I clicked on template manager then atomic default but have not found the index.php. Any help will be most appreciated.
Denny

cloudformz
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Sat Feb 18, 2012 10:28 am
Contact:

Re: Image in place of site name at top of site

Post by cloudformz » Sat Feb 18, 2012 12:45 pm

@denny: how did you install the template? It might be misconfigured.
Maybe you have to locate the file with FTP.

grimoire
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sat Apr 16, 2011 8:17 pm

Re: Image in place of site name at top of site

Post by grimoire » Sat Feb 18, 2012 2:15 pm

kellyjean81 wrote:So, after some playing, I replaced this code below in templates/atomic/index.php:

<div class="joomla-header span-16 append-1">
<h1><?php echo $app->getCfg('sitename'); ?></h1>
</div>

changed to:
<div class="joomla-header span-16 append-1">
<img src="myimpage.gif" alt="Image created by a PHP script" width="200" height="80">
</div>

I loaded the image into my main folder.
An Alternative method...

Joomlas method is to go to extensions-->Template Manager: Styles click On Beez2-Default.Click on advanced options. This will allow you to fill in your site title and place a image over it also.

smithgray
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Mar 08, 2012 9:27 am

Re: Image in place of site name at top of site

Post by smithgray » Thu Mar 08, 2012 9:47 am

another method is using CSS

body
{
background-image:url('smily.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}

experttalk
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Sep 19, 2012 9:51 am
Contact:

Re: Image in place of site name at top of site

Post by experttalk » Wed Sep 19, 2012 10:14 am

@openxcell
not working in new version of joomla why?

chrissonne
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Tue Sep 18, 2012 8:41 pm

Re: Image in place of site name at top of site

Post by chrissonne » Thu Sep 20, 2012 7:52 pm

I wrote a tutorial on how to add in an image using parameters. This allows you to use template styles in order to set the image as opposed to hard coding.

http://www.sonnemann.ca/index.php/jooml ... -parameter

It is a continuation of my tutorial on modifying the Atomic template.

Cheers,
Chris

kazmilahore
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Mar 10, 2012 4:39 pm

Re: Image in place of site name at top of site

Post by kazmilahore » Wed Oct 31, 2012 1:34 pm

Thanks all for your good responses.

kazmilahore
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Mar 10, 2012 4:39 pm

Re: Image in place of site name at top of site

Post by kazmilahore » Wed Oct 31, 2012 1:39 pm

Denny2011 wrote:I am very new to Joomla! and would like to know how you accessed the templates/atomic/index.php. I clicked on template manager then atomic default but have not found the index.php. Any help will be most appreciated.
Denny
You need to access your files by FTP.
You can download one freeware from this link:
http://filezilla-project.org/download.php


Locked

Return to “Templates for Joomla! 2.5”