Images in WordPress: Add More Dimensions!

Many WordPress templates for blogs emphasize photos and images. As a blogger, you are therefore forced to use beautiful images. Adding an image to your blog seems very simple, but bloggers often use the wrong dimensions. I myself always made an image exactly the right size, but what if you want to use a new WordPress template in two years? All images in your blog posts will probably have to be adjusted. In this blog post I will explain how you can add extra dimensions and also why this is necessary!

Standard Dimensions in WordPress

By default, WordPress has the following dimensions: original, large, medium and thumbnail image. You can change these dimensions via Settings > Media. Often these are not enough dimensions and you still have to resize the images. Resizing images has 2 disadvantages:

  • A small image is often not visible on mobile. An image that you place next to the text will be displayed too small on mobile.
  • When you change templates, the dimensions of your images will probably change. Often the dimensions are not correct and you will have to adjust all the images.

That’s why it’s always better to add an extra dimension, so you can use the original/larger photo afterwards.

The next two steps require you to edit your how to build telemarketing data template’s functions.php file. This can be done via the WordPress dashboard, but I recommend downloading/editing/uploading this file via FTP. When editing files via the dashboard, one simple mistake in your code can break your entire website!

Step 1: Add a new dimension

How to Build Telemarketing Data

For each dimension you need to enter a unique name. The text ‘ unique_name ‘ still needs to be replaced. The values ​​320 and 150 represent the width and height in pixels and “true” indicates whether you want to crop the image to this dimension. Your code would look like this: add_image_size ( ‘image750’, 750, 350, true );

Note! You can also use the advanced “crop” setting. For that I refer you to the developer manual .

If you have added this function to your hoe kinne jo in marketingburo kieze: jo 7-stap hantliing functions.php file, then every time a new photo is uploaded, a version with the new size will be created. Note! Old images do not have this size yet, (you can use the regenerate thumbnails plugin for that).

The next step will make it easy for you to add the image to your blog post.

Step 2: Add the dimension to the Media Library

In order to use the dimension within the WordPress media library, it is important to paste the following code into the functions.php file below the previous piece of code

This filter function ensures that the dimension appears in the selection menu

If you have defined multiple dimensions in the previous step, it is necessary to add extra array elements. For multiple dimensions you must copy the following line: ‘unique_name’ => ‘Dimension for blogpost’,

In the “unique_name” field, enter the name you entered in step 1 and the item “blogpost_size” is the name for the size that should appear in your media library. Both functions may seem a bit complicated, especially if you haven’t modified your template files that often.

Keep improving your knowledge!!!

With the help of the above tips, you can hopefully america email list start optimizing your blog posts. Of course, there are many more adjustments possible, which will ensure that you are found even better. For example, you can:

  • Improve your position by getting more links to your website.
  • Optimize your category pages so that they can be indexed too.
  • Or improve your blog’s loading time.

My last tip is: keep learning! Gain new knowledge about SEO and make sure that you keep improving your blog. A high position takes time and that number one spot is not something you just reach. However, the basics can already help you to make a difference.

Leave a comment

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