Home › Forum › Problemi Vari con WP › nextgengallery slideshow problemi
-
AutorePost
-
-
30 Gennaio 2013 alle 11:00 #23668Ice273Partecipante
Ciao,
ennesimo problema:
ho installato nel sito seguente http://www.sisthemaconsulting.it/portfolio/?pid=36 , una slideshow [nggallery id=5 template=galleryview images=10] con il plug in NEXTGENGALLERY appunto.
Apparentemente funzionerebbe tutto ma è impossibile modificare l’allineamento centrale (rispetto al centro della pagina) e modificare la dimensione del box.
Ho provato a inserire nella stringa html width e hight nonché center ma non cambia niente.
Sapreste aiutarmi.
Nelle opzioni generali di nextgen è possibile cambiare la dimensione dello slideshow ma non del template che uso io.
Grazie
-
30 Gennaio 2013 alle 14:38 #100861TittiModeratore
Le modifiche grafiche si fanno nel CSS, non nell’HTML. Poi, potevi anche dirlo subito che usi un plugin di terze parti, questo, quindi non è lo slideshow di Nextgen in flash ma di quell’altro addon
In quella pagina c’è scritto come apportare modifiche
Advanced Usage:
Create a folder called “nggallery” within your WordPress theme.
Copy “gallery-galleryview.php” from the “view” folder of the plugin and place it within the nggallery folder you created.
Now modify the template and galleryview javascript to meet your needs
Il che significa che se vuoi modificare le misure e la centratura devi agire direttamente sul codice js di quel file, ed eventualmente il CSS
C’è scritto anche di fare una copia di quel file per modificarlo nel tuo child theme, cosଠnon lo perderai con l’aggiornamento del plugin
-
30 Gennaio 2013 alle 14:53 #100863Ice273Partecipante
Ciao Titti,
eh…non te l’ho detto perché non lo sapevo o meglio… non ho assolutamente idea di che cosa sia questa differenza.
Comunque grazie mille… adesso provo a vedere se, seguendo i tuoi consigli riesco a modificarlo.
Grazie ancora, buona giornata!
-
30 Gennaio 2013 alle 15:44 #100866Ice273Partecipante
Ciao Titti,
come al solito seguendo le tue indicazioni sono riuscito…. ho solo un prob:
ora che ho il mio file galleria-galleryview.php nella cartella del mio tema child, non riesco a modificare la centratura. Come devo fare? Per le dimensioni ho provato a modificare i px e funziona ma se aggiungo a “align: center” all’interno del tema (sotto la larghezza e l’altezza) non cambia e nemmeno se modifico i margini.
Sapresti dirmi che stringa inserire e dove?
Grazie mille
-
30 Gennaio 2013 alle 16:31 #100867elmaniseroPartecipante
E’ una vita che non uso più quel plugin e non posso fare delle prove ma se inserisci il codice in questo modo
<div style=”text-align:center”>
<div style=”margin:auto”>[nggallery id=5 template=galleryview images=10]
</div></div>
cosa succede?
-
30 Gennaio 2013 alle 17:21 #100872TittiModeratore
Aggiungi margin: auto; alla classe .gv_galleryWrap del plugin.
L’ideale è importare la modifica nel foglio stile del tuo child theme.
-
31 Gennaio 2013 alle 16:00 #100909Ice273Partecipante
Ciao ragazzi….
scusate la mia imbranataggine ma, nonostante mille tentativi non ci sono riuscito.
Vi spiego quello che ho fatto cercando di seguire i vostri consigli:
1)ho creato, tramite cpanel, in “public_html/wp-content/themes/twentyelevenchild”, una nuova cartella chiamata “nggallery”.
2)sono andato in “public_html/wp-content/plugins/nextgen-galleryview2/view” ed ho copiato il file:”gallery-galleryview.php” che ho poi inserito nella cartella che avevo creato al passo 1.
3) entrando nell’editor del file ho provato ad inserire quello che mi avete detto voi…. ma nn cambia niente.
Ho sbagliato dei passaggi?
Provo a incollarvi di sotto l’editor “gallery-galleryview.php”, con la speranza che sappiate aiutarmi. Grazie mille ancora!!!
[Codice moderato]
-
31 Gennaio 2013 alle 16:40 #100920TittiModeratore
I codici che ti abbiamo dato sono due diversi e vanno in due posti diversi per provare a fare la centratura, NON vanno nel file php e ne basta uno, quello che funziona.
Quello di elmanisero è da provare nella pagina editor dove hai la galleria, racchiudendo come vedi lo shortcode tra il div style, devi provarlo per vedere se funziona.
SE non funziona, o se preferisci fare la modifica nel CSS cosଠce l’hai per tutte le eventuali altre gallerie, prova quello che ti ho dato io, che va nel CSS… cerchi, anzi scrivi visto che va nel tuo foglio, la classe .gv_galleryWrap e, tra le parentesi graffe inserisci – margin: auto;, cosà¬:
.gv_galleryWrap {
margin: auto;
}
Per quanto riguarda quel file php, io ti ho detto di modificarlo perché tu all’inizio dicevi di voler cambiare anche le dimensioni.
La procedura di copia nel tuo child theme va bene, ora se vuoi modificare le dimensioni del pannello, là dove vedi
panel_width: 620, //INT – width of gallery panel (in pixels)
panel_height: 300, //INT – height of gallery panel (in pixels)
cambi le dimensioni.
Ovviamente usando il file che hai copiato nel child e lasciando stare l’originale.
EDIT: Come dicevo anche la modifica al CSS la fai nel foglio stile del child. Probabilmente dovrai importare il percorso del foglio stile del plugin.
-
1 Febbraio 2013 alle 9:50 #100933Ice273Partecipante
Ciao Titti,
ti ringrazio molto per le dritte però non ci sono ancora riuscito… SORRY!
Allora ho apportato, come hai scritto tu le modifiche al foglio stile CSS del child… ma ora il risultato è che non si vede più niente, forse perché, come dicevi tu devo importare il percorso del foglio stile del plugin, ma non so come farlo.
Per precisare io ho fatto cosà¬:
1) ho aggiunto
.gv_galleryWrap {
margin: auto;
}
nel foglio, per l’esattezza prima di
panel_width: 620, //INT – width of gallery panel (in pixels)
panel_height: 300, //INT – height of gallery panel (in pixels)
2) ho cambiato i 630 e 300 con (1000 e 550)
3) salvato e ricaricato la pag.
ora non si vede più niente!! Qualche idea?
Grazie mille
-
1 Febbraio 2013 alle 11:31 #100937TittiModeratore
Mi piacerebbe sapere come mai hai panel_width: 620, //INT – width of gallery panel (in pixels) panel_height: 300, //INT – height of gallery panel (in pixels) nel foglio stile (il file che ha l’estensione .css), e come fai a non conoscere qual è il foglio stile (.css) dato che dici di avere un child theme.
Per la terza volta: .gv_galleryWrap {margin: auto;} non va nel file gallery-galleryview.php, ma va nel file .css, il foglio stile che hai creato per fare il child theme.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.