August used to be a large month for WordPress. WordPress 7 ...
Have you ever ever clicked on a picture on a web site anticipating it to zoom in, handiest to understand it doesn’t? It’s a small factor, however it may be unusually irritating to your guests.
When folks can click on to expand a picture—whether or not it’s a product photograph, a weblog symbol, or a part of a portfolio—they generally tend to stick in your web site longer and have interaction extra.
I’ve arrange this option on a number of WordPress websites, and it’s at all times a handy guide a rough win.
On this information, I’ll display you 3 easy techniques to permit customers to click on to expand photographs in your WordPress web site. You don’t want any coding abilities, and every way handiest takes a couple of mins to arrange.


Letting guests click on to expand photographs in your WordPress web site is helping them see necessary main points up shut.
It’s a easy improve that provides a cultured, skilled really feel, particularly for portfolios, actual property listings, and pictures galleries.
Plus, it may be to hand for on-line shops the place consumers need to glance intently at your merchandise earlier than deciding to shop for them.
WordPress features a elementary “Magnify on click on” function by way of default. It opens the picture correct at the web page, with none background dimming or visible impact.
This works effective for easy blogs or inner pages, but it surely appears somewhat undeniable and doesn’t be offering a lot keep an eye on.
If you need one thing that appears extra trendy and polished, then a picture lightbox plugin is a more sensible choice.
As a substitute of merely increasing the picture, it opens in a swish overlay that dims the background and assists in keeping the viewer centered. You additionally get extra keep an eye on over how the picture appears and purposes.


Ahead of I display you those other strategies, there’s another factor to remember: symbol high quality. When anyone clicks to expand a photograph, they be expecting a transparent, high-resolution model. However massive symbol recordsdata can decelerate your web page.
That’s the place symbol optimization is available in. By means of compressing your photographs with out decreasing their visual high quality, you’ll be able to stay report sizes small and your web page speedy.
This implies you’ll be able to use photographs with massive dimensions (like 1500px vast) that glance nice when enlarged, with out hurting efficiency.
For assist with that, take a look at our information on how you can optimize photographs for the internet.
On this article, I’ll proportion 3 other strategies that may expand your WordPress photographs after they’re clicked, together with some lightbox choices.
You’ll be able to use the short hyperlinks beneath to leap to the process you need to make use of:
After trying out other ways to expand photographs, I’ve discovered that WordPress’s integrated function is very best for easy wishes.
I’ve used this technique when developing documentation or writing technical articles. It’s particularly helpful when you want readers to peer small main points in screenshots or read about particular portions of a picture extra intently.
The primary drawback is that it isn’t a real lightbox. It merely enlarges the picture, and you’ll be able to’t customise the glance or upload cool results.
Step 1: Upload Your Symbol within the WordPress Editor
First, you want to create or open the put up the place you need so as to add the clickable symbol.
Then, within the block editor, click on the (+) icon so as to add a brand new block and make a choice ‘Symbol’ from the block choices. When you do, you’ll see buttons for including a picture in 3 other ways: Add, Media Library, or Insert from URL.


At WPBeginner, we at all times use the ‘Media Library’ possibility. This makes certain that the identify and alt textual content we upload to the picture are to be had if we reuse it in different articles.
I counsel averting ‘Insert from URL’. It hotlinks to a picture on every other web site, which means that the image may just smash in your web page if the unique is ever got rid of.
Step 2: Set Up the ‘Magnify on Click on’ Possibility
After including your symbol to the put up or web page, you’ll be able to click on on it to show the picture settings.
With the picture decided on, click on the ‘Insert hyperlink’ icon within the block toolbar. Within the settings that seem, merely toggle at the possibility classified ‘Magnify on click on’.


Step 3: Configure Symbol Settings
Now that you just’ve enabled the click-to-enlarge function, chances are you’ll need to customise the unique symbol’s settings to verify the most efficient show high quality inside of your put up or web page.
Make a selection your symbol after which take a look at the block settings panel at the correct facet of your display.


You’ll be able to keep an eye on how the picture appears at the web page by way of adjusting the picture’s dimensions. Then again, that is simply the show measurement.
When a customer clicks the picture, they’ll see the unique, full-resolution symbol you uploaded for your Media Library. So, remember to add a top of the range symbol a minimum of 1500 pixels vast.
Step 4: Preview Your Symbol and Submit Your Content material
Ahead of you post your put up or web page with the ‘expand on click on’ symbol possibility enabled, you’ll need to preview it to ensure it’s operating.
To do that, click on at the View button within the higher right-hand nook of your editor and choose ‘Preview in new tab.’


