Home › Forum › Problemi Vari con WP › Ricerca interna senza link
-
AutorePost
-
-
26 Maggio 2012 alle 16:33 #21761VeliternaPartecipante
Ciao a tutti
Nel sito
http://veliternatuteladelcane.it/
la ricerca interna è il semplice widget di WP
ma i risultati che mostra non hanno titolo e quindi neanche il link alla pagina, rendendo la ricerca totalmente inutile ! (provate a digitare la parola “cuccioli”)
Come posso fare apparire il titolo del post ? Oppure esiste un plugin con cui sostituire questo widget ?
Grazie !!!
-
26 Maggio 2012 alle 20:35 #95825EmmePartecipante
E’ sufficiente aggiungere un permalink nel template di ricerca (search.php, per intenderci). Sta a te decidere se metterlo come titolo o come “Continua a leggere” o come qualunque altra cosa.
-
26 Maggio 2012 alle 22:12 #95827VeliternaPartecipante
non so come fare…
ho il file searchfrom.php ma non so ne’ cosa metterci ne’ dove….
non so neanche legerlo, faccio copia e incolla con prove …..ma in questo caso non riesco a trovare nessuna Stringa ( si dice cosi’? ) che mi sembri adeguata, sto cercando nel web da ore………….(((
questo il php mi aiuti per favore ?
<?php $search_text = empty($_GET) ? “Search” : get_search_query(); ?>
<div id=”search”>
<form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>
<input type=”text” value=”<?php echo $search_text; ?>”
name=”s” id=”s” onblur=”if (this.value == ”) {this.value = ‘<?php echo $search_text; ?>’;}”
onfocus=”if (this.value == ‘<?php echo $search_text; ?>’) {this.value = ”;}” />
<input type=”image” src=”<?php bloginfo(‘template_url’); ?>/images/search.gif” style=”border:0; vertical-align: top;” />
</form>
</div>
-
26 Maggio 2012 alle 22:23 #95830TittiModeratore
Non searchform.php ma search.php
-
27 Maggio 2012 alle 7:56 #95837VeliternaPartecipante
scusa non lo trovavo !!!
Ho i permalink impostati come NOME ARTICOLO
qui ho postato il codice
-
27 Maggio 2012 alle 8:21 #95838
-
27 Maggio 2012 alle 8:31 #95839VeliternaPartecipante
-
28 Maggio 2012 alle 12:37 #95867TittiModeratore
Prova cosà¬
Via FTP fai prima una copia di sicurezza del file originale in locale
-
28 Maggio 2012 alle 13:06 #95870VeliternaPartecipante
un GRAZIE enorme, FUNZIONA !!!!
per noi è indispensabile che la ricerca funzioni bene, grazie grazie !
appena finisco di inserire qualche altra decina di ….articoli, mi metto a studiare sto benedetto linguaggio php…cosi’ poi riesco a risolvere pure il problema scritta ARCHIVE FOR::: troppo grande e ingombrante…
speriamo che non sono troppo vecchia per capirci qualcosa….))))
-
28 Maggio 2012 alle 13:33 #95874TittiModeratore
Quello è CSS, basta che aggiungi la proprietà font-size e il valore che vuoi a .pagetitle
.pagetitle {
font-family: Arial,Verdana;
line-height: 22px;
margin-bottom: 20px;
text-decoration: underline;
font-size: 16px;
}
Ovviamente cosଠfacendo cambierà il font size a tutti i titoli di pagina, se vuoi cambiare solo in un punto devi fare una nuova classe
-
28 Maggio 2012 alle 14:09 #95877VeliternaPartecipante
si devo per forza fare una class perchè altrimenti mi varia pure il vero titolo del post e non va bene…
avevo mandato altro post con questo problema ma siccome non so neanche di che parliamo ci devo proprio studiare sopra…
non capisco pero’ se dipende solo dal css, perchè la scritta archive for è nera mentre il vero titolo del post è blu come l’ho impostato io….se nel css è la stessa class non dovrebbe avere lo stesso colore ?
diciamo che il sito funziona, si tratta solo di una questione estetica che posso sistemare con calma….e quando ci riesco….
-
28 Maggio 2012 alle 14:26 #95881TittiModeratore
No non ti varia il titolo del post ti varia solo il titolo della pagina cioè archive for ecc., sono due cose diverse, se ti dico che ti cambiano solo i titoli di pagina perché non mi credi e dici che ti cambia anche il titolo del post, senza poi avere provato? Installa Firebug e te ne renderai conto da sola allora
Il CSS è tutto ciò che riguarda la grafica, e si trova nel foglio stile
Se vuoi cambiare il colore del titolo pagina aggiungi (sempre là ) color: #25779C; (è lo stesso colore dello sfondo)
Se non lo vuoi sottolineato togli text-decoration: underline;… e cosଠvia
-
28 Maggio 2012 alle 16:00 #95886VeliternaPartecipante
scusa non intendevo contraddirti, avevo postato su questo tema e Wolly mi aveva risposto che dovevo creare una nuova classe…..cosa che ovviamente non sono capace di fare !!!
Ho fatto come mi hai detto tu e funziona perfettamente, ti ringrazio….!!!
-
28 Maggio 2012 alle 16:49 #95888TittiModeratore
Prego. Wolly ti aveva detto che avresti modificato tutti i page title, cioè tutti i titoli pagina, non i titoli dei post. La nuova classe è se volevi modificare solo quel titolo pagina.
-
28 Maggio 2012 alle 20:05 #95900VeliternaPartecipante
hai ragione, pian piano sto imparando le definizioni giuste, mica avevo capito bene !!!!
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.