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

Cómo crear una galería de imágenes en WordPress (paso a paso)

Nota editorial: Ganamos una comisión de los enlaces de socios en WPBeginner. Las comisiones no afectan a las opiniones o evaluaciones de nuestros editores. Más información sobre Proceso editorial.

¿Quiere crear una galería de imágenes en WordPress?

Una galería de imágenes te permite añadir fotos en filas y columnas. Esto permite mostrar más fotos en menos espacio y facilita la navegación de los usuarios.

En este artículo, le mostraremos cómo crear fácilmente una galería de imágenes en WordPress que haga que sus fotos se vean aún mejor.

How to create an image gallery in WordPress

¿Por qué crear una galería de imágenes en WordPress?

WordPress hace que sea súper fácil añadir una imagen a las entradas y páginas de tu blog. Sólo tienes que añadir el bloque Imagen y subir tu imagen.

Sin embargo, si está añadiendo múltiples imágenes a su sitio web WordPress, entonces todas esas imágenes aparecerán una tras otra. No queda muy bien, y los usuarios tendrán que desplazarse mucho para verlas todas.

Images added with the Image block

Al crear una galería, puedes mostrar las imágenes en una disposición de cuadrícula con columnas y filas. Puedes mostrar miniaturas de tus imágenes, y los usuarios pueden hacer clic en ellas para ver la imagen completa.

De esta forma, podrás mostrar más fotos en menos espacio y tendrá un aspecto mucho más profesional.

Por ejemplo, si está creando un sitio web de fotografía para mostrar sus imágenes, añadir una galería de fotos le permitirá mostrar su trabajo de una forma estéticamente agradable.

Image gallery preview

Con WordPress, puedes crear fácilmente una galería de imágenes utilizando el bloque Galería en el editor de bloques Gutenberg.

También puede utilizar plugins de galería de WordPress para crear galerías aún mejores y con más características.

Dicho esto, veamos cómo crear fácilmente una galería de imágenes en WordPress.

En este tutorial, vamos a mostrar dos métodos para crear una galería, y puede utilizar los enlaces de abajo para saltar al método de su elección:

Si desea crear una galería de imágenes utilizando el editor de bloques de WordPress, entonces este método es para usted. Sin embargo, tenga en cuenta que esta característica es muy básica y no tiene muchas opciones.

En primer lugar, debe abrir una entrada/página existente o nueva en la que desee crear la galería desde la barra lateral del administrador de WordPress.

Una vez allí, haz clic en el botón “+” situado en la esquina superior izquierda de la pantalla. Desde aquí, busca y añade el bloque Galería a la página o entrada.

Una vez hecho esto, haga clic en el botón “Subir” para subir nuevos archivos de imagen desde su ordenador.

Sin embargo, si desea subir imágenes desde la biblioteca de medios, debe hacer clic en el botón “Biblioteca de medios”.

Upload images for the gallery

Si hace clic en el botón “Subir”, en general podrá subir una foto a la vez desde el ordenador.

Sin embargo, puedes seleccionar y abrir varias imágenes manteniendo pulsada la tecla Ctrl del teclado.

Upload images from the computer

Una vez subidas todas las imágenes, puede añadirles leyendas al hacer clic en el icono “Añadir leyenda” de la barra de herramientas de bloques situada en la parte superior de cada imagen.

También puede añadir texto alternativo a las imágenes desde el panel de bloques de la derecha.

Add caption for the uploaded image

Si selecciona el botón “Biblioteca de medios”, podrá elegir varias imágenes a la vez para su galería.

Al seleccionar imágenes, también puede introducir el texto alternativo, el título y la leyenda de la imagen desde el panel de detalles del archivo adjunto, a la derecha.

Una vez que haya añadido todas las imágenes, sólo tiene que hacer clic en el botón “Crear una nueva galería”.

Add images for the gallery from the media library

Esto le dirigirá a la página “Editar galería” en la indicación de la biblioteca de medios.

Desde aquí, puede seleccionar imágenes individuales y añadirles una leyenda, un título, una descripción o un texto alternativo.

Una vez que haya terminado, simplemente haga clic en el botón “Insertar galería” en la esquina inferior derecha.

Add captions in the Edit gallery page

La galería de imágenes que ha creado se añadirá ahora al editor de WordPress.

También puede personalizarlo aún más seleccionando el bloque Galería y estableciendo sus ajustes desde el panel de bloques de la derecha.

Por ejemplo, puede utilizar el carrusel / control deslizante “Columnas” para decidir el número de columnas y filas de sus galerías.

Incluso puedes conmutar el interruptor “Recortar imagen” para recortar las miniaturas y alinearlas mejor.

