Home › Forum › Plugin e temi di WP › eliminare scroll bar laterale
-
AutorePost
-
-
12 Luglio 2016 alle 8:08 #30954est10Partecipante
Salve ragazzi!
Ho un problema apparentemente semplice che sembra avere solo una unica soluzione letta sui vari forum mondiali, ma che invece non sono riuscito a far funzionare.
Problema: in questo sito che sto realizzando con wordpress 4.5 compare una seconda barra di scroll verticale destra: http://websiteuk.altervista.org/grbass/wordpress/
E’ stato usato il child del tema gratuito SiteOrigin Lite, ma e’ stato completamente personalizzato e quindi non usato nello standard proposto.
Cio’ avviene normalmente perche’ chiaramente il body ha una lunghezza superiore alla lunghezza della pagina.
Bene, quindi per non far generare dai vari browser la seconda barra interna, ma lasciare che soltanto quella esterna del browser venga generata, il comando suggerito da tutti e’ overflow: hidden.
In questo modo come ben sapete tutto cio’ che va oltre i limiti della pagina viene nascosto e quindi non genera la seconda barra interna.
Purtroppo ho provato in mille modi ad inserirlo sia nel body, sia nel css, ma niente, il comando overflow non funziona.
Come fare?
Forse che il tema gratuito SiteOrigin Lite blocca la modifica in questione?
Altra soluzione alternativa?
Dove e come inserirla?
Grazie anticipatamente a chi mi vorra’ aiutare.
-
12 Luglio 2016 alle 9:41 #120681TittiModeratore
tema gratuito SiteOrigin Lite
Il tema che citi non esiste, o almeno io non l’ho trovato e non sta a noi setacciare il web, sei tu a dover fornire il nome del tema esatto che stai usando, ma soprattutto il link diretto alla pagina del tema in modo da poterlo individuare correttamente.
A me risulta che quel sito sta usando Zerif Lite – neppure aggiornato – e l’originale di quel tema non presenta quel problema, quindi non ti rimane che aggiornare il tema e ripartire da capo con il child annullando tutte le tue modifiche o quelle che hanno creato il problema.
Spostato in > Plugin e temi di WP
-
12 Luglio 2016 alle 9:55 #120682est10Partecipante
Ciao e grazie della risposta.
Si scusa, il tema originale e’ appunto Zerif Lite, non siteorigin mi ero sbagliato.
E’ chiaro che ho fatto delle modifiche e in quelle modifiche c’e’ qualcosa che appunto ha fatto generare la seconda barra.
Dove e’ l’errore?
E’ proprio questo che sto chiedendo, chiaramente senza ripartire a costruire il sito da zero come suggerisci tu…
-
12 Luglio 2016 alle 10:36 #120683TittiModeratore
Non ho suggerito di “costruire il sito da zero”, ma di far debug con il tuo child-theme, perché al 99,0% è una modifica che hai fatto tu.
Come detto, prima devi aggiornare il tema originale. A cosa serve un child theme se poi non si aggiorna?
Una volta aggiornato, se il problema c’è ancora significa che è nel child-theme.
Nel CSS hai un overflow-x: hidden; e invece dev’essere overflow: hidden;
La prossima volta che fai delle modifiche, devi sapere cosa fai e testarle prima di renderle effettive.
-
12 Luglio 2016 alle 12:18 #120684est10Partecipante
Titti ti ringrazio,
ma anche togliendo la -x al rigo 107 del css del theme, niente cambia.
La barra rimane.
Che fare?
-
12 Luglio 2016 alle 13:32 #120685TittiModeratore
Continui a fare come ti pare, quindi perché chiedi? Non hai ancora aggiornato il tema originale, e body {overflow: hidden;} non l’hai messo.
-
12 Luglio 2016 alle 19:29 #120688est10Partecipante
Allora:
1) non voglio aggiornare il theme perche’ ho effettuato diverse modifiche nei colori/dimensioni dei menu e del footer dentro il file “stylesheet” che andrei a perdere.
Il problema non e’ nell’aggiornamento. So benissimo che il theme funziona (anche quello precedente) e so anche che involontariamente io ho generato l’apparizione della seconda barra.
Non riesco pero’ a capire cosa ho fatto per crearla involontariamente. per questo ho chiesto aiuto a voi esperti.
2) Avevo gia’ inserito il “body {overflow: hidden;}” alla riga 107 del “stylesheet” relativo al Zerif Lite Parents, ma niente cambia.
3) Ora ho inserito anche come mi hai detto tu il comando “overflow: hidden;” alla riga 27 del ctc-style.css relativo al Zerif Lite Child, ma niente cambia ugualmente.
Non te la prendere se non sono un esperto in materia, so di essere un principiante e cerco umilmente di risolvere imparando dai mie errori.
Non penso sia corretto che tu mi aggredisca in questo modo.
Quindi, se hai la soluzione potresti gentilmente dirmi quale sia e dove inserla?
Grazie.
-
13 Luglio 2016 alle 12:35 #120692elmaniseroPartecipante
Se vuoi risolvere i tuoi errori devi imparare che I TEMI, COME WORDPRESS, VANNO SEMPRE AGGIORNATI e la soluzione è quella di usare un tema intonso e fare le modifiche solo sul child theme, quindi devi mettere quelle che hai fatto sul css del tema originale nel child theme.
Se non te le ricordi usa uno di questi tool online
Ovviamente devi confrontare il file con quello della stessa versione del tema che stai usando.
P.S.
Non ti si legge nel pensiero e se usi un child theme si da per scontato che non avrai toccato il tema originale come invece dici di aver fatto nel tuo ultimo post.
Impara a dire tutto subito cosଠeviterai di far perdere del tempo a chi vorrebbe aiutarti e di sentirti aggredito.
-
13 Luglio 2016 alle 17:03 #120694TittiModeratore
1) I temi originali non si modificano mai direttamente, si usa il child theme, quello è il suo scopo. Leggi nel web a cosa servono – ovviamente usandolo immaginavo lo sapessi.
2) Non ti si può aiutare su un tema originale modificato.
3) Il tema (come i plugin e WP stesso) lo devi aggiornare, esattamente come gli altri software.
4) Non fai ciò che ti si dice per risolvere il tuo problema, che non è tanto una riga da aggiungere, ma la correzione di una procedura sbagliata.
5) La soluzione te l’ho già detta all’inizio. body {overflow: hidden;} (nel foglio stile del child theme, non alla riga 107 del genitore!) dovrebbe funzionare. Se non lo fa, o sbagli qualcosa (e ribadisco che attualmente non c’è) oppure, come dicevo all’inizio, devi fare le cose fatte bene ripartendo da capo con il child-theme. Infatti non dovresti aver bisogno di aggiungere quella cosa.
Per me finisce qui.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.