I like to recommend you take a look at it in each view possibility, particularly ‘Cell’, since many of us use smartphones in this day and age.
With the ‘expand on click on’ symbol impact implemented, it will have to enlarge at the identical web page, as observed within the instance beneath. How a lot it expands relies on the dimensions of the unique symbol you uploaded.


Merely click on at the symbol to go back it to customary measurement.
As soon as the whole thing appears just right, you’re in a position to post or replace your content material.
In contrast to the fundamental WordPress function, a lightbox plugin creates a a lot more skilled revel in. When a person clicks a picture, it opens in a classy overlay that dims the remainder of the web page, making your symbol pop.
I like to recommend the unfastened Easy Lightbox plugin as it permits you to upload clean animations, customizable topics, and slideshow options that make your photographs stand out. It’s light-weight and works routinely with your whole photographs as soon as activated.
Step 1: Set up and Turn on the Easy Lightbox Plugin
To get began, you want to put in and turn on the Easy Lightbox plugin.


If you want assist with this procedure, please learn our information on putting in WordPress plugins.
Step 2: Configure Easy Lightbox Settings
After activating the plugin, it’s a good suggestion to move to Look » Lightbox and evaluate its settings to verify the whole thing is about up the best way you need.
Right here, you’ll in finding Lightbox settings that allow you to alter the place you need to allow lightbox capability. This can also be at the house web page, unmarried posts, pages, and extra.


I in most cases persist with the default settings since they paintings nice for many web sites.
Subsequent, scroll right down to the ‘UI’ settings. Those keep an eye on how the lightbox appears and feels.


By means of default, the plugin will use a mild theme, however you’ll be able to transfer to darkish mode for those who want. You’ll be able to additionally alter the ‘Overlay Opacity,’ which controls how a lot the background web page is dimmed when a picture is open, and allow animations to modify how the picture opens.
Be happy to play with those settings, and don’t omit to click on ‘Save Adjustments’ while you’re finished.
Step 3: Upload Your Symbol and Allow Lightbox
Now, let’s take a look at out the lightbox function. Merely create or open a put up and upload a picture.
As soon as your symbol is within the editor, you want so as to add a caption. The Easy Lightbox plugin will display this newsletter within the lightbox view.
Merely click on the picture and ensure the ‘Upload Caption’ icon is activated within the toolbar. This permits you to kind within the ‘Upload caption’ textual content box beneath your symbol.


When you don’t upload a caption, the plugin will routinely use the picture identify from the Media Library as an alternative. Then again, I in finding that the usage of the caption box offers you extra direct keep an eye on.
Subsequent, with the picture nonetheless decided on, you want to click on the ‘Hyperlink’ icon within the toolbar and choose the ‘Hyperlink to Symbol Document’ possibility. This can be a key step that permits the Easy Lightbox plugin to paintings.


When you do that, the plugin will routinely discover the hyperlink and practice its lightbox impact when a customer clicks at the symbol.
💡 Observe: You’ll be able to additionally use Easy Lightbox for a whole symbol gallery. Merely create a picture gallery the usage of the block editor after which observe the stairs described on this way so as to add the lightbox function to every symbol.
Step 4: Check Your Lightbox
Now, let’s take a look at the lightbox function by way of previewing the put up. Simply click on the View possibility within the higher right-hand nook after which choose ‘Preview in new tab’.


As soon as the brand new tab opens, cross forward and click on at the symbol. You will have to see it open easily in a lightbox overlay with a darkened background.
Relying in your design settings, you are going to see the lightbox in a mild or darkish theme. Right here’s what the sunshine theme seems like.


The sunshine theme surrounds the photograph with a white body, which creates a just right distinction with the darkened background.
Now right here’s what the darkish theme seems like.


You will have to additionally see your symbol caption within the backside left nook of the lightbox.
I additionally suggest previewing your lightbox on different display sizes to ensure it appears just right on each software.
You’ll be able to do that by way of returning to the View possibility and settling on the ‘Desktop’, ‘Pill’, or ‘Cell’ possibility. After that, click on ‘Preview in new tab.’