Configure gallery settings in the block panel

En las opciones de “Enlazar a”, puedes elegir Ninguno si quieres que tus usuarios solo vean tu foto. Esta opción desactiva la característica de hacer clic para tus imágenes.

Sin embargo, si selecciona la opción “Archivo de medios”, podrá hacer clic en las imágenes y se abrirá el archivo de imagen al hacer clic. Del mismo modo, la página de adjuntos se abrirá si selecciona la opción “Página de adjuntos”.

Cuando esté satisfecho con los ajustes, haga clic en el botón “Publicar” o “Actualizar” de la parte superior para guardarlos.

Por último, puede visitar su blog de WordPress para ver la galería de imágenes en acción.

Image gallery preview

Ya ha creado fácilmente una galería de imágenes para su sitio web. Sin embargo, pronto advertirá que carece de algunas características esenciales.

Por ejemplo, no se podrá hacer clic en las imágenes o se abrirán en una página nueva. Si enlaza las imágenes de su galería al archivo de medios o a la página de adjuntos, los usuarios tendrán que hacer clic en el botón Atrás para volver a ver la galería.

Esto no es fácil de usar y puede disuadir a los usuarios de seguir explorando su sitio web.

Del mismo modo, la apariencia de la galería también depende del tema de WordPress que esté utilizando.

Además, no puedes organizar tus galerías en álbumes, debates, etiquetas, etc. Tu galería no se almacena en ningún sitio, y si necesitas volver a añadir la misma galería, tendrás que volver a crearla.

Si desea añadir galerías de imágenes de aspecto más profesional a su sitio, utilice el método siguiente.

Si desea crear una galería de imágenes más funcional y estéticamente agradable para su sitio de WordPress, entonces este método es para usted.

Utilizaremos el plugin Envira Gallery ya que es el mejor plugin de galerías de imágenes para WordPress del mercado.

Envira te permite crear fácilmente galerías de imágenes totalmente adaptables, bonitas y modernas en WordPress. Es súper rápido y viene con muchas características como una caja de luz emergente, fácil navegación de imágenes, un editor de arrastrar y soltar, y plantillas de galerías profesionales.

En primer lugar, debe instalar y activar el plugin Envira Gallery. Para más detalles, consulte nuestra guía paso a paso sobre cómo instalar un plugin de WordPress.

Una vez activado, diríjase a la página Envira Gallery ” Ajustes desde el escritorio de WordPress para introducir su clave de licencia.

Puede obtener esta clave desde su cuenta en el sitio web de la galería Envira.

Nota: Envira Gallery también tiene un plugin gratuito que puede utilizar. Sin embargo, vamos a utilizar la versión pro para este tutorial para desbloquear más características.

Add the Envira Gallery license key

Después de verificar su clave de licencia, puede dirigirse a la página Envira Gallery ” Añadir nueva desde la barra lateral de WordPress para empezar a crear su primera galería.

Una vez allí, ponga un título a su galería y haga clic en el botón “Seleccionar archivos del ordenador” para subir sus imágenes.

Creating a New Gallery with Envira Gallery WordPress Plugin

También puede subir imágenes desde su biblioteca de medios de WordPress al hacer clic en el botón “Seleccionar archivos de otras fuentes”.

Ten en cuenta que si utilizas esta opción, solo podrás subir una imagen a la vez desde la biblioteca de medios.

Una vez subidas las imágenes, desplázate hasta la sección “Galería”, donde aparecerán todas tus fotos.

Images in Envira Gallery Builder

A continuación, puede hacer clic en el icono del lápiz situado en la parte superior de cada imagen para abrir la indicación “Editar metadatos” en la pantalla.

Desde aquí podrá añadir la leyenda, el estado, el título y un texto alternativo para cada imagen.

Cuando hayas terminado, no olvides hacer clic en el botón “Guardar metadatos” para guardar las leyendas de las imágenes.

Edit Gallery Image Metadata

A continuación, debe hacer clic en la pestaña “Configuración” de la barra lateral de la izquierda.

Desde aquí, puede cambiar la estructura / disposición / diseño / plantilla de su galería, incluido el número de columnas, la carga diferida de imágenes, el tamaño de las imágenes, la posición del título y la leyenda, los márgenes, las alturas, el tamaño de las miniaturas, las dimensiones de las imágenes y mucho más.

Edit gallery configuration settings

A continuación, cambie a la pestaña “Caja de luz” de la barra lateral izquierda y marque la opción “Activar caja de luz”.

Esta opción permitirá ahora a los usuarios ampliar las imágenes y navegar por ellas sin salir de la página.

