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 aggiungere link personalizzati alle immagini della galleria in WordPress

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 aggiungere link personalizzati alle immagini della galleria in WordPress?

L’aggiunta di URL alle vostre gallerie può aiutare i visitatori a saperne di più sui prodotti, le immagini e le foto presenti in quella galleria. In questo modo è possibile ottenere più conversioni e incoraggiare i visitatori a impegnarsi nei contenuti.

In questo articolo vi mostreremo come aggiungere link personalizzati alle immagini della galleria in WordPress.

Add custom links to gallery images

Il blocco Galleria consente di mostrare una raccolta di immagini in un bel layout. È perfetto per mostrare i prodotti WooCommerce più popolari, le caratteristiche, le foto di un portfolio online e molto altro.

A volte è possibile collegare un’immagine della galleria a una pagina, a un post o anche a una pagina esterna. Questo permette ai visitatori di saperne di più sull’immagine o di intraprendere un’azione, come l’acquisto del prodotto presentato nella galleria di immagini.

Questo è un ottimo modo per mantenere i visitatori impegnati e incoraggiare le conversioni. Potete anche aggiungere link di affiliazione alla vostra galleria di immagini per guadagnare di più.

Detto questo, vediamo come aggiungere link personalizzati alle immagini della galleria in WordPress. Utilizzate semplicemente i collegamenti rapidi qui sotto per passare direttamente al metodo che desiderate utilizzare:

Potete collegarvi a qualsiasi pagina o post del vostro sito WordPress utilizzando la fila di pulsanti che appaiono sopra ogni immagine nel blocco Galleria. Si tratta di un metodo semplice e veloce che non richiede alcun plugin aggiuntivo per WordPress.

Tuttavia, non è possibile collegare pagine esterne con questo metodo. Questo può essere un problema se si vogliono aggiungere URL di affiliazione o link a una pagina che non fa parte del sito WordPress.

Ad esempio, potreste voler collegare un modulo di contatto ospitato su un altro sito web o un prodotto del vostro negozio Amazon.

Inoltre, non c’è modo di aggiungere l’URL all’immagine nella libreria multimediale di WordPress, quindi dovrete aggiungere il link manualmente ogni volta che volete utilizzarla. In questo caso, si consiglia di utilizzare il plugin menzionato nel metodo 2.

Per procedere all’aggiunta di link personalizzati utilizzando gli strumenti integrati di WordPress, è sufficiente creare un nuovo post o pagina o modificarne uno esistente in cui si desidera creare la galleria. Quindi fare clic sul pulsante “+ Aggiungi blocco”.

Nel popup, digitare “Gallery” e selezionare il blocco giusto quando appare.

How to add a gallery in WordPress

Aggiunge un blocco Galleria al layout.

Anche se si desidera caricare nuovi file immagine dal computer, fare clic su “Libreria multimediale”.

Adding images to a gallery in WordPress

Se si desidera caricare nuove immagini, selezionare “Carica file” e aggiungere le immagini desiderate.

Una volta che le immagini sono nella libreria multimediale, selezionare la scheda “Libreria multimediale”. Quindi, fare clic su ciascuna immagine che si desidera aggiungere alla galleria.

Quando si è soddisfatti della selezione, è sufficiente cliccare su “Crea una nuova galleria”.

Creating a new gallery in the WordPress dashboard

Nella schermata successiva, è possibile aggiungere le didascalie delle immagini che si desidera utilizzare.

A questo punto, fare clic su “Inserisci galleria”.

Adding captions to an image gallery in WordPress

A questo punto, basta fare clic sull’immagine in cui si desidera aggiungere il link.

Nella barra degli strumenti visualizzata, fare clic sul pulsante “Inserisci collegamento”.

Adding links to a product gallery on an online store

A questo punto è possibile digitare il nome della pagina o del post che si desidera utilizzare.

Quando compare il link giusto, fate clic.

Adding URLs to a product or image gallery in WordPress

Per impostazione predefinita, il link viene aperto nella stessa scheda del browser. Se invece si desidera aprire il link in una nuova scheda, fare clic sulla piccola freccia rivolta verso il basso.

Quindi, fare clic per attivare il cursore“Apri in una nuova scheda“.

Opening URLs in a new tab in a product, image, or photo gallery

Ora è possibile aggiungere collegamenti personalizzati a qualsiasi immagine della galleria, semplicemente seguendo la stessa procedura descritta sopra.

Quando si è soddisfatti della configurazione della galleria, fare clic su “Pubblica” o “Aggiorna” per renderla attiva.

Publishing a WordPress gallery with links

Ora, se visitate il vostro sito WordPress, vedrete la nuova galleria in azione.

Metodo 2: Usare i link personalizzati della galleria (meglio per riutilizzare le immagini)

Se si desidera collegare una pagina o un sito web esterno, è possibile utilizzare il plugin Gallery Custom Links.

Questo plugin gratuito aggiunge una nuova sezione alla libreria multimediale di WordPress, in modo da poter aggiungere il link all’immagine stessa anziché inserirla nell’editor di blocchi di Gutenberg.

