Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come creare una galleria di immagini in WordPress (passo dopo passo)

Nota editoriale: guadagniamo una commissione dai link dei partner su WPBeginner. Le commissioni non influenzano le opinioni o le valutazioni dei nostri redattori. Per saperne di più su Processo editoriale.

Volete creare una galleria di immagini in WordPress?

Una galleria di immagini consente di aggiungere foto in righe e colonne. In questo modo è possibile visualizzare un maggior numero di foto in meno spazio e facilitare la navigazione degli utenti.

In questo articolo vi mostreremo come creare facilmente una galleria di immagini in WordPress che renda le vostre foto ancora più belle.

How to create an image gallery in WordPress

Perché creare una galleria di immagini in WordPress?

Con WordPress è facilissimo aggiungere un’immagine ai post e alle pagine del blog. È sufficiente aggiungere il blocco Immagine e caricare l’immagine.

Tuttavia, se aggiungete più immagini al vostro sito WordPress, tutte le immagini appariranno una dopo l’altra. Non è una bella cosa e gli utenti dovranno scorrere molto per visualizzarle tutte.

Images added with the Image block

Creando una galleria, è possibile visualizzare le immagini in un layout a griglia con colonne e righe. È possibile visualizzare le miniature delle immagini e gli utenti possono fare clic su di esse per vedere l’immagine completa.

In questo modo, potrete mostrare più foto in meno spazio e l’aspetto sarà molto più professionale.

Ad esempio, se state creando un sito web di fotografia per esporre le vostre immagini, l’aggiunta di una galleria fotografica vi permette di mostrare il vostro lavoro in modo esteticamente gradevole.

Image gallery preview

Con WordPress, è possibile creare facilmente una galleria di immagini utilizzando il blocco Galleria nell’editor di blocchi di Gutenberg.

È inoltre possibile utilizzare i plugin per le gallerie di WordPress per creare gallerie ancora migliori con più funzioni.

Detto questo, vediamo come creare facilmente una galleria di immagini in WordPress.

Per questa esercitazione, mostreremo due metodi per creare una galleria; potete usare i link sottostanti per passare al metodo che preferite:

Se volete creare una galleria di immagini utilizzando l’editor di blocchi di WordPress, questo metodo fa al caso vostro. Tuttavia, tenete presente che questa funzione è molto semplice e non ha molte opzioni.

Per prima cosa, è necessario aprire un post/pagina esistente o nuovo in cui si desidera creare la galleria dalla barra laterale dell’amministrazione di WordPress.

Una volta lì, basta fare clic sul pulsante “+” nell’angolo in alto a sinistra dello schermo. Da qui, trovare e aggiungere il blocco Galleria alla pagina o al post.

Una volta fatto ciò, fare clic sul pulsante “Carica” per caricare nuovi file immagine dal computer.

Tuttavia, se si desidera caricare immagini dalla libreria multimediale, è necessario fare clic sul pulsante “Libreria multimediale”.

Upload images for the gallery

Se si fa clic sul pulsante “Carica”, in genere è possibile caricare una foto alla volta dal computer.

Tuttavia, è possibile selezionare e aprire più immagini tenendo premuto il tasto Ctrl sulla tastiera.

Upload images from the computer

Dopo aver caricato tutte le immagini, è possibile aggiungervi delle didascalie facendo clic sull’icona “Aggiungi didascalia” nella barra degli strumenti di blocco in cima alle singole immagini.

È inoltre possibile aggiungere un testo alt alle immagini dal pannello di blocco sulla destra.

Add caption for the uploaded image

Se si seleziona il pulsante “Libreria multimediale”, si potranno scegliere più immagini per la galleria in una sola volta.

Quando si selezionano le immagini, è possibile inserire il testo alt dell’immagine, il titolo e la didascalia nel pannello dei dettagli dell’allegato sul lato destro.

Una volta aggiunte tutte le immagini, è sufficiente fare clic sul pulsante “Crea una nuova galleria”.

Add images for the gallery from the media library

