-
Trasparenza sfondo
Buongiorno a tutti,
ho preparato un sito con il tema wp twenty-fifteen e sono riuscita più o meno a fare quasi tutto quel che volevo. Mi resta un solo problema insoluto, vorrei modificare lo sfondo dei post(bianco)e farlo con una percentuale di trasparenza, in modo da poter vedere lo sfondo della pagina.
Come posso fare? Considerate che sono neofita e quindi necessito di una spiegazione passo-passo (non vorrei buttare all'aria tutto il lavoro svolto fino a qui)!
Grazie mille a chiunque mi sappia aiutare :=):
-
-
Citazione:
Originalmente inviato da
insidemeland
Vedo che hai risolto ;)
No, non ho risolto, avevo trovato la soluzione su un altro tema (suits) ma non riesco a farlo su Twenty-fifteen. Non é un opzione "a portata di mano" su quel tema.
Tu sai come fare?
Grazie comunque per l'input.
-
Di quali posts parli? Perché io a parte le immagini a sfondo bianco vedo solo del testo blu con il background perfettamente visibile.
-
è un altro sito che sto costruendo (non quello che hai visto tu) che non é ancora online e sto usando appunto il tema twenty-fifteen. Volevo risolvere il problema prima di metterlo online, ma non so come fare.
-
Prova così. Da Aspetto - Editor modifica il file CSS editando questa parte di codice.
Codice:
.hentry {
background-color: rgb(255,255,255,0.3);
}
Fammi sapere.
-
Ciao,
Ho provato, ma non é cambiato niente. Grazie comunque
-
Molto strano. Come puoi vedere da questo screen ho fatto la prova a modificare la trasparenza dei posts direttamente dalla pagina di anteprima del tema e funziona. Non capisco perchè a te non vada.. vediamo se qualcun altro può aiutarti.
-
magari ho sbagliato qualcosa io, come ti ho già detto sono neofita. Sono andata su Aspetto - Editor ed ho modificato il tema child (che avevo creato) inserendo la stringa di codice che mi hai dato alla fine.
Ho aggiornato e... non é cambiato niente.
Ho, per caso, dimenticato qualche passaggio? O devo modificare il tema originale?
Grazie per la pazienza
-
No fai benissimo ad utilizzare un child theme, solo che quella porzione di codice devi modificarla e non inserirla.
Prima
Codice:
.hentry {
background-color: #fff;
}
Dopo
Codice:
.hentry {
background-color: rgb(255,255,255,3.0);
}
Figurati, è un piacere aiutare gli altri quando posso.
-
Allora mi sa che ho fatto un gran casino!
volevo postare il print screen del mio child (probabilmente ho sbagliato pure quello), ma non ci riesco.
Si tratta di poche righe, eccole:
/*
Theme Name: Twenty Fifteen Child
Theme URI: https://wordpress.org/themes/twentyfifteen/
Template: twentyfifteen
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Tags: blog,two-columns,left-sidebar,accessibility-ready,custom-background,custom-colors,custom-header,custom-logo,custom-menu,editor-style,featured-images,microformats,post-formats,rtl-language-support,sticky-post,threaded-comments,translation-ready
Version: 1.7.1501613807
Updated: 2017-08-01 20:56:47
*/
Pensavo di aver seguito le istruzioni (da un post online) e fosse giusto ma, evidentemente, non ha funzionato.
Infatti qui non c'é proprio niente che io possa correggere.
Perdona la mia ignoranza e grazie mille ancora
-
Ti chiedo scusa, mi sono confusa io, effettivamente quella porzione di codice va inserita nel file CSS del child theme proprio come hai fatto tu. Da quello che vedo però sembra che ti manchi una riga di codice fondamentale, ovvero @import url
L'hai omessa apposta oppure ti sei dimenticato di inserirla?
-
Io avevo fatto un copia/incolla delle istruzioni e mi sa che ho dimenticato qualcosa.... Mi diresti esattamente dove e cosa inserire per favore?
Grazie ancora per tutto il tempo che mi stai dedicando
-
A volte la cache può creare disagi http://forum.it.altervista.org/wordp...ml#post1358678 (anche se non sarebbe il tuo caso potrebbe esserlo per un altro username)..
-
Di nulla, anzi mi scuso per essermi confusa prima. Comunque se non l'hai ancora fatto devi inserire questa riga di codice subito dopo quello che hai già messo nel file.
Codice:
@import url("../nomeCartellaTemaGenitore/style.css");
Lascia tutto come sta e semplicemente scrivi il nome della cartella del tema genitore al posto di quello che ho scritto io. In teoria dovrebbe venirti fuori una cosa del genere.
Codice:
/*
Theme Name: Twenty Fifteen Child
Theme URI: https://wordpress.org/themes/twentyfifteen/
Template: twentyfifteen
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Tags: blog,two-columns,left-sidebar,accessibility-ready,custom-background,custom-colors,custom-header,custom-logo,custom-menu,editor-style,featured-images,microformats,post-formats,rtl-language-support,sticky-post,threaded-comments,translation-ready
Version: 1.7.1501613807
Updated: 2017-08-01 20:56:47
*/
@import url("../twentyfifteen/style.css");
-
Ho eseguito alla lettera ed ecco il risultato:
/*
Theme Name: Twenty Fifteen Child
Theme URI: https://wordpress.org/themes/twentyfifteen/
Template: twentyfifteen
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Tags: blog,two-columns,left-sidebar,accessibility-ready,custom-background,custom-colors,custom-header,custom-logo,custom-menu,editor-style,featured-images,microformats,post-formats,rtl-language-support,sticky-post,threaded-comments,translation-ready
Version: 1.7.1501613807
Updated: 2017-08-01 20:56:47
*/
@import url: https://wordpress.org/themes/twentyfifteen/style.css;
.hentry {
background-color: rgb(255,255,255,3.0);
}
Però non é cambiato niente :cry: non si vede alcuna trasparenza.....
Cosa posso aver sbagliato?
-
No, devi attenerti al codice che ti ho passato. La riga di codice corretta è la seguente.
Codice:
@import url("../twentyfifteen/style.css");
-
Avevo fatto così e non era cambiato niente, allora ho provato con quella che ti ho postato...
adesso ho rimesso come hai detto tu... é sempre uguale, nessuna trasparenza :cry:
/*
Theme Name: Twenty Fifteen Child
Theme URI: https://wordpress.org/themes/twentyfifteen/
Template: twentyfifteen
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Tags: blog,two-columns,left-sidebar,accessibility-ready,custom-background,custom-colors,custom-header,custom-logo,custom-menu,editor-style,featured-images,microformats,post-formats,rtl-language-support,sticky-post,threaded-comments,translation-ready
Version: 1.7.1501613807
Updated: 2017-08-01 20:56:47
*/
@import url("../twentyfifteen/style.css");
.hentry {
background-color: rgb(255,255,255,3.0);
}
-
Il sito lo stai costruendo in locale vero? In questo caso arrivati a questo punto ti consiglierei di andare su Aspetto - CSS personalizzato e inserire qui la regola di stile.
Codice:
.hentry {
background-color: rgb(255,255,255,3.0);
}
Prova e fammi sapere.
-
si, lo sto costruendo in locale. Ho fatto come mi hai detto, ma non é cambiato niente. Nessuna trasparenza...
Mi sa che lascio perdere e lascio lo sfondo bianco. Grazie mille comunque per tutto l'aiuto che mi hai dato, ho davvero apprezzato, buona giornata :=):
-
Ho mischiato i tuoi consigli con i consigli di un altro forum ed ho finalmente trovato la soluzione, eccola:
.hentry {
background: #255,255,255;
opacity: 0.6;
}
Grazie mille ancora per tutto l'aiuto che mi hai dato
-
Ohh finalmente! Sono contenta dai :)
Di niente, è stato un piacere.