Questo è particolarmente utile se si intende utilizzare la stessa immagine e lo stesso link in più punti del sito web, in quanto non sarà necessario aggiungere l’URL manualmente ogni volta.

La prima cosa da fare è installare e attivare il plugin Gallery Custom Links. Per maggiori dettagli, consultate la nostra guida passo passo su come installare un plugin di WordPress.

Questo plugin funziona subito, quindi non ci sono impostazioni da configurare. È sufficiente andare alla pagina o al post in cui si desidera creare la galleria e fare clic sul pulsante “+”.

Nel popup, digitare “Gallery” e selezionare il blocco giusto quando appare.

How to add a gallery in WordPress

A questo punto è possibile fare clic sul pulsante “Libreria multimediale”.

Qui è possibile caricare i file dal computer o selezionare qualsiasi immagine dalla libreria multimediale di WordPress. Indipendentemente dall’opzione scelta, nel menu di destra sono presenti alcune nuove impostazioni di “URL di collegamento”.

Adding custom links to gallery images in WordPress

Qui si può digitare l’URL che si desidera collegare. È inoltre possibile scegliere se il link si aprirà in una nuova scheda o nella scheda corrente utilizzando il menu a tendina “Destinazione del link”.

Ripetete semplicemente questi passaggi per ogni immagine che volete mostrare nella galleria del vostro blog WordPress.

Quando si è soddisfatti della configurazione della galleria, cliccare su “Crea una nuova galleria”.

How to add links to images in a WordPress gallery

È quindi possibile fare clic su “Aggiorna” o “Pubblica” per rendere la galleria attiva. A questo punto, è sufficiente fare clic su qualsiasi immagine della galleria per accedere alla pagina o al post collegato.

Forse volete creare una galleria con un plugin per gallerie perché non siete soddisfatti delle opzioni integrate offerte da WordPress. Ma volete essere sicuri di poter aggiungere link personalizzati alle immagini che aggiungete.

Se questo è il vostro caso, allora vorrete utilizzare Envira Gallery.

Envira Gallery è il miglior plugin per gallerie di WordPress sul mercato. Oltre a offrire diversi layout di galleria, ha anche una comoda funzione di caricamento pigro per evitare che la galleria rallenti il vostro sito web.

Nota: per questo tutorial utilizzeremo la versione premium di Envira Gallery, che offre molte funzioni avanzate come la protezione con il tasto destro del mouse e gli album fotografici. Ma questa guida funziona anche con il plugin Envira gratuito.

Innanzitutto, è necessario installare il plugin di WordPress e attivarlo. Dopodiché, fare clic su “Aggiungi nuovo”.

Quindi, assegnare un titolo alla nuova galleria, in modo da poterla identificare facilmente in seguito. Una volta fatto, fate clic su “Seleziona i file da altre fonti”.

Creating a new Envira Gallery

Qui è possibile aggiungere le immagini a WordPress come di consueto o scegliere quelle esistenti dalla libreria dei file multimediali.

È anche possibile premere il tasto ‘Ctrl’ per Windows o ‘Command’ per macOS sulla tastiera per selezionare più immagini contemporaneamente. È possibile modificare anche le dimensioni e l’allineamento dell’immagine.

Quindi, fare clic su “Inserisci nella galleria”.

Selecting images to add in Envira Gallery

Per iniziare ad aggiungere link personalizzati alle immagini della galleria, scorrere la pagina fino alla scheda “Galleria”.

Quindi, fare clic sul pulsante a matita “Modifica” per una delle miniature dell’immagine.

Clicking the pencil edit button to customize an image in an Envira Gallery

A questo punto apparirà una nuova finestra.

Nel campo ‘URL’, è necessario sostituire il link al file multimediale con l’URL personalizzato. È inoltre possibile selezionare la casella di controllo “Apri URL in una nuova finestra” per far sì che i link alle immagini si aprano in una nuova finestra o scheda del browser.

Al termine, fare clic su “Salva metadati”.

Adding a custom link to an image in Envira Gallery

Ecco fatto. Ora è sufficiente ripetere gli stessi passaggi per aggiungere collegamenti ipertestuali personalizzati per ogni singola immagine.

Dopo aver aggiunto i link e configurato le impostazioni della galleria, si può fare clic su “Salva bozza” per salvare la galleria o su “Pubblica” per renderla accessibile al pubblico.

Saving a gallery in Envira Gallery

Se avete bisogno di aiuto per creare gallerie di immagini, date un’occhiata a questi tutorial di WordPress:

Avete problemi con le immagini di WordPress? Per suggerimenti sulla risoluzione dei problemi, consultate la nostra guida su come risolvere i problemi più comuni relativi alle immagini.

Speriamo che questo articolo vi abbia aiutato ad aggiungere link personalizzati alle immagini della galleria in WordPress. Potreste anche voler consultare la nostra guida definitiva alla SEO delle immagini e le nostre scelte degli esperti per i migliori costruttori di pagine WordPress drag-and-drop.

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