In questo modo si accede alla pagina “Modifica galleria” nel prompt della mediateca.

Da qui è possibile selezionare le singole immagini e aggiungervi una didascalia, un titolo, una descrizione o un testo alt.

Una volta terminato, è sufficiente fare clic sul pulsante “Inserisci galleria” nell’angolo in basso a destra.

Add captions in the Edit gallery page

La galleria di immagini creata sarà ora aggiunta all’editor di WordPress.

È inoltre possibile personalizzarlo ulteriormente selezionando il blocco Galleria e configurandone le impostazioni dal pannello dei blocchi sulla destra.

Ad esempio, si può usare il cursore ‘Colonne’ per decidere il numero di colonne e righe delle gallerie.

È anche possibile attivare l’interruttore “Ritaglia immagine” per ritagliare le miniature per un migliore allineamento.

Configure gallery settings in the block panel

Tra le opzioni di “Collegamento a”, è possibile scegliere Nessuno se si desidera che gli utenti visualizzino solo la foto. Questa opzione disattiva la funzione di clic per le immagini.

Tuttavia, se si seleziona l’opzione “File multimediale”, le immagini saranno cliccabili e il file immagine si aprirà quando si fa clic. Allo stesso modo, la pagina degli allegati si aprirà se si seleziona l’opzione “Pagina degli allegati”.

Una volta soddisfatte le impostazioni, fare clic sul pulsante “Pubblica” o “Aggiorna” in alto per memorizzare le impostazioni.

Infine, potete visitare il vostro blog WordPress per vedere la galleria di immagini in azione.

Image gallery preview

Ora avete creato facilmente una galleria di immagini per il vostro sito web. Tuttavia, noterete subito che manca di alcune caratteristiche essenziali.

Ad esempio, le immagini non saranno cliccabili o si apriranno in una nuova pagina. Se si collegano le immagini della galleria al file multimediale o alla pagina degli allegati, gli utenti dovranno cliccare sul pulsante indietro per visualizzare nuovamente la galleria.

Questo non è facile da usare e può scoraggiare gli utenti dall’esplorare ulteriormente il vostro sito web.

Allo stesso modo, l’aspetto della galleria dipende anche dal tema WordPress utilizzato.

Inoltre, non è possibile organizzare le gallerie in album, argomenti, tag e altro. La galleria non viene memorizzata da nessuna parte e se si desidera aggiungere nuovamente la stessa galleria, è necessario ricrearla.

Se volete aggiungere al vostro sito delle gallerie di immagini dall’aspetto più professionale, dovete utilizzare il metodo successivo.

Se volete creare una galleria di immagini più funzionale ed esteticamente gradevole per il vostro sito WordPress, questo metodo fa al caso vostro.

Utilizzeremo il plugin Envira Gallery, che è il miglior plugin per gallerie di immagini per WordPress sul mercato.

Envira consente di creare facilmente gallerie di immagini completamente reattive, belle e moderne in WordPress. È velocissimo e dotato di molte funzioni, come un lightbox popup, una facile navigazione delle immagini, un costruttore drag-and-drop e modelli di gallerie professionali.

Innanzitutto, è necessario installare e attivare il plugin Envira Gallery. Per maggiori dettagli, consultate la nostra guida passo passo su come installare un plugin di WordPress.

Dopo l’attivazione, accedere alla pagina Envira Gallery ” Impostazioni dalla dashboard di WordPress per inserire la chiave di licenza.

È possibile ottenere questa chiave dal proprio account sul sito web di Envira Gallery.

Nota: Envira Gallery dispone anche di un plugin gratuito che è possibile utilizzare. Tuttavia, in questo tutorial utilizzeremo la versione pro per sbloccare più funzioni.

Add the Envira Gallery license key

Dopo aver verificato la chiave di licenza, si può accedere alla pagina Envira Gallery ” Aggiungi nuovo dalla barra laterale di WordPress per iniziare a creare la prima galleria.

