Home › Forum › Plugin e temi di WP › Personalizzare disposizione news
-
AutorePost
-
-
24 Luglio 2015 alle 14:04 #29892ricmanPartecipante
WordPress 4.2.2 con il tema Twenty Thirteen.
Ho cercato un po’ con google ma non ho trovato nulla…
Vorrei impaginare gli articoli delle news in stile “affiancati due alla volta” anzichè col metodo standard uno sotto l’altro.
Alcuni temi lo fanno di default, ma quei temi non fanno al caso mio.
E’ cosa possibile e semplice?
Grazie…
-
24 Luglio 2015 alle 18:15 #118350
-
24 Luglio 2015 alle 20:14 #118353ricmanPartecipante
Ottimo. Quello che cercavo!!
L’operazione non è immediata ma se ne vale la pena seguo il tutorial.
Grazie mille
-
24 Luglio 2015 alle 20:54 #118355elmaniseroPartecipante
Lo stesso sito del tutorial usa quell’impostazione oltre ad un portfolio ben fatto.
-
26 Luglio 2015 alle 13:54 #118364ricmanPartecipante
Lo stesso sito del tutorial usa quell’impostazione oltre ad un portfolio ben fatto.
Posso chiederti se tu lo hai provato?
Volevo modificare il More Link (continua a leggere) ma non ci sto riuscendo…
Se guardi il suo codice pare che lui lo metta in questo modo:
// Add read more to custom pages
if ( ! function_exists( 'mywp_new_excerpt_more' ) ) {
function mywp_new_excerpt_more( $more ) {
return '< a href="'. get_permalink( get_the_ID() ) . '">' . __('Read More', 'twentythirteen') . '< / a>';
}
add_filter( 'excerpt_more', 'mywp_new_excerpt_more' );
}
Ma non riesco a modificarlo…
Ho provato a fare cosଠma non va…
return '< a href="'. get_permalink( get_the_ID() ) . '">Continua ...'< / a>;
-
26 Luglio 2015 alle 16:31 #118365elmaniseroPartecipante
Non l’ho provato ma se non viene tradotto modifica la scritta Read More come dice il tutorial
So, now we are more or less finished, we need to add two more functions inside functions.php file, first one is to limit excerpt size. In this case 32 is a number of words that will be shown, so you can change it to fit your needs. Second one will show custom read more text instead of […]. In this case ‘Read More’. Change it to your own read more text.
return ‘< a href=”‘. get_permalink( get_the_ID() ) . ‘”>’ . __(‘Continua a leggere’, ‘twentythirteen’) . ‘< / a>’;
P.S.
Questa era una schiocchezza, ma se non riesci a capire o a mettere in pratica il tutorial o chiedi direttamente al suo autore o rinuncia, non facciamo supporto a tutorial altrui, ma solo a wordpress, a plugins e a temi che conosciamo.
-
27 Luglio 2015 alle 11:24 #118372ricmanPartecipante
Non l’ho provato ma se non viene tradotto modifica la scritta Read More come dice il tutorial
So, now we are more or less finished, we need to add two more functions inside functions.php file, first one is to limit excerpt size. In this case 32 is a number of words that will be shown, so you can change it to fit your needs. Second one will show custom read more text instead of […]. In this case ‘Read More’. Change it to your own read more text.
return ‘< a href=”‘. get_permalink( get_the_ID() ) . ‘”>’ . __(‘Continua a leggere’, ‘twentythirteen’) . ‘< / a>’;
P.S.
Questa era una schiocchezza, ma se non riesci a capire o a mettere in pratica il tutorial o chiedi direttamente al suo autore o rinuncia, non facciamo supporto a tutorial altrui, ma solo a wordpress, a plugins e a temi che conosciamo.
Si, avevo letto… E avevo tratto anch’io le tue stesse conclusioni. Solo che non funziona.. E’ come se non utilizzasse quella parte di codice (la funzione che propone lui per il readmore e pure tutto ciò che ha scritto sotto).
Vabbè… Capisco ciò che dici sull’aiuto… Fa nulla… vedrò con calma cosa ci tiro fuori…
Avevo chiesto perchè magari se qualcuno ci era già passato sapeva un suggeriemtno al volo.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.