You should use a lightbox for this. Try this one. It works well
http://lokeshdhakar.com/projects/lightbox2/
There are instructions on how to use it and documentation on how to get it working. The download will also contain samples and you can just copy and paste the code.
Related Posts:
- wp_customize_image_control deprecated add_tab alternative
- Logo on the tab
- Function to get URL of original uploaded image – full size
- WordPress crop tool greyed out
- Limit image resolution on upload
- get_the_post_thumbnail_url with an unregistered size
- How to wrap WordPress image captions inside H2, H3 tags?
- How to crop image from image src in a specific size
- Resizing only featured images while uploading
- Adding upload button in metabox
- How do i upload an image and return the image id?
- How can I serve different images depending on screen size with wordpress
- Setting up a gallery with images and a zip download
- When inserting images into posts auto add a wrapping div
- Is it possible to prevent users from uploading small images?
- how to base64 encode images in wordpress template
- get_children – wp_get_attachment_image
- Generate fixed image sizes for different pages, eliminate sizes during upload
- How to add an image for unit testing?
- Setup A Default Featured Image
- Find posts without featured image? [duplicate]
- How do I add a featured image to a single post page?
- Custom image size not regenerating when image editted
- How can I autopopulate titles in the media library?
- Image still linked as attachment to page even though it has been deleted
- Disable wordpress image sizes generation
- Is 700,00 jpgs too many for a WordPress site.?
- Change the RSS feed image
- Best option for photo/gallery handling?
- Frontend Post – Allow Only Image File Upload
- Plupload resize for worpdress
- File format of post image attachment
- Question about add_image_size()
- How to display a different image size for mobile
- Photography Based Design – Multiple Images Per Post
- Remove Size images without use
- Woocommerce featured image of page – not product
- Can’t seem to attach uploaded image to post and set it as thumbnail
- Add an attribute to attachments
- Store Snapshot created via wordpress to use with lightbox
- Include caption underneath post images
- How to prevent WordPress scaling large images down
- Can’t get images to align with Gutenberg editor
- Show image EXIF info
- How to translate get_intermediate_image_sizes?
- Add custom metabox to media library images
- Howto use WP built in Thickbox for images?
- Autosort uploads in galleries by filename
- How to display original unmodified thumbnail
- One picture belonging different galleries?
- Hide Featured Image box – isn’t working?
- Using a .pdf file as a page in wordpress
- WordPress Attachments with old images
- How to display image in mail header using wp_mail()
- a: hover issue with image issues [closed]
- Redirect Image Url to a page via htaccess
- How does wordpress name resized image copies?
- How to remove “Image Information” and “post date/author” from a media page?
- Media Editor uppercase extensions to lowercase
- How to change picture size
- How to get rid of undefined variable in previous post image
- Issue with LazyLoad, sometimes my pictures aren’t showing
- Why does WordPress list all image sizes in srcset even if they’re larger?
- Initializing the cropper for image uploads
- How to bulk change media item’s link?
- cant upload media/pictures to my wordpress site, cant upload anything to my database
- Custom Image Widget
- How to use default image as featured image by implement some code in function.php
- attachment_fields_to_save first parameter is null
- Register an embed handler for self hosted images
- Dashboard Create Gallery missing
- Get image thumbnail size urls in media library
- WordPress is showing blank lines instead of images
- I cannot upload images to post or the media library in wordpress
- Change header image size
- How to disable post-thumbnail from generation?
- js alert in add_filter function for image_send_to_editor
- WordPress Shortcode to display featured images only
- all images of past post messed up after changing theme
- Show WordPress Image Title Under Custom Portfolio Image
- Where is this folder [closed]
- Different image heights for different resolutions without distortion
- Get the name of an image [duplicate]
- Lots of attachments is causing slow load
- Image editor not working correctly
- Making a thumbnail if there exist a link with. jpg or .png extension in WordPress
- Aviary + WordPress Media
- Issues with the excerpt (wordcount/HTML/images)
- Resizing to bigger proportions as original not working
- Admin bar stats widget plugin image broken
- Adding social share buttons for individual images on a web page
- How to get the attribues (alt and title) of an image import with ACF [closed]
- How to add a link to media file for every image inserted in content?
- How to get WordPress to resize images for srcset?
- How to give path to image in wordpress?
- Edit multiple posts featured image
- Make Jetpack CDN to filter/ignore images based on SRC [closed]
- images map on website not working
- WordPress + REST API + featured_image
- Some images not loading after changing IP on local wordpress install