Una volta arrivati a questo punto, indicare un titolo per la galleria e fare clic sul pulsante “Seleziona i file dal computer” per caricare le immagini.

Creating a New Gallery with Envira Gallery WordPress Plugin

È anche possibile caricare immagini dalla libreria multimediale di WordPress facendo clic sul pulsante “Seleziona file da altre fonti”.

Tenere presente che se si utilizza questa opzione, è possibile caricare solo una singola immagine alla volta dalla libreria multimediale.

Dopo aver caricato le immagini, scorrere fino alla sezione “Galleria”, dove appariranno tutte le foto.

Images in Envira Gallery Builder

Successivamente, è possibile fare clic sull’icona a forma di matita nella parte superiore di ogni immagine per aprire la richiesta “Modifica metadati” sullo schermo.

Da qui è possibile aggiungere la didascalia, lo stato, il titolo e il testo alternativo per le singole immagini.

Una volta terminato, non dimenticate di fare clic sul pulsante “Salva metadati” per salvare le didascalie delle immagini.

Edit Gallery Image Metadata

Successivamente, è necessario fare clic sulla scheda “Configurazione” nella barra laterale a sinistra.

Da qui è possibile modificare il layout della galleria, compreso il numero di colonne, il caricamento pigro delle immagini, le dimensioni delle immagini, il posizionamento del titolo e della didascalia, i margini, le altezze, le dimensioni delle miniature, le dimensioni delle immagini e altro ancora.

Edit gallery configuration settings

Quindi, passare alla scheda “Lightbox” dalla barra laterale sinistra e selezionare l’opzione “Abilita Lightbox”.

Questa opzione consente ora agli utenti di ingrandire le immagini e di sfogliarle senza mai lasciare la pagina.

Le altre impostazioni predefinite possono essere lasciate così come sono, perché funzionano molto bene per la maggior parte dei siti web, ma è possibile rivedere le opzioni e modificarle se lo si desidera.

Enable the lightbox

Quindi, fare clic sulla scheda “Mobile” per configurare le impostazioni della galleria per i dispositivi mobili.

Da qui è possibile scegliere le dimensioni delle immagini per i dispositivi mobili, attivare o disattivare Lightbox, attivare/disattivare le didascalie delle immagini e altro ancora.

Configure settings for gallery

Successivamente, è possibile rivedere altre opzioni come lo slug della galleria e l’aggiunta di CSS personalizzati dalla sezione ‘Misc’.

Una volta soddisfatte le impostazioni, basta fare clic sul pulsante “Pubblica” in alto per memorizzare le modifiche.

Miscellaneous gallery settings

Successivamente, è necessario aprire un post o una pagina in cui si desidera incorporare la galleria.

Una volta arrivati, fare clic sul pulsante “+” nell’angolo superiore sinistro dello schermo per aprire il menu di blocco.

Successivamente, è sufficiente trovare e aggiungere il blocco Envira Gallery alla pagina o al post.

Add the Envira gallery block

Una volta fatto ciò, è necessario aggiungere la propria galleria di immagini dal menu a discesa del blocco Envira Gallery.

Infine, fare clic sul pulsante “Aggiorna” o “Pubblica” in alto per salvare le modifiche.

Ora è possibile visualizzare la galleria di immagini sul proprio sito web WordPress.

WordPress Photo Gallery Created with Envira Gallery

Qui noterete che facendo clic su qualsiasi immagine della galleria la aprirete a grandezza naturale con l’effetto lightbox.

È inoltre possibile sfogliare le immagini in questo popup premendo i tasti freccia sinistra e destra sullo schermo o sulla tastiera.

Envira Gallery Image in the Lightbox Popup

Bonus: Ottimizzare le immagini della galleria per i motori di ricerca

È importante ottimizzare tutte le immagini della galleria senza perdere la qualità del web, in modo che i motori di ricerca possano indicizzarle per le giuste parole chiave.

Questo può contribuire ad aumentare la velocità di caricamento delle pagine, a migliorare l’esperienza dell’utente, a incrementare le condivisioni sui social media e a portare traffico organico al vostro sito web.

È possibile ottimizzare facilmente le immagini della galleria aggiungendo sempre un testo alt nella pagina dei dettagli dell’allegato. Questa descrizione viene mostrata ai crawler dei motori di ricerca e aiuta le gallerie di immagini a posizionarsi meglio.

Add alt text with all your images

Inoltre, è possibile utilizzare All in One SEO, il miglior plugin SEO per WordPress sul mercato.

È dotato di un addon Image SEO che imposta automaticamente il testo alt, i titoli delle immagini, le didascalie e altro ancora. Aggiungerà anche una corretta sitemap delle immagini e altre funzioni SEO per migliorare il vostro posizionamento SEO.

Per ulteriori informazioni, consultare la nostra recensione di AIOSEO.

All in One SEO website

Oltre a questo, è necessario utilizzare nomi di file descrittivi per le immagini, usare parole chiave pertinenti e condividere le gallerie sui social media. Per ulteriori suggerimenti, consultate la nostra guida per principianti su come ottimizzare le immagini per i motori di ricerca.

Speriamo che questo articolo vi abbia aiutato a capire come creare una galleria di immagini in WordPress. Potreste anche voler consultare il nostro confronto tra WebP vs. PNG vs. JPEG: il miglior formato di immagine per WordPress e la nostra scelta dei migliori plugin WordPress per la gestione delle immagini.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

147 commentiLascia una risposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Chris says

    I just started using standard wordpress image galleries. When I add images to the gallery, if I do not have enough images to fill an entire row, the last row’s image is displayed at a size that allows the image to fill the full width of the container. So the default of 3 images per row applies until the row runs out of images, then I get a final row with a giant image. Is there a way to force every image to the same size so that the gallery just has all images the same size, regardless of whether the row it appears in is full?

    • WPBeginner Support says

      For that, you would want all of your images uploaded to be the same size and then you would uncheck the crop images checkbox that forces your images to align.

      Admin

  3. Roger Novak says

    Can separate clickable links be attached/embedded to each picture in a gallery that will take the viewer to another web site?

    • WPBeginner Support says

      It is a page that specifically shows your media item with your theme’s styling to include the header and footer of your site.

      Admin

  4. To the Aisle Australia says

    Hi! Great info here – we are still having no luck centreing our gallery – despite clicking centre in both wordpress and elementor post editor… any suggestions would be greatly appreciated!

    • WPBeginner Support says

      If you are using Elementor and the settings are being ignored, you would want to reach out to Elementor’s support and they would be able to assist.

      Admin

  5. Matthew Busse says

    I found this very difficult to follow, my WordPress is set up very different. The date at the top says Jan 2020, but there are comments from 2016? When was this created? Since the date at the top said January 2020 *(and it’s now June 2020), I thought this would still represent the current WordPress, but it doesn’t. So this is just very confusing…

    • WPBeginner Support says

      This guide was updated for it to work with the block editor. If your admin area looks different, you may be using WordPress.com.

      Admin

  6. Nilla says

    Great tutorial. However, you don’t advise worpress.com users that you need to be on a Business Plan to install plugins, which is extremely annoying.

  7. Brent says

    Hello, thank you for the post. I have a gallery I built in Elementor. How can I allow my client access to upload and delete photos from the gallery page?

    • WPBeginner Support says

      You would want to reach out to Elementor’s support with what you are wanting to do for them to be able to assist you.

      Admin

  8. Tegah says

    Please How can i create featured image gallery in new wordpress.

    i.e i what my featured image post to be made up of multiple images like a gallery

    • WPBeginner Support says

      If your theme does not offer that ability by default, you would need to use a plugin like the one we recommend in this article :)

      Admin

  9. Stacey Barrett says

    Is there an easy way to make all photos in the gallery the same size so it looks uniform? I’m creating the gallery for a non-profit newsletter.

    Thank you, stacey

    • WPBeginner Support says

      With the default gallery as long as you enabled the crop images they should be uniform in size.

      Admin

  10. Jaco says

    Hi I understood all that and thank you very much. so can you give me an idea how I can make a gallery appear by clicking on a photo.?
    I want when some one click on a photo and then the gallery will appear.
    with worpress
    Help me please

    • WPBeginner Support says

      For what it sounds like you’re wanting, you may want to take a look at Envira Gallery and the album feature

      Admin

  11. Robert says

    Thanks for putting this amazing piece of content together! I ended up using the a gallery plugin because it was super easy to set up :)

  12. Wendy says

    Hi, I have been managing a gallery on my site for years, but am only realizing now that it seems as though WP will only allow me to share 100 photos at a time. Is there a way to display more? I have a Premium plan.
    Thanks!

  13. Alison says

    Thank you for this helpful article. I make galleries all the time on my desktop computer, but I am hoping to blog from the trail this summer while backpacking the Colorado Trail and will be using my phone to do so. Is there any way to create galleries using the WordPress mobile app? I have been experimenting with that and can’t seem to figure out how to do so.
    Thank you!

  14. Dave Maynard says

    I’m using th wordpress gallery creator. When I create a gallery with 3 columns in 2 rows of pictures, it looks good. But when I click on Preview, it shows me what my webpage will look like but it has the pictures all on top of one another and not in the 3 columns & 2 rows like I wanted.
    How can I repair this?

  15. Craig Langburne says

    How can I display a single image and link it to a slide show in a new window?
    – I don’t want 12 thumbnails on the page – just one image the says ‘See the gallery’

  16. Steven says

    Yes!! Great tutorial! This saves me from having to revert to site origin builder when I have already used the reular wordpress editor. Works really well. I wish I would have realized this a long time ago but never reseached it. Thanks for this info.

    Steven

  17. Kyle says

    Can I great a photo gallery that automatically transitions between 5-10 images automatically once my page has been loaded? I was also hoping to embed this on my homepage. Any help would be great. Thanks.

  18. Erin says

    Hi!

    I am trying to add an image gallery that has links to various external pages (i.e. you click on an image and it brings you to that website.) I have determined that this is difficult to do with the WP gallery because they want all the images to go to the same linked page, but I want each of my images to go to a different page. It seems envira is not free. I downloaded gridplus and gridable but am still struggling with how to do this. ideas??

  19. Sarah says

    Hi there! I’m trying to figure out my gallery in WordPress, but when I publish it shows in one single column, but the backend looks normal and how I want. Do you know how to fix this?

  20. Robin Pacific says

    HI — I’m trying to update my site and have created a new gallery, but I can’t figure out if I did it in WP or NextGen. I can’t see how to insert it into the project.
    I have inserted a video successfully. Can I have a video (on Vimeo) and also a gallery?

    thanks,
    Robin

  21. loretta says

    great tutorial thanks!
    My blogs show as individual thimble images on the front blog page. If you hover over image you see the title. My issue is when you click on my blog page it looks like I have nil blogs as it takes up to 20 seconds for all images to show. Can you have the blogs list as titles rather images? If i hide featured image the boxed appear blank which is worse.
    Many Thanks
    Loretta

  22. Ali says

    I have a website I want to add gallery to my website.. This gallery will hold GBs of data more than 100GB. Is there any limitation in wordpress for that?

  23. Vicki Bentley says

    If I create a gallery, can I then add more photos to the same gallery and somehow update the gallery post page? (I’m posting recipes of food dishes, and as I complete more of them, will want to update the post.)

  24. Vicki Bentley says

    If I create a gallery using the default WP functionality, but decide later that I’d like to upgrade to more functionality with something you’ve mentioned, can I simply add the plug-in and have it all convert, or will I have to rebuild the gallery from scratch?

  25. Howard Mkongo says

    Loved the tutorial. Was a stepping stone to creating a custom plugin. After a few tweaks…problem solved

  26. Sayan Das says

    Thank you Wpbeginner,
    I am a regular visitor of your site for my new blog.
    Whenever I facing any problem for my new blog, I directly open your blog.
    Thanks again and keep sharing.

  27. Komal Kim Kevin says

    You guys are the bomb! Thank you so much for this easy “WP for Dummies” sort of post! Keep it up!!!

  28. Sandy Little says

    I have been playing with an image gallery. Once I make the gallery, can I somehow make each image clickable in order to direct people to my posts?

    • Anita says

      Thanks! I look forward to trying out this plugin.

      Can you recommend a plugin that will let me create a gallery of featured images from my posts, by post category? I want users to be able to click the image to view the related post. Thanks!

  29. Tamara Groom says

    Your plugin is a life-saver. I am unable to connect to Jetpack because of a issue with the client’s host and the other lightbox plugins I tried weren’t great. WPBeginner always has an answer, thanks for all you do!

  30. Martha says

    The gallery seems to default to three images across in my posts, is there any way I could have 4 or 5 images running across in each line?

  31. William Fitch says

    Thanks for an on-the-button explanation of the gallery. I must’ve tried a dozen other posts, which were all over the place, before I found this one.

    I have a question. Is it possible to bunch the images in a gallery closer together. I’ve tried all sorts and my images remain far apart

  32. Avinesh Shakya says

    How can i display the the images of the gallery along with caption.

    I want caption of each image in gallery to be stored in variable

  33. Jacques says

    Why are there no spaces between the images on my page and in the beginning of your tutorial you mention a lightbox but you never get to explaining how to make it as you only cover the carousel part.

    Where can I find this and how can I get the spaced grid option??

  34. Gennie says

    So does things like social media activity now count for SEO?
    I was told they help because of the Panda Google algorithm refresh
    Added to Digg, someone will like it

  35. Arabella says

    How do you delete images from a gallery? I have tried every single thing I can possibly think of and followed all the advice given on the internet, but the images are still there on my home page, even though I have deleted them multiple times from the actual gallery. There are no problems with the Media Library, just the gallery that appears on my home page. If anyone can tell me how to get rid of these pictures, that would be greatly appreciated.

  36. Craig Swank says

    I have created several image galleries which are initially uploaded in alphabetical order – I need to add large groups of additional images from time to time (this is in Word Press dot Com) – Is there anyway to re-alphabetize the entire gallery without being required to “drag and drop” – When adding 100’s of new images that is not an option.

    Thanks

  37. John Byrne Barry says

    I just discovered this after trying some plug-ins, but the problem I’m trying to address is the same, with this and with the various plugins. Which is how to add a link to the image, so when you click on the image, it takes you to a specific page. Not the media file. Any suggestions? Thanks.

  38. Freddie says

    I feel really stupid but just created a gallery page….updated with photos and text….simple enough. Why does “image gallery”, “slide show” and all this other stuff show up at the bottom of the page? I cannot figure out how to delete it. newby at web design.

  39. Mauricio says

    Absolutely well explained, it’s so helpful, I love it. Thank you so much for this video, great work.

  40. melanie bund says

    HI, Would be helpful to alot of people if you also suggested a free gallery plugin, rather than advertise a paid plugin
    Melanie

    • Collin says

      You should have kept reading. They do offer a pretty cool free plugin to add to the existing WP gallery. A nice looking carousel. Did you see?

  41. Miguel Garcia says

    Thank you very much for the tutorial.

    I have just one question.

    I created the gallery and published it, but when i put the mouse over the picture, it show a red square with two small silver squares that says: “view attachment page’ and “view in full size”

    How can i remove it? I wanna make it like in facebook, that you just put the mouse over, click and see the carousel.

    Is that possible?

  42. Jeff Brown says

    I did what you suggest above to create a simple gallery on a webpage. It shows up beautifully. However whenever I click on one of the thumb nail images it says : “image cannot be loaded. Make sure path is correct and image exist”.

    • Jeff Brown says

      Just to clarify, I mean when I click on ANY of the thumbnails in that gallery I get that same error message.

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.