When you’ve ever sought after to focus on more than one photographs, then gallery plugins are fingers down the most efficient answer. They assist arrange and exhibit a sequence of pictures with symbol growth capability with out slowing down your web page.
Those plugins can beef up person interplay by way of making your content material extra attractive and visually interesting, giving guests a continuing revel in navigating thru your photographs.
I like to recommend Envira Gallery as it means that you can create gorgeous, customizable galleries that glance nice on any software. It’s additionally tremendous beginner-friendly.
Plus, it comprises efficiency options like lazy loading to ensure your galleries don’t decelerate your web page. And its AI software permit you to create customized photographs correct within WordPress.
Most significantly, the plugin gives a lightbox environment with a whole lot of customization choices. This manner, you’ll be able to get the entire advantages of the click-to-enlarge symbol function, plus some cool settings for layouts, gallery transitions, and a lot more.
Wish to be told extra about what the plugin can do? We’ve examined it widely previously, and you’ll be able to take a look at our complete Envira Gallery evaluate for more info.
📝 Observe: Whilst there’s a unfastened model of Envira Gallery to be had, I like to recommend the Professional model for complicated options like SuperSize lightbox, Envira AI, and social sharing gear.
Now, let’s cross throughout the steps of the usage of Envira Gallery so as to add a lightbox function.
Step 1: Set up and Turn on the Envira Gallery Plugin
Let’s get started by way of putting in the plugin in your web page. On this instructional, I’ll use the unfastened model, or you’ll be able to acquire a Professional license from the Envira Gallery web site.


Subsequent, set up and turn on it by way of following our information on how you can set up a WordPress plugin. When you’ve activated the plugin, Envira’s setup wizard will have to in an instant release.
From right here, click on the ‘Get Began’ button to start out the method.


There are 5 steps on this wizard.
Right through setup, you’ll be able to make a choice the class that describes your small business or web site (like photographer or industry proprietor) and choose the gallery options you need to upload.


I like to recommend proceeding with the instructed default settings as a result of they in most cases be offering the whole thing you want. Then again, if in case you have a Professional plan, you’ll have the ability to turn on extra complicated options.
Needless to say the ‘Lightboxes’ possibility will have to already be checked, so this option will routinely be enabled.
When you’ve completed the setup wizard, you’ll nonetheless want to turn on your professional license for those who bought one. To do that, cross to Envira Gallery » Settings and paste your license key within the box. Then, hit ‘Test Key.’


Step 2: Create a New Gallery
To create your first gallery, cross to Envira Gallery » Upload New to your dashboard.
First, upload a identify on the most sensible of the web page. I like to recommend giving it a transparent and descriptive identify in order that it’s more uncomplicated to stay observe of later.
Subsequent, you’ll understand 3 choices for including photographs: Local Envira Gallery, Galleries from Different Resources, and Create with Envira AI.


I like to recommend beginning with Local Envira Gallery. It’s the simplest solution to add your personal photographs without delay.
💡 Want authentic photographs speedy? You’ll be able to additionally create your personal customized photographs with Envira AI. This option makes it simple to generate distinctive photographs on call for. All it’s important to do is create a handy guide a rough symbol description, select from the consequences, and upload it for your gallery in one click on.
Pass forward and choose the photographs you need to incorporate. You’ll be able to upload as many as you prefer whilst maintaining the utmost add report measurement beneath 256 MB.
Step 3: Configure Gallery and Lightbox Choices
Within the menu to the left of your gallery photographs, you’ll in finding Envira’s Gallery settings.


There are tabs for basic configuration, the lightbox function, cellular settings, and extra. Let’s undergo them one after the other.
You’ll be able to make a choice your gallery format on the most sensible of the ‘Configuration’ segment. The grid format works nice for many galleries, however be happy to experiment with different choices.


Scrolling down, you’ll be able to in finding extra gallery settings choices.
As an example, you’ll be able to allow lazy loading, set an automated format, and upload a gallery description.


As an example, you could need to set computerized layouts to verify your gallery appears neat and arranged with out further effort.
💡 Professional Tip: I like to recommend enabling the lazy loading possibility. This option is helping your gallery load sooner by way of handiest loading photographs as guests scroll down the web page. It additionally is helping optimize your web page velocity.
Subsequent, transfer to the ‘Lightbox’ tab. Bear in mind, this option will have to be enabled by way of default, but when it isn’t, take a look at the field subsequent to ‘Allow Lightbox?’


Then, you’ll need to make a choice a ‘Gallery Lightbox Theme.’ This may increasingly decide the overall look of your lightbox.
Your choices depends on your Envira plan and whether or not you have got the Gallery Topics addon. However you will have to be ready to make a choice from a dismal, gentle, or legacy theme.
Additional down within the ‘Lightbox’ tab, you’ll be able to make a choice how your enlarged photographs seem, choose transition results, and make a decision whether or not to turn symbol titles.
Then, you’ll be able to in finding extra lightbox settings on the second one part of the web page.
As an example, you’ll be able to allow navigation arrows, limitless looping of pictures, or supersize mode. You’ll be able to even upload cool results for when folks open or shut your gallery, and after they click on thru it.


As an example, for ‘Lightbox Transition Impact,’ you’ll be able to select a laugh choices like Fade, Slide, Round, Tube, Rotate, and extra.
Subsequent, I like to recommend going to the ‘Cell’ tab to configure each the overall and lightbox settings.
Extra folks will almost definitely view your gallery on telephones than computer systems, so let’s be certain it appears nice on small displays too.


Along with activating the lightbox function for cellular gadgets, you’ll be able to customise mobile-specific settings corresponding to lightbox dimensions, row heights, and identify or caption shows.
As you scroll down, you’ll uncover extra choices, together with options like swipe-up to near, gallery navigation arrows, thumbnails, and extra.


In the end, the ‘Standalone’ and ‘Misc’ tabs have a couple of further settings chances are you’ll in finding helpful.
The ‘Standalone’ tab permits you to give your gallery its personal distinctive URL. This can be a nice function if you wish to proportion a right away hyperlink to a selected portfolio or photograph album.


The ‘Misc’ tab comprises gear for uploading and exporting galleries, however you most likely received’t want the ones presently.
For a deeper dive into these types of settings, you’ll be able to take a look at our detailed information on how you can create a picture gallery.
Step 4: Preview and Submit Your Gallery
To preview the gallery, click on the ‘Preview’ button at the correct facet of your gallery settings web page.


When you’re at the preview web page, click on thru other photographs to check the lightbox impact.
Right here, you’ll be able to see the picture’s identify and the remainder of the gallery.


Whilst you take a look at the gallery, the photographs will have to open easily. When you selected a transition impact, it will have to be visual right here.
As an example, I set the Slide transition impact, and right here’s the way it appears.


To navigate between photographs, click on at the navigation arrows on all sides of the display or use the arrow keys in your keyboard.
At this level, chances are you’ll need to be certain the navigation arrows paintings and that your symbol titles seem accurately for those who enabled them.
When you’re pleased with how the whole thing works, you’ll be able to post the gallery by way of clicking the ‘Submit’ button at the correct facet of your gallery settings.


After publishing the gallery, you’ll be able to transfer directly to including it for your web site.
Step 5: Upload the Gallery to Your Web page
Now that your gallery is operating completely, let’s upload it to a put up.
As soon as you might be within the WordPress editor, click on the (+) icon so as to add a brand new block and seek for ‘Envira Gallery.’ Then drag the block onto your put up.
Subsequent, while you click on the ‘Seek for a gallery’ drop-down, choose the gallery you simply created. It is going to be routinely inserted into the put up with the entire settings you simply configured.


However, you’ll be able to upload your gallery to pages, widgets, or customized put up sorts by way of the usage of a shortcode.
You’ll be able to in finding this shortcode at the correct sidebar of the gallery settings, slightly below the ‘Submit’ button.


For more info, see our information on how you can upload a shortcode in WordPress.
Ahead of clicking the ‘Submit’ button, remember to preview your put up one ultimate time to ensure the gallery seems precisely as you need it.
Your photographs will have to now be displayed in a certified grid format with a clean lightbox impact when clicked.
Listed here are some often requested questions on enlarging photographs in WordPress.
How do I expand photographs in WordPress?
You’ll be able to use the default ‘Magnify on click on’ function in WordPress for elementary capability. For extra keep an eye on, you’ll be able to use plugins like Easy Lightbox or Envira Gallery.
How do I routinely resize photographs in WordPress?
WordPress routinely creates a number of smaller variations of your photographs while you add them. To have extra keep an eye on over symbol dimensions or to optimize them for velocity, I like to recommend the usage of a picture optimization plugin like EWWW Symbol Optimizer.
Plugins like Envira Gallery additionally come up with exact keep an eye on over the show dimensions of pictures inside of your galleries.
How do I pressure symbol measurement in WordPress?
You’ll be able to set customized symbol dimensions inside of your theme. For an in depth information, take a look at our educational on how you can create further symbol sizes in WordPress. This can be a good way to verify a constant format throughout your galleries and web page.
When you want the usage of a plugin, imagine choices like Envira Gallery. It means that you can specify precise symbol dimensions successfully, offering keep an eye on over how your galleries glance. It will assist take care of a cultured look throughout your web page.
I am hoping this text helped you upload the ‘expand photographs upon click on’ function in WordPress. Listed here are some bonus guides for those who’re excited by managing and making improvements to your WordPress photographs:
When you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll be able to additionally in finding us on Twitter and Fb.
August used to be a large month for WordPress. WordPress 7 ...
August 14 – 27, 2026 Welcome again to the WordPr ...
You'll now set up your WordPress.com web page from Ch ...
Lifetime Membership with Unlimited Access