53 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. Daniel says

    This post is really helpful. It just helped me beyond my thoughts, I even think that it’s impossible to do this and no one has a post about this. Thanks very much

  3. Olaf says

    I came across this tutorial. It seems that the recomended plug-in “WP Gallery Custom Links ” is deactivated since Jan 2019. I found a working replacement for that: “Gallery Custom Links” (without “WP” in the name) that works in my WP 5.0 installation

  4. Miranda says

    Can someone explain how to get Gallery Custom Links to work? I installed and activated it but when I went to my gallery I didn’t have any custom link meta fields out of the box like the one in the example.

    • WPBeginner Support says

      You would want to go to the plugin’s page and post on their support forum and the plugin’s support should be able to assist you :)

      Admin

  5. James Hay says

    I love WP beginner and find it very useful. However, it seems your solution to literally everything is to install a plugin. If I was to follow your advice, I’d have about a million plugins by now to achieve simple tasks. It’s actually frustrating, every articles solution is to install a plugin.

  6. Yarina says

    Hi, just a quick update on users looking to install the plugin mentioned here: it looks like it is not up-to-date with the latest versions of WP, according to recent reviews on the plugin page “WP Gallery Custom Links” :S

  7. J Brinker says

    Thank you so much for this! I had been looking at installing all sorts of new galleries and none of them were what I was looking for. This was the perfect solution.

    Now I’d be interested if it would also work with a carousel gallery, so they can get a closeup of the image and then click on that to a link.

    Either way your plugin is awesome and much appreciated!!!

  8. Jordy Meow says

    This plugin is not being updated, and the author doesn’t seem keen to do anything about it, not to help its users. The plugin only works with the standard gallery, doesn’t work with any other even the new Gallery Block brought by WordPress 5.0.

    I proposed to help but was ignored. I developed my own, which worked with most galleries, and much cleaner/faster than this one. Please have a look: Gallery Custom Links and if any issue, let me know. I will make it work :)

  9. Ana says

    Hi! thank you for your post. I installed it and can’t get any of the images in my gallery to be clickable. I’ve been playing around with it and trying different options but no luck. Some help please? :)

  10. Mark says

    Thanks for this article. I wasted so much time looking at all of these carousel plugins that did so many complex, Java-driven things when all I wanted was the functionality this one gives you.

  11. Gina says

    I really like the WP Gallery Custom Links but I want to take off the part of COMMENTS. I just want a link of my photos and the explanation …nothing more. How can I take off the COMMENTS PART?

  12. Ed McCarthy says

    Do you have any idea just how much time and energy and effort you saved me? I should have looked here first, but hey, I found just what I needed. By the way, this is working just fine with the WP Image Gallery. Also, support for this plugin is being maintained now by “johnogg” and seems like he’s doing a top notch job! Thank you so very much for this tutorial/post. You guys are awesome! Ed McCarthy

  13. Steve says

    Does this plugin still work?
    I installed it and can’t get any of the images in my gallery to be clickable. I’ve been playing around with it and trying different options but no luck. It would be a brilliant plugin if I could get it to work..

    Thanks!

    • Steve says

      Nevermind. I finally got it working when I switched the general setting to link to “media file”.
      Thanks!

      • Sarah Porter says

        Could you explain how you switched to “media file” because I do not see this option. Currently my photos (when clicked) are just enlarging the photo itself, and the link seems almost nonexistent

  14. Mudasir says

    I want have uploaded an image in my site which ontain a link I want to made that link no follow but i click on the no follow button its says no hyperlink. What should I do

  15. Adrian says

    I had the same problem as ‘K’ (who posted on Jun 6, 2015 at 12:53 pm) – took a while to workout but you need the full address (including http:// ) to get external links to work correctly.

    Very helpful pluggin.

  16. K says

    When I type in the url I would like the image to link to everything works except the URL of the linked page just gets tagged to the end of MY pages URL and therefore gets a mistake message saying that the url doesnt exist (because it’s now two URLs stacked) Please help! Would love this to work!

  17. twifordmin says

    Will this enable me to post an image on Facebook so that when people click on the image it takes them to a post in WordPress?

  18. Ali Khan says

    Nice Info. How can we wrap text around the images without corners of the images protruding out of the text alignment ? Is it the width of the page or something to do with the style. ?

  19. Doreen Sargente says

    Are there any tutorials on how to use this plug in with the newest version of WP? I’ve been happily using it for nearly a year but since upgrading I haven’t been able to figure it out and can’t find much help on how to do it.

  20. aayush says

    Hi there i am using this plugin. can you tell me that how can i set all images size same whatever i want set the size of all the images of my gallery. here is my website

    please see all the images size. i want to keep all the images size same. can you help me with that if you can please reply. i would really appreciate your help. thanks

  21. Elisa says

    Great timing as I was just finally getting to wanting to add links to images in a client gallery.
    Thank you!

    • WPBeginner Support says

      This is not possible at this moment without editing the plugin itself, which we do not recommend. However if you feel comfortable creating your own plugins then you can fork the plugin and modify it to match your needs.

      Admin

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.