Page 1 of 1

Title

Posted: Tue Mar 03, 2009 5:40 pm
by glucksnip
Bonjour a tous,

Je ne sais pas si il y a des français par ici ?
voila mon petit soucis :
je voudrais enlever le nom de mon article qui s'affiche sur ma bannière.

Merci d'avance

Traduction Google:

how to remove the name of the article in my banner ?

Thanks !

Sorry for my english i'm french..
.

Re: Title

Posted: Tue Mar 03, 2009 6:07 pm
by Don Chambers
Can you provide a URL to your site?

You can either modify the template code so the title is not emitted at all, or you can use css to visually hide it.

Re: Title

Posted: Tue Mar 03, 2009 6:34 pm
by glucksnip
Don Chambers wrote:Can you provide a URL to your site?

You can either modify the template code so the title is not emitted at all, or you can use css to visually hide it.
Oups My site : http://atoutalor.fr/

.

Re: Title

Posted: Tue Mar 03, 2009 7:08 pm
by Don Chambers
The <h1> title is actually valuable for search engines, so rather than remove it, or make it completely invisible, one trick is to position it well outside the viewport.

In your template folder should be a file named style.css. Look for this code:

Code: Select all

a.homelink1,
a.homelink1:hover,
a.homelink1:link,
a.homelink1:visited,
#serendipity_banner h1 {
    color: #731932;
    font-size: 40px;
    font-weight: bold;
    padding-top: 45px;
    padding-left: 60px;
    margin: 0px;
    text-decoration: none;
}
a.homelink2,
a.homelink2:hover,
a.homelink2:link,
a.homelink2:visited,
#serendipity_banner h2 {
    color: #506070;
    font-size: 18px;
    font-weight: bold;
    padding-left: 65px;
    margin: 0px;
    text-decoration: none;
}
Shift those heading elements far to the left so they are not seen, but are still emitted:

a.homelink1,
a.homelink1:hover,
a.homelink1:link,
a.homelink1:visited,
#serendipity_banner h1 {
color: #731932;
font-size: 40px;
font-weight: bold;
padding-top: 45px;
padding-left: 60px;
margin: 0px;
text-decoration: none;
margin-left:-5000em;

}
a.homelink2,
a.homelink2:hover,
a.homelink2:link,
a.homelink2:visited,
#serendipity_banner h2 {
color: #506070;
font-size: 18px;
font-weight: bold;
padding-left: 65px;
margin: 0px;
text-decoration: none;
margin-left: -5000em;
}

Because of this technique, you can now also provide a blog name and blog description in serendipity's general configuration, which will be a good idea as they create various page <title> elements, which is also important to search engines.

Re: Title

Posted: Tue Mar 03, 2009 7:45 pm
by glucksnip
YES YES YES !!!! :D :D :D

Thank you Don Chambers !!

For you : http://www.samokrutka.ru/flash/index.html

:D :D

.

Re: Title

Posted: Tue Mar 03, 2009 8:44 pm
by Don Chambers
You're very welcome. :wink: