Making your own screenshot for your Divi child theme

Making your own screenshot for your Divi child theme

When I presented the Divi Children plugin on my post Divi Children: The easiest way to create a Divi child theme a couple of weeks ago, I said that the plugin automatically uploads a default screenshot for your new child theme, but also that you could change that screenshot at any time.

A theme screenshot is usually a representation of the way a website looks when using that particular theme. So, if you have just created your child theme but done nothing else yet to customize your site, it doesn´t make sense to “take a picture” of it (unless you want to use a screenshot of the “logo” type).

That´s the reason why I decided to make Divi Children upload a default screenshot at the moment it creates your new Divi child theme, instead of letting you choose your image from the beginning.

That way you first create your Divi child theme, then add all the custom code you want to it and, once you´re satisfied with the final look and feel of your site, then it´s time to make a screenshot that will represent it. After you´re happy with your new screenshot, all you have to do is to go back to Divi Children, click on the Change Screenshot tab of the plugin page and upload your new screenshot, either by using the Media Uploader or by pasting the URL to your image.

Ok, so far so good. Except that some of you may be wondering how do you make your own screenshot. If that is your case, don´t worry. It is a very easy process.

What do we need?

We won´t need any special tools for creating the screenshot image or for making it available for WordPress to use as the child theme´s screenshot. All what we are going to use is:

  • An image editing computer program, to create the screenshot image and to give it the right format.
  • The Divi Children plugin, to quickly place your image inside your child theme without the need for an FTP client and a FTP account to access your server.

If you don´t use Photoshop or any other commercial image editing software, you could always use Paint (which is included in your Windows). But if you plan to work a little more with images, I´d recommend Paint.NET, which is a free yet quite powerful image and photo editing software. I´m talking about Windows here, but I´m sure that Mac users also have a good free available alternative.

And if you are not using Divi Children yet, what are you waiting for? It is a free plugin!

Creating the screenshot image

If you have already activated your child theme, go ahead and navigate to the homepage of your site (or any other page if you want your screenshot to represent that one), and press the “Print Screen” key of your computer keyboard (it may read “PrtScn”).

Now a copy of your screen is on your clipboard, ready to be pasted anywhere. Like I said, it´s like taking a picture of your site. Open your favorite image editing program and paste it on a new blank file.

If you are going to use Paint.NET, all you have to do is to click on “New” and paste your image on the blank canvas. Now you have your screenshot image ready to be edited. What you need to do now is to crop that image to make it show only your homepage (getting rid of the surroundings such as Windows bars etc.), resize it and save it. To crop it click the “Select a Rectangle” tool, choose the part of the image you want to become your final screenshot, and click “Crop selection”:

make-screenshot-divi-child-theme

Final editing

The standard size for theme screenshots in WordPress is 600 x 450 pixels.

Once you have your first rough cropping done, click “Resize” under the “Image” menu and enter 600 pixels for the width or horizontal value and let the software calculate the vertical appropriate value by selecting to keep the image aspect ratio.

The resulting resized image will have a height that you´ll need to change to 450 pixels now.

Since you don´t want your image to get distorted, you will give it the desired height not by resizing it, but by cropping it again. This time you will only crop it vertically, adapting the rectangle selection tool window until you get the 600 x 450 pixels size.

Now your image has the right size to make it suitable for WordPress to use it as a theme screenshot, so go ahead and save it. Go to the File Menu and choose “Save As”, navigate to the folder where you want to save the image locally in your computer, type “screenshot” as the file name for the image, select PNG or JPEG as the file type and click the “Save” button.

The screenshot file for your child theme is now ready. Go to Appearance > Divi Children, click on the Change Screenshot tab of the plugin admin page, upload your new screenshot, and your Divi child theme is ready with a renewed look!

screenshot

Luis Alejandre

Luis is the creator of Divi4u and the editor of this blog. You can read more about Luis in his About page. Luis also created and runs the free online WordPress tool WPThemeDetector.
Liked this? Please share it!

4 Comments

  1. I cannot get the screenshot to work; it sends “The file URL you provided for your new screenshot is not valid

    The screenshot was not changed.” error, no matter what. It says the file cannot be found but I KNOW it’s there and in the correct directory… Any help is greatly appreciated =)

    Reply
    • The plugin first uses a simple function to check if the file exists (no matter what kind of file, it just makes sure there is a file with that URL), and afterwards it checks if it actually is an image file, for the sake of safety. The error message you´re getting belongs to the first check which, like I said, is quite simple. So it looks like the file doesn´t really exist. Now if you´re sure it is there and the URL you entered is correct, the only reason I can think of is that you don´t have enough permissions in your site. If that is the case, you should contact your hosting company.

      However, why don´t you use the “Upload or Choose Image” button of the plugin instead? It will open the WordPress Media Uploader and you can load your screenshot from there.

      I included the URL option just in case you didn´t want to upload your screenshot in order to save memory resources, or in case you wanted to upload the image from a location other than your WordPress installation. The “Upload or Choose Image” button is the easiest way, though. And, if you don´t plan to use that image anywhere in your site other than as your child theme screenshot and you want to save resources, you can always delete the image from your WordPress Media Library after changing your screenshot (a copy of the image will be saved as your new screenshot in your child theme folder, so there´s no problem in getting rid of the original).

      Reply
  2. Luis,
    Have you had anyone say they had issues with changing the child theme screenshot? When I select my image (600×450) in my media library, it says that “Screenshot has been Changed” View changed screenshot, but it’s still the original. Do you have any idea about how to resolve this? This is a new install and no plugins added at the moment.

    Thanks so much for the awesome child theme.

    Mike

    Reply
    • Yes! I get the same error message regardless of the upload method I select. I cannot find anyone who can help.

      “The file URL you provided for your new screenshot is not valid”

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

×

Get the new Divi 3.0... With a special membership discount for our readers! Get a DISCOUNT on Elegant Themes membership