| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/cwd/wp-content/themes/webion/config/ |
Upload File : |
<?php
/**
* Thumbnails configuration.
*
* @package webion
*/
add_action( 'after_setup_theme', 'webion_register_image_sizes', 5 );
/**
* Register image sizes.
*/
function webion_register_image_sizes() {
set_post_thumbnail_size( 370, 260, true );
// Registers a new image sizes.
add_image_size( 'webion-thumb-m', 370, 280, true );
// Posts default listing
add_image_size( 'webion-thumb-listing', 1000, 750, true );
add_image_size( 'webion-thumb-grid-3col', 1000, 750, true ); // Posts Grid 3 Columns
add_image_size( 'webion-thumb-grid-2col-sidebar', 1000, 750, true ); // default Posts Grid 2 Columns with Sidebar
add_image_size( 'webion-thumb-nav', 115, 85, true ); // Post Navigation
add_image_size( 'webion-thumb-related', 400, 300, true ); // Related Posts
add_image_size( 'webion-thumb-post-widget', 80, 80, true ); // Recent Posts Widget
add_image_size( 'webion-thumb-search-result', 180, 240, true ); // Search Result Page
add_image_size( 'webion-thumb-404', 90 , 70, true );
// WooCommerce
add_image_size( 'webion-thumb-wishlist', 60, 91, true ); // Wishlist
add_image_size( 'webion-thumb-products-cat', 360, 420, true );
add_image_size( 'webion-thumb-product-archive', 370, 450, true );
add_image_size( 'webion-thumb-product-single', 650, 830, true );
}