Community « Le forum « Web design « remplacer le title par une image «
Comment: remplacer le title par une image
| << Previous | Next >> |
Bonjour Fernand,
Je ne vois pas de problème apparent dans le code de Gnapz..
Néanmoins, Je te propose une solution alternative (basée sur le skin skeleton de la 7.3).
Dans le css, ajoute l'image de fond sur le titre :
#header_title { /* appears towards the top of the page -- see template script */
position: absolute;
top: 0;
left: 0;
margin: 0; /* need for IE Mac */
padding: 12px 0 0 20px;
font-size: 1.3em;
font-weight: bold;
color: #5F697E;
background: transparent url="tonchemin/tonimage.png" no-repeat;
}
Dans le template.php, si tu ne veux pas que le titre apparaisse dans l'image, remplace la ligne :
// the site name -- can be replaced, through CSS, by an image -- access key 1
if($context['site_name'] && is_callable(array('i18n', 's')))
echo '<p id="header_title"><a href="'.$context['url_to_root'].'" title="'.encode_field(i18n::s('Return to front page')).'" accesskey="1">'.$context['site_name'].'</a></p>'."\n";
par :
// the site name -- can be replaced, through CSS, by an image -- access key 1
if($context['site_name'] && is_callable(array('i18n', 's')))
echo '<p id="header_title"><a href="'.$context['url_to_root'].'" title="'.encode_field(i18n::s('Return to front page')).'" accesskey="1"> </a></p>'."\n";
Ca devrait marcher, n'hésites pas à me faire remonter si ce n'est pas le cas.
A+
-----
Tof
This comment has inspired:
by Tof on Apr. 13 2007
