The Joomla! Forum ™






Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Tue May 10, 2011 9:54 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu May 06, 2010 2:20 am
Posts: 14
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!


Top
 Profile  
 
PostPosted: Thu May 12, 2011 6:19 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu May 06, 2010 2:20 am
Posts: 14
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.


Top
 Profile  
 
PostPosted: Thu Jun 02, 2011 10:21 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jun 15, 2010 7:06 am
Posts: 7
Location: India, USA
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.

_________________
Joomla Web Development - http://www.openxcell.com/joomla-website ... pment.html | Joomla Web Developer - http://www.openxcell.com/hire-developer ... india.html


Top
 Profile  
 
PostPosted: Fri Sep 30, 2011 3:03 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Sep 30, 2011 2:50 am
Posts: 2
Thanks for the hints. I was looking for the similar stuff.


Top
 Profile  
 
PostPosted: Tue Jan 31, 2012 9:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Dec 22, 2011 7:05 pm
Posts: 5
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


Top
 Profile  
 
PostPosted: Sat Feb 18, 2012 12:45 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Feb 18, 2012 10:28 am
Posts: 13
@denny: how did you install the template? It might be misconfigured.
Maybe you have to locate the file with FTP.


Top
 Profile  
 
PostPosted: Sat Feb 18, 2012 2:15 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 16, 2011 8:17 pm
Posts: 16
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.


Top
 Profile  
 
PostPosted: Thu Mar 08, 2012 9:47 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 08, 2012 9:27 am
Posts: 5
another method is using CSS

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


Top
 Profile  
 
PostPosted: Wed Sep 19, 2012 10:14 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Sep 19, 2012 9:51 am
Posts: 2
@openxcell
not working in new version of joomla why?


Top
 Profile  
 
PostPosted: Thu Sep 20, 2012 7:52 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 18, 2012 8:41 pm
Posts: 26
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/joomla-tutorials/4-header-image-parameter

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

Cheers,
Chris


Top
 Profile  
 
PostPosted: Wed Oct 31, 2012 1:34 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 10, 2012 4:39 pm
Posts: 13
Thanks all for your good responses.


Top
 Profile  
 
PostPosted: Wed Oct 31, 2012 1:39 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 10, 2012 4:39 pm
Posts: 13
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group