0
1
2
3
4
add_image_size( 'sml_size', 300 );
add_image_size( 'mid_size', 600 );
add_image_size( 'lrg_size', 1200 );
add_image_size( 'sup_size', 2400 );
Each call to the function includes a name (so WordPress can identify the size) and a width. The new sizes will be 300, 600, 1200 & 2400 pixels wide. It is possible with the add_image_size function to have WordPress also set the height or crop the image, but the example above will keep the original image aspect ratio.
The example above only shows four new image sizes being added, but you may want to add more or less… this will be based on your theme design. Now any time an image is upload to WordPress, it will generate the new image sizes. The next step is to include them in the HTML.
Modify Function.php And Get More Image Sizes Modify Function.php And Get More Image Sizes

Every time you can upload image on Wp at its negative sizes. Its also automatically genrates 3 resized copies in the sandard sizes. 1...

Read more »

0
Replace Content in Your WordPress using SQL Replace Content in Your WordPress using SQL

Like we all know, we can use SQL to replace or remove some content in our WordPress using  phpMyAdmin , on this post I will show you  How ...

Read more »

0
Smart Protector v5.7 – Pro WordPress Copy Protection Smart Protector v5.7 – Pro WordPress Copy Protection

Smart Content Protector v5.7  is the go to Plugin to Protect the Text and Images  in your WordPress site. In order to avoid Plagiarism, i...

Read more »
 
 
Top