Risposte nei forum create
-
AutorePost
-
tenebra87Partecipante
Direi di si, anche se tenere una larghezza fissa (in questo caso 81px) non sarebbe proprio il massimo perché il menù appare in proporzioni diverse a seconda della dimensione dello schermo, bisognerebbe quindi sistemare il codice CSS modificando le larghezze in modo relativo (con il % per intenderci).
Non riesco a sistemarlo con le % perchè se lo sostituisco a 81px mi sballa tutto (il menù mi va su due righe). Come mai?
Grazie mille
tenebra87PartecipantePer allargare il sub-menu e farlo grande come il menù principale devi andare a modificare (come sempre) lo stile CSS del tema in style.css in questa maniera:
1) Aumenti il width del sub menu:
#header #mainmenu ul li ul (riga 55)
porti a 242 px il width (
width: 242px;
)
2) Allarghi la larghezza del "link" nel sub-menu (aumentando lo stesso valore che ti avevo scritto sopra):
#header #mainmenu ul li ul li a (riga 80)
porti al 92% il width (width: 92%;)
3) Infine sposti il sub menù più a destra in modo che non si sovrapponga
#header #mainmenu ul li ul li ul (riga 68)
aumenti il left a 242 px (left: 242px;)
Apportando queste modifiche avrai i sub-menu grandi come il menu principale, modifica quindi come ti ho scritto qua e poi vediamo il risultatoOttimo, perfetto!!! Grandissimo!!!
Grazie mille!!
Il codice che ho scritto io invece per il menùm principale è corretto?
#header #mainmenu ul li a {
padding: 0 81px;
display: block;
color: #fff;
font-size: 16px;
font-family: Arial, Sans-serif;
font-weight: bold;
line-height: 48px;
color: #00bd63;
float: left;
width: 81px;
}tenebra87PartecipanteCiao, per sistemare il sotto-menù servizi ti basta modificare il CSS, precisamente:
#header #mainmenu ul li ul li a
Alla riga 81 dello style.css aggiungendo la seguente riga:
width: 89%;
Ottimo!! Grazie!
Se volessi tenere la stessa larghezza del menù principale anche nei sotto menù?
Il codice che ho fatto per allargare il menù è corretto? Io ho fatto cosà¬:
#header #mainmenu ul li a {
padding: 0 81px;
display: block;
color: #fff;
font-size: 16px;
font-family: Arial, Sans-serif;
font-weight: bold;
line-height: 48px;
color: #00bd63;
float: left;
width: 81px;
}Grazie mille
tenebra87PartecipanteCiao a tutti,
sto usando per un sito WordPress 3.9.1 con il tema Simple Catch (child) e questo è l’indirizzo: http://tenebra87.altervista.org
Il menù contiene 4 voci e occupano metà dello spazio della barra menù. Come si fa a cambiare la dimensione delle 4 celle in modo da porter occupare tutto lo spazio della barra?
Grazie mille
Luca
ho fatto una bozza di come dovrebbe venire… l’unica cosa che sballa è il sotto-menù dei servizi
tenebra87PartecipanteLink al tema free?
Gli unici temi free di woothemes sono:
Mystile
Artificer
Wootique
The Morning After
Bueno
purtroppo non lo sapevo. Grazie per il supporto.
Buona domenica!
tenebra87PartecipanteScusa. Io comunque chiedevo informazioni sul tema free.
tenebra87PartecipanteHo scaricato il tuo tema, e non sono quelli i file da cambiare, ma il simplecatch_functions.php.
Prima devi creare un file functions.php, che poi inserirai nel tuo child theme.
In questo tuo functions.php devi copiare tutta la funzione simplecatch_loop() prendendola da /wp-content/themes/simple-catch/functions/simplecatch_functions.php e la modifichi come detto sopra, cioè cambiando quella riga cosà¬:
<h2 class=”entry-title”><?php the_title(); ?></h2>
Wow Grazie mille Titti!! Ti ringrazio tantissimo!! come hai fatto a capire che era quello il file?
Grazie ancora!!
tenebra87PartecipanteLi hai tolti dal posto (=file) sbagliato evidentemente, come dicevo devi prima individuare da dove lo vuoi togliere.
Magari se lo dicessi ti potremmo dare una mano.
l’ho tolto sia dal file content.php che da page-blog.php dove è presente il tag < a href> < /a> che racchiude the_title.
Grazie
tenebra87PartecipanteOltre a leggere quel link che ti ho già dato, ti farebbe bene leggere anche la base della base dell’HTML, il collegamento ipertestuale.
Le altre cose non so come ti siano venute in mente, ma sono sbagliate e non è quello che ti ho detto di fare.
Al limite, se proprio non sai cosa togliere, copia incolla su pastebin il pezzo di codice del file che vorresti cambiare e metti qui il link, invece che fare cose che non c’entrano niente.
Già sapere quale pagina > quale file vorresti cambiare sarebbe qualcosa.
io ho fatto come avevi detto te di togliere il tag < a href> < /a> che racchiude the_title ma non è cambiato nulla e il titolo rimaneva sempre con il collegamento. Dopo guardo questi collegamenti che mi hai dato e vedo se riesco a risolvere il problema
tenebra87PartecipanteAh OK… ma che non sia cliccabile e non rimandi alla stessa pagina, avevi dimenticato un “non”.
Per togliere la cliccabilità devi eliminare il tag < a href> < /a> che racchiude the_title.
Ad es., se stai parlando di pagine nel file troverai più o meno
< a href="<?php the_permalink()" /> <?php the_title()?> < /a>
Dovrai prima creare un child theme per non perdere le modifiche quando aggiornerai il tema.
Leggi qui per imparare a lavorare con i temi.
ho provato come dici te ma non cambia nulla. Ho provato a mettere
h2 {display: none;}
e a inserire a mano i titoli (dando formattazione titolo1) ma facendo cosଠperò mi sparisce la descrizione del sito. Come mai?
Grazie
-
AutorePost