Home › Forum › Problemi Vari con WP › Problema immagine nell’intestazione
-
AutorePost
-
-
3 Novembre 2010 alle 15:18 #15481IlSolistaPartecipante
Ciao a tutti. Ho aperto da pochi giorni un blog sfruttando la piattaforma WordPress, utilizzando un template da me creato con Artisteer. Nell’header ho piazzato un grande logo, che – nonostante la presenza di un pulsante “Home”, a mio avviso scomodo – ho voluto rendere cliccabile, come hyperlink verso la home page. Per fare questo ho cambiato
<div class=”art-header”>
<div class=”art-header-png”></div>
<div class=”art-header-jpeg”></div>
in
<div class=”art-Header”onclick=”location.href=’http://ilsolista.comuv.com/’;” style=”cursor: pointer;”>
<div class=”art-header-png”></div>
<div class=”art-Header-jpeg”></div>
Tuttavia, sebbene adesso il logo dalla home risulti cliccabile e funzionante, quando apro una pagina diversa all’interno del blog (un post, una categoria etc.) l’immagine scompare del tutto. Sapete aiutarmi?
-
3 Novembre 2010 alle 15:26 #78211marko80wpPartecipante
Probabilmente dipende da com’e’ uinclusa l’immagine…. e magari da qualche configurazione php
comunque, se l’immagine per esempio sta nel css tipo background: url(images/bg.jpg)…. navigando fra le pagine, se ti trovi ad un livello differente occorrebbe magari url(../images/bg.jpg).
Fai delle prove, se mai metti il percorso completo per l’immagine url(http://……./images/bg.jpg)
Fai delle prove
ps il pulsante Home si puo levare volendo in header.php , sulla documentazione trovi come.
-
3 Novembre 2010 alle 18:35 #78230IlSolistaPartecipante
Grazie per l’aiuto. Sul foglio di stile ho trovato questo:
background-image: url(images/spacer.gif);
padding: 10px 30px 30px 30px;
margin: -10px 0 0 -30px;
Non sono molto pratico, chiedo scusa: c’entra qualcosa? Se sà¬, cosa dovrei cambiare?
Grazie ancora, e scusa ancora per il disturbo e l’incompetenza
-
5 Novembre 2010 alle 9:18 #78293marko80wpPartecipante
ciao, il blocco di css ha
background-image: url(images/spacer.gif);
padding: 10px 30px 30px 30px;
margin: -10px 0 0 -30px;
dove url(….. e’ il percorso che include l’immagine di sfondo
il padding e’ la distanza dei 4 lati (sopra sotto e i lati) che si vuole dare dal bordo verso il contenuto interno
il margin la distanza dell elemento rispetto quello che sta attorno.
Puoi provare a modificare con
background-image: url(../images/spacer.gif);
Ti faccio un esempio, non conoscendo la struttura delle tue cartelle prova a mettere
background-image: url(http://ulr_tuo_sito/images/spacer.gif); e vedi se funziona intanto, se va vuol dire che il motivo e’ quello
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.