Image in place of site name at top of site
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.
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.
-
- Joomla! Apprentice
- Posts: 14
- Joined: Thu May 06, 2010 2:20 am
Image in place of site name at top of site
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!
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!
-
- Joomla! Apprentice
- Posts: 14
- Joined: Thu May 06, 2010 2:20 am
Re: Image in place of site name at top of site
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.
<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.
-
- 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
Along with this you have to give Home Page URL also. Thanks.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.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Fri Sep 30, 2011 2:50 am
Re: Image in place of site name at top of site
Thanks for the hints. I was looking for the similar stuff.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Thu Dec 22, 2011 7:05 pm
Re: Image in place of site name at top of site
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
Denny
-
- Joomla! Apprentice
- Posts: 21
- Joined: Sat Feb 18, 2012 10:28 am
- Contact:
Re: Image in place of site name at top of site
@denny: how did you install the template? It might be misconfigured.
Maybe you have to locate the file with FTP.
Maybe you have to locate the file with FTP.
-
- Joomla! Apprentice
- Posts: 16
- Joined: Sat Apr 16, 2011 8:17 pm
Re: Image in place of site name at top of site
An Alternative method...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.
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.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Thu Mar 08, 2012 9:27 am
Re: Image in place of site name at top of site
another method is using CSS
body
{
background-image:url('smily.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}
body
{
background-image:url('smily.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Sep 19, 2012 9:51 am
- Contact:
Re: Image in place of site name at top of site
@openxcell
not working in new version of joomla why?
not working in new version of joomla why?
-
- Joomla! Apprentice
- Posts: 26
- Joined: Tue Sep 18, 2012 8:41 pm
Re: Image in place of site name at top of site
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
http://www.sonnemann.ca/index.php/jooml ... -parameter
It is a continuation of my tutorial on modifying the Atomic template.
Cheers,
Chris
-
- Joomla! Apprentice
- Posts: 19
- Joined: Sat Mar 10, 2012 4:39 pm
Re: Image in place of site name at top of site
Thanks all for your good responses.
-
- Joomla! Apprentice
- Posts: 19
- Joined: Sat Mar 10, 2012 4:39 pm
Re: Image in place of site name at top of site
You need to access your files by FTP.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 can download one freeware from this link:
http://filezilla-project.org/download.php