The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon May 07, 2012 3:55 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 07, 2012 3:51 pm
Posts: 5
Hi!
I need to remove the site title from the main banner on this template:
http://www.joomla.it/anteprima-template-16/5221-siteground-j16-20.html

So I opened index.php on the template's folder and modify this
Code:
<div id="header">
<h1>
<a href="<?php echo $this->baseurl ?>"><?php echo $app->getCfg('sitename'); ?></a>
</h1>               
</div>

In this
Code:
<div id="header">
<h1>
<a href="<?php echo $this->baseurl ?>"><?php //echo $app->getCfg('sitename'); ?></a>
</h1>               
</div>


But when I upload the modified file on the server, I receive this error:
Code:
Fatal error: Call to a member function getCfg() on a non-object...

That happen every time I use a siteground template without register the domain name.

But how can I remove that label without modify directly the php file?

Thanks a lot!


Last edited by asder99 on Tue May 08, 2012 6:40 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon May 07, 2012 5:54 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 20414
Location: Chennai, India
The comment method used will not work. You could remove the whole line that starts with "<a href"

_________________
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Mon May 07, 2012 6:51 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 07, 2012 3:51 pm
Posts: 5
Hi!
Thanks for the answer, but it doesn't work...

I tried to do this:
Code:
<h1><!--<a href="<?php echo $this->baseurl ?>"><?php echo $app->getCfg('sitename'); ?></a>--></h1>


And this:
Code:
<!--<h1><a href="<?php echo $this->baseurl ?>"><?php echo $app->getCfg('sitename'); ?></a></h1>-->


But booth of them gives me a blank page... it load just main banner without any text and any menu!


Top
 Profile  
 
PostPosted: Tue May 08, 2012 1:27 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 20414
Location: Chennai, India
A simpler approach would be to add the css attribute display:none; in the following css entry that is available in the file template.css that is located in the directory /templates/siteground-j16-20/css.
Code:
#header h1 a, #header h1 a:link, #header h1 a:visited, #header h1 a:hover {
   font-size:30px;
   font-family: georgia, arial, tahoma;
   color:#ffa843;
    text-decoration: none;
    line-height: 30px;
    text-shadow: 1px 1px 0 #000;
    font-weight:400;
}


If you still want to comment the line in the file index.php as you were planning to do, then the commented line would be as shown below:
Code:
<!--
      <h1><a href="<?php echo $this->baseurl ?>"><?php echo $app->getCfg('sitename'); ?></a></h1>               
-->



Note: Make a copy of the file before editing it.

_________________
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Tue May 08, 2012 6:39 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 07, 2012 3:51 pm
Posts: 5
imanickam wrote:
A simpler approach would be to add the css attribute display:none; in the following css entry that is available in the file template.css that is located in the directory /templates/siteground-j16-20/css.
Code:
#header h1 a, #header h1 a:link, #header h1 a:visited, #header h1 a:hover {
   font-size:30px;
   font-family: georgia, arial, tahoma;
   color:#ffa843;
    text-decoration: none;
    line-height: 30px;
    text-shadow: 1px 1px 0 #000;
    font-weight:400;
}



That's work perfectly, thanks a lot!

Quote:
Note: Make a copy of the file before editing it.


Unfortunately I already know that... :)

Thank you again!


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



Who is online

Users browsing this forum: hitman47 and 32 guests


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