Title

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
glucksnip
Regular
Posts: 5
Joined: Tue Mar 03, 2009 5:35 pm
Location: Le Havre (France)
Contact:

Title

Post 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..
.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Title

Post 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.
=Don=
glucksnip
Regular
Posts: 5
Joined: Tue Mar 03, 2009 5:35 pm
Location: Le Havre (France)
Contact:

Re: Title

Post 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/

.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Title

Post 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.
=Don=
glucksnip
Regular
Posts: 5
Joined: Tue Mar 03, 2009 5:35 pm
Location: Le Havre (France)
Contact:

Re: Title

Post by glucksnip »

YES YES YES !!!! :D :D :D

Thank you Don Chambers !!

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

:D :D

.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Title

Post by Don Chambers »

You're very welcome. :wink:
=Don=
Post Reply