Home › Forum › Plugin e temi di WP › aiuto su modifica tema
-
AutorePost
-
-
12 Maggio 2010 alle 7:02 #13863rafiusPartecipante
Salve a tutti, ho da pochissimi giorni messo in piedi il mio primo blog wordpress su un sito appena registrato.
Ho scelto un tema a 4 colonne, che ho già in buona parte tradotto e adattato alle mie esigenze: capendone qualcosina di html e css, infatti, non è stato un problema modificare il foglio di stile, mentre non so proprio come fare per modificare alcune impostazioni php.
Venendo al caso concreto, il sito è questo: http://blog.studiolegaleorofino.it
Le modifiche che mi piacerebbe apportare sono le seguenti:
1) sotto a ciascun post, accanto alla indicazione ‘commenti’, mi piacerebbe che fosse anche indicato il numero dei commenti inseriti;
2) sotto a ciascun post, dopo l’indicazione dei commenti, mi piacerebbe che fossero anche indicati i tags di quel post;
3) nelle sezioni categorie e archivi, mi piacerebbe che il numero dei post inseriti fosse indicato accanto a ciascuna categoria o archivio, e non nel rigo sottostante com’è invece adesso;
4) nella sezione categorie, vi sono delle righe vuote per ogni rientro (non so come spiegarmi, ma vedendo il blog capirete): preferirei che non ci fossero;
5) nella sezione categorie, preferirei che prima del nome di ciascuna categoria vi fossero i beccucci a mo’ di frecce: »;
6) nelle pagine singole (insomma, quelle cui si accede cliccando su ciascun post), mi pare che ci sia un bug con i tag, perché sotto il form di inserimento commenti è soltanto presente una stringa di codice…
Chi sarebbe cosଠgentile da darmi una mano o, se chiedo troppo, almeno di indicarmi una qualche guida (preferibilmente in italiano) che mi spieghi come fare?
Grazie
-
18 Maggio 2010 alle 10:29 #73634rafiusPartecipante
Sono riuscito a fare tutte le modifiche che volevo: devo dire che tutto sommato apportare modifiche al codice è abbastanza intuitivo anche per chi, come me, ne sa zero di php e poco di inglese
L’unica modifica che non sono ancora riuscito ad apportare è questa:
Le modifiche che mi piacerebbe apportare sono le seguenti:
3) nelle sezioni categorie e archivi, mi piacerebbe che il numero dei post inseriti fosse indicato accanto a ciascuna categoria o archivio, e non nel rigo sottostante com’è invece adesso;
4) nella sezione categorie, vi sono delle righe vuote per ogni rientro (non so come spiegarmi, ma vedendo il blog capirete): preferirei che non ci fossero;
…non c’è davvero nessuno in grado di darmi una mano?
Grazie in ogni caso!
-
18 Maggio 2010 alle 12:02 #73637EmmePartecipante
Per poterti aiutare occorrerebbe visualizzare il tuo css e il codice delle sidebar.
-
18 Maggio 2010 alle 14:20 #73644rafiusPartecipante
Per poterti aiutare occorrerebbe visualizzare il tuo css e il codice delle sidebar.
Questo è il codice della sidebar:
<div id="sidebar-1" class="sidebar">
-
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
-
<h2><?php _e('Archives'); ?></h2>
-
<?php wp_get_archives('type=monthly'); ?>
-
<h2><?php _e('Categories'); ?></h2>
-
<?php wp_list_cats(); ?>
<?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
<?php endif; ?>
</div>
-
<h2><?php _e('Archives'); ?></h2>
-
18 Maggio 2010 alle 14:23 #73645rafiusPartecipante
Per poterti aiutare occorrerebbe visualizzare il tuo css e il codice delle sidebar.
….e queso è il css riferito alla sidebar:
/*********sidebars***************/
.sidebar h2 {
display: inline;
margin: 1.2em 0 0.6em 0;
padding: 0 10px 0 0;
color: #330000;
background: url(imagenes_qwilm/arrow.gif) no-repeat center right;
font-size: 1.1em;
}
.sidebar ul {
margin: 0;
padding: 0;
list-style-type: none;
}
.sidebar ul ul {
margin: 1.0em 0 1.5em 0;
border-top: 1px solid #dee4da;
}
.sidebar ul ul li {
padding: 0 0 0 10px;
border-bottom: 1px solid #dee4da;
}
.sidebar ul ul li a {
display: block;
margin: 0 0 0 -10px;
padding: 2px 10px 0 10px;
}
.sidebar ul ul li a:hover {
background-color: #f3f3f3;
}
/****************************/
-
18 Maggio 2010 alle 15:09 #73648rafiusPartecipante
Trovato: va levata la stringa display: block; nel css.
-
21 Maggio 2010 alle 13:06 #73697rafiusPartecipante
…ho trovato una soluzione a tutte le domande fatte con questo mio post, ed il blog inizia ad essere proprio come lo volevo: http://blog.studiolegaleorofino.it
Vi va di dirmi cosa ne pensate? Ovviamente non mi riferisco ai contenuti, ma alla struttura… si vede tutto bene col vostro browser? C’è qualcosa che correggereste? Qualche funzione/plugin che sarebbe il caso di inserire?
Ne approfitto per chiedervi un’altra cosa…. come avrete visto, nel blog intendo appuntare alcune massime giurisprudenziali, per cui come data di creazione di ogni post ho preferito mettere quella di pubblicazione del provvedimento.
Questo mi consente di avere le massime stesse (che già , sotto categorie, ho disposto per argomento) ordinate anche per data (visto che, come detto, come data del post metto quella della sentenza).
Stando cosଠle cose, preferirei che gli archivi fossero raggruppati per anno e non per mese com’è invece adesso (e di default).
Ho letto che basterebbe sostituire yearly a monthly nel template wp_get_archives, l’ho fatto ma – non mi spiego perché – non funziona, e continua a vedersi tutto come di default.
Questo il codice che ho nel file sidebar.php
//inizio codice//
-
<?php wp_get_archives(‘type=yearly&format=link’); ?>
//fine codice//
Suggerimenti?
-
21 Maggio 2010 alle 16:24 #73699EmmePartecipante
Nonostante non ami molto i temi a tre colonne, questo mi pare abbastanza fruibile e ordinato. Gli spazi sono ben distribuiti (a parte il bottone del form di ricerca attaccato al campo di testo).
Le icone sociali del singolo articolo sono disposte diversamente rispetto a come appaiono nella index e questo non mi garba molto.
Carina l’idea di variare il colore delle due immagini nelle sidebar rispetto a quella del content, aiuta a rendere tutto più ordinato.
Non mi piace il blu dei link (mi riferisco all’hover), ti conviene optare per un colore meno acceso. Se hai paura che non si noti valuta se aggiungere la sottolineatura al passaggio del mouse. Tra l’altro usi spesso il grasseto, quindi non sarebbe una cattiva idea distinguere i titoli (sia dei post che delle sezioni nelle sidebar) con un colore differente. O forse no, dovresti provare e vedere se la leggibilità migliora o se crea disordine.
Poi non so se sia colpa del mio daltonismo, ma non vedo il cambio di colore nei link dei tag ricorrenti.
Avvicinerei un po’ tra loro gli elementi del form dei commenti o, in alternativa, distanzierei un po’ le scritte (nome, email, sito web) dai rispettivi campi.
Non noto differenze tra i vari browsers. Nel complesso mi pare un buon lavoro.
-
21 Maggio 2010 alle 20:03 #73702rafiusPartecipante
Nonostante non ami molto i temi a tre colonne, questo mi pare abbastanza fruibile e ordinato.
In realtà il tema iniziale – Fjord04 – era addirittura a 4 colonne, e mi piaceva perché dava un’impostazione simile ad un giornale… poi però ho eliminato dal codice la quarta colonna perché effettivamente era troppo confusionario, ed anche perché le sidebar diventavano troppo piccole per il testo…
A proposito: pur non vedendola più a schermo, nel widget continua a venirmi segnalata la presenza della terza sidebar…. dove dovrei metter mani per eliminarla anche da là¬?
Gli spazi sono ben distribuiti (a parte il bottone del form di ricerca attaccato al campo di testo).
Corretto, grazie.
Le icone sociali del singolo articolo sono disposte diversamente rispetto a come appaiono nella index e questo non mi garba molto.
E’ cosଠdi default sul plugin che ho installato – Sociable -, e non mi pare vi sia possibilità di modificare tale impostazione, se non modificando il codice a mano (cosa che mi guardo bene dal fare, non avendone le capacità ).
Non mi piace il blu dei link (mi riferisco all’hover), ti conviene optare per un colore meno acceso.
Fatto, penso anch’io che adesso vada meglio.
Se hai paura che non si noti valuta se aggiungere la sottolineatura al passaggio del mouse.
No, la sottolineatura su hover non mi piace… mi dà di pasticciato…
Tra l’altro usi spesso il grasseto, quindi non sarebbe una cattiva idea distinguere i titoli (sia dei post che delle sezioni nelle sidebar) con un colore differente. O forse no, dovresti provare e vedere se la leggibilità migliora o se crea disordine.
Il titolo dei post è già diverso dal testo standard (grigio antracite i titoli, nero il testo)… più differenza temo creerebbe disordine… e poi va pure considerato che è un sito dedicato ad argomenti “seri”, quindi un taglio un po’ austero ci sta…
Poi non so se sia colpa del mio daltonismo, ma non vedo il cambio di colore nei link dei tag ricorrenti.
No no, è proprio cosà¬.
La nuvoletta dei tags è collegata ad un plugin – Configurable Tag Cloud -, che tra le varie opzioni permette di gradare il colore del carattere dei tags linkati, settando un colore di partenza (io avevo messo un #003366 per i tags meno frequenti) ed uno di arrivo (io avevo messo #000033 per i tags più frequenti)… non mi ero però accorto che, selezionando questa opzione, l’hover al passaggio del mouse va a farsi benedire…
Avvicinerei un po’ tra loro gli elementi del form dei commenti o, in alternativa, distanzierei un po’ le scritte (nome, email, sito web) dai rispettivi campi.
Proverò a fare quanto dici…
Non noto differenze tra i vari browsers. Nel complesso mi pare un buon lavoro.
Bene: grazie dei consigli preziosi!
-
18 Giugno 2010 alle 15:51 #74330paola81Partecipante
salve in questa discussione è stato menzionato un problema che ho anch’io, cambiare l’archivio da mensile ad annuale
ho cambiato
<?php wp_get_archives(‘type=monthly’); ?>
con
<?php wp_get_archives(‘type=yearly’); ?>
ma nn succede nulla….qualcuno puo aiutarmi.grazie
-
18 Giugno 2010 alle 23:19 #74337paola81Partecipante
grazie lo stesso, ho risolto
-
6 Luglio 2010 alle 14:59 #74879rafiusPartecipante
grazie lo stesso, ho risolto
Ciao Paola, saresti cosଠgentile da spiegarmi come?
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.