how do i remove site title?

Permalink
i'd like to be able to remove it or perhaps edit it's size . . . it's too big for my site. i'm guessing that it's in a php doc that i can edit??

i'm a newbie and have just started working with c5 today so please make your explanation simple. i'm not a programmer either.

thanks!

 
ScottC replied on at Permalink Reply
ScottC
You need to edit it out of the template. A good place to see what to do is to copy your vanilla theme to your template directory on the filesystem locally, then:

look for this in your template in default.php

<a href="<?=$this->url('/')?>"><?=SITE?></a>


delete that or comment it out, that will get rid of the link and thus your site title or you can change it to an image if that floats your boat.
ScottC replied on at Permalink Reply
ScottC
upload with a different folder name like theme2 or vanillanotitle to themes outside of the concrete directory via ftp (the whole folder, not just the default.php) and install from the dashboard.
ScottC replied on at Permalink Reply
ScottC
the siteroot/concrete is not where you want it to go, you want your siteroot/themes/. Sorry just wanted to clear that up. You COULD edit the actual template in the concrete/templates/ directory and only update the default.php but it will maybe be overwritten in an update so you might as well leave it out of the siteroot/concrete/. I try not to go in there unless I have to.
dromenon replied on at Permalink Reply
thanks SO much for your clear and simple posts. the c5 i've installed is the brand new one and i don't see the code you mention in the default.php. here's the code in my default.php:

<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php'); ?>


<div id="central">
<div id="sidebar">
<?php
$as = new Area('Sidebar');
$as->display($c);
?>
</div>

<div id="body">
<?php

$a = new Area('Main');
$a->display($c);

?>
</div>

<div class="spacer">&nbsp;</div>
</div>

<?php $this->inc('elements/footer.php'); ?>

any ideas about what needs to be deleted in this doc??

thanks.
ScottC replied on at Permalink Reply
ScottC
They are separating the header and footer out now, so look under the elements then the header.php and it is on line 32.
dromenon replied on at Permalink Reply
wow, that was quick, thanks scott. ok, here's my line 32:

<h1 id="logo"><a href="<?php echo DIR_REL?>/"><?php echo SITE?></a></h1>

so, i'll delete that line and upload the theme folder with a new name and put it in the theme folder that's located outside of 'concrete'. that won't change my designed pages, it'll just remove the header, right?

thanks!
ScottC replied on at Permalink Reply
ScottC
yes. Header will be there, the h1 link back to your index.php with your long site name will be gone.
dromenon replied on at Permalink Reply
ScottC replied on at Permalink Reply
ScottC
email me a link to it live.
mlw6y5 replied on at Permalink Reply
I have the same question. I'm not PHP-savvy, in fact, you could call me PHP ignorant. All I want to do is replace my hideously long site name with a linked image.
dromenon replied on at Permalink Reply
i'm stuck and can't move on with my site bc i don't know how to fix my issue, as described above. my site name, which is automatically placed above my header image is way too big. how/where can i reduce the size of the site name. please help, and thanks.
ScottC replied on at Permalink Reply
ScottC
but look for an h1 tag in the header area. In RC1 the header is in a separate file called header depending upon the theme. Look for the H1 tag which has some sort of descriptive name like Sitename or something of that sort in a href tag.
cgcaudle replied on at Permalink Reply
I had the same problem but was unable to locate the header.php page until I saw this post.
Just delete the entire line with <h1>....</h1>
and in the same spot add

<img src="http://LINK">

This will just point to the pic you want instead of adding it the simple way. If you added an image that was overlapping the site name it will be too far down now, just delete it and add the code above.

Either way you're going to have to modify header.php, so just add the image there. Otherwise you will have to modify the header file to make more space so you can add an image in normal edit mode, but I really don't know how to do that. Maybe a <br> or <p>?

Thought that might help a little
element41 replied on at Permalink Reply 1 Attachment
I would rather have that link get an image and place it site wide.