Puede dejar los demás ajustes por defecto como están porque funcionan muy bien para la mayoría de los sitios web, pero puede reseñar las opciones y cambiarlas si lo desea.

Enable the lightbox

A continuación, haz clic en la pestaña “Móvil” para establecer los ajustes de tu galería para dispositivos móviles.

Desde aquí, puedes elegir las dimensiones de las imágenes para dispositivos móviles, activar o desactivar Lightbox, activar/desactivar las leyendas de las imágenes y mucho más.

Configure settings for gallery

Después, puedes reseñar más opciones como el slug de la galería y añadir CSS personalizado desde la sección ‘Misc’.

Cuando estés satisfecho con los ajustes, haz clic en el botón “Publicar” de la parte superior para guardar los cambios.

Miscellaneous gallery settings

A continuación, tienes que abrir una entrada o página en la que quieras incrustar tu galería.

Una vez allí, haga clic en el botón “+” de la esquina superior izquierda de la pantalla para abrir el menú de bloque.

A continuación, busque y añada el bloque Galería Envira a la página o entrada.

Add the Envira gallery block

Una vez hecho esto, tienes que añadir tu galería de imágenes desde el menú desplegable del bloque Envira Gallery.

Por último, haga clic en el botón “Actualizar” o “Publicar” de la parte superior para guardar los cambios.

Ahora, puede ver su galería de imágenes en su sitio web WordPress.

WordPress Photo Gallery Created with Envira Gallery

Aquí, notará que al hacer clic en cualquier imagen de la galería se abrirá a tamaño completo con el efecto de caja de luz.

También puede navegar por las imágenes de esta ventana emergente pulsando las teclas de flecha izquierda y derecha de la pantalla o del teclado.

Envira Gallery Image in the Lightbox Popup

Bonificación: Optimizar las imágenes de la galería para los motores de búsqueda

Es importante optimizar todas las imágenes de su galería sin perder calidad web para que los motores de búsqueda puedan indexarlas por las palabras clave adecuadas.

Esto puede ayudar a aumentar la velocidad de carga de su página, mejorar la experiencia del usuario, aumentar las comparticiones en medios sociales y atraer tráfico orgánico a su sitio web.

Puede optimizar fácilmente las imágenes de su galería añadiendo siempre un texto alternativo en la página de detalles del adjunto. Esta descripción se muestra a los rastreadores de los motores de búsqueda y ayuda a tus galerías de imágenes a posicionarse mejor.

Add alt text with all your images

Además, también puede utilizar All in One SEO, que es el mejor plugin de SEO para WordPress del mercado.

Viene con una extensión de SEO para imágenes que establecerá automáticamente el texto alternativo, los títulos de las imágenes, las leyendas y mucho más. También añadirá un mapa del sitio de la imagen adecuada y otras características de SEO para mejorar su ranking SEO.

Para más información, consulte nuestra reseña / valoración de AIOSEO.

All in One SEO website

Además, debe utilizar nombres de archivo descriptivos para sus imágenes, emplear palabras clave relevantes y compartir sus galerías en los medios sociales. Para más consejos, consulta nuestra guía para principiantes sobre cómo optimizar las imágenes para los motores de búsqueda.

Esperamos que este artículo te haya ayudado a aprender a crear una galería de imágenes en WordPress. Puede que también quieras ver nuestra comparativa entre WebP vs. PNG vs. JPEG: el mejor formato de imagen para WordPress y nuestra selección de expertos de los mejores plugins de WordPress para gestionar imágenes.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Descargo: Nuestro contenido está apoyado por los lectores. Esto significa que si hace clic en algunos de nuestros enlaces, podemos ganar una comisión. Vea cómo se financia WPBeginner , por qué es importante, y cómo puede apoyarnos. Aquí está nuestro proceso editorial .

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.

El último kit de herramientas de WordPress

Obtenga acceso GRATUITO a nuestro kit de herramientas - una colección de productos y recursos relacionados con WordPress que todo profesional debería tener!

Reader Interactions

147 comentariosDeja una respuesta

  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.

      Administrador

  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.

      Administrador

  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.

      Administrador

  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.

      Administrador

  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.

      Administrador

  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 :)

      Administrador

  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.

      Administrador

  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

      Administrador

  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. 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?

  40. 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?

  41. 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”.

Deja tu comentario

Gracias por elegir dejar un comentario. Tenga en cuenta que todos los comentarios son moderados de acuerdo con nuestros política de comentarios, y su dirección de correo electrónico NO será publicada. Por favor, NO utilice palabras clave en el campo de nombre. Tengamos una conversación personal y significativa.