Create Beautiful Responsive Photo & Video Galleries For Your Site in Minutes

Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

Mark New or Featured Images in WordPress

How to Mark New or Featured Images in Your WordPress Image Gallery

Written By: author avatar Waseem Abbas
author avatar Waseem Abbas
    

Do you want to make your new or featured images stand out in your gallery? You may need to display your new photos differently from the other images so that your visitors will notice your changes. In this tutorial, we will share how to mark new or featured images in your WordPress image gallery.

You may know about creating the galleries on WordPress pages and posts. However, these image galleries are limited in features and don’t support any custom requirements. For custom needs with image galleries, you need to edit the theme files and it will need development skills. It is also time consuming.

We recommend you to use Envira Gallery that is a multipurpose image gallery plugin. With some basic customization, you can mark new or featured images in your WordPress gallery. It has tons of other amazing features too.

To mark new or featured images in your WordPress image gallery, you’ll need to follow these 3 steps:

  • Step 1. Install and activate Envira Gallery plugin
  • Step 2. Create a new image gallery on your site
  • Step 3. Go to customization panel and add your CSS

By the end of this tutorial, you’ll be able to mark new or featured images on your WordPress gallery that will look like as shown in this image below:

Mark New or Featured Images

Ready to get started? Let’s go!

Step 1: Install and Activate Envira Gallery Plugin

The first thing you need to do is to install and activate Envira Gallery plugin on your WordPress admin backend.

Envira Gallery

For more details on installation process, you should simply follow this guide on how to install Envira Gallery.

Step 2: Create an Image Gallery on Your Site

Upon activating the plugin, you should go to Envira Gallery » Add New and give a title to your gallery. Now drop your photos in the Native Envira Gallery section.

Vintage Old Style Thumbnails

Make sure to hit the Publish button and copy the shortcode from Envira Gallery Code widget.

Copy Shortcode

Now go to Pages/Posts » Add New or edit an existing page/post. In the visual editor, you need to paste the shortcode.

Paste Shortcode

You can learn more about the basic gallery settings on this complete guide to create an image gallery with thumbnails in WordPress.

Step 3: Go to Customization Panel and Add Your CSS

After creating your image gallery, simply go to Appearance » Customize and click on the Additional CSS option.

You need to add this code in the Additional CSS block:


#envira-gallery-wrap-241 div.envira-gallery-item:nth-child(1) img, #envira-gallery-wrap-241 div.envira-gallery-item:nth-child(2) img, #envira-gallery-wrap-241 div.envira-gallery-item:nth-child(3) img {

   border: 5px solid #900;

}

#envira-gallery-wrap-241 div.envira-gallery-item:nth-child(1) .envira-gallery-link:before {

   content: "I'm new";
   position: absolute;
   z-index: 99;
   color: white;
   background-color: black;
   top: 10px;
   right: 8px;
   padding: 8px;

}

Replace 241 with your Envira’s gallery code to which you need to mark new or featured images. You can find your gallery’s number in the shortcode you pasted above.

The “I’m new” text can be replaced with your text for the first image of the gallery, and you can also edit other general CSS for font color, border and more.

After editing your CSS, simply click on the Save & Publish button.

Go ahead and visit your site to see the image gallery where you mark new or featured images to make them identical that will look like as shown in this image below:

Mark New or Featured Images

We hope this tutorial has helped you to learn how to mark new or featured images in your WordPress image gallery. You may also want to check out this guide on how to A/B test featured images in WordPress. In case, you want to rank your images in the search engines, we recommend you to check this ultimage WordPress SEO guide for beginners.

If you like this tutorial, then please follow us on Facebook and Twitter for more free WordPress guides and resources.

author avatar
Waseem Abbas

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how Envira Gallery is funded, why it matters, and how you can support us.

author avatar
Waseem Abbas

The Best Drag and Drop WordPress Gallery Plugin

Envira Gallery: Create, Showcase, and Sell Your Work – Trusted by 150k+ Sites.

Enter the URL of your WordPress website to install

Please enable JavaScript in your browser to complete this form.

Upgrade to Envira Gallery Pro

Unlock even more powerful features designed to make your galleries even more beaituful.

Video Galleries

eCommerce

Social media Sharing

Adobe Lightroom

And much more!

Popular on Envira Gallery Right Now!

How to Create a Beautiful Masonry Image Gallery in WordPress

How to Create a Beautiful Masonry Image Gallery in WordPress

Facebook14TweetLinkedInPin1 Are you looking to showcase your photography or image…
Polished and Protected: How to Watermark WordPress Images

Polished and Protected: How to Watermark WordPress Images

Facebook20TweetLinkedInPin Are you wondering how to add a watermark to…

Add A Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.


Copyright © [#this year :%Y] Envira Gallery, LLC. Envira Gallery is a trademark of Envira Gallery, LLC.