Here is way to Customize Default Thumbnail Sizes in Hueman Theme
-
I do not know PHP, so After surfing a lot and by combining multiple threads on different posts,
I FOUND it.
In HUEMAN Theme,- If you added “Additional CSS”, then backup/copy into a local text file. because This will be get lost after switching to child theme
- First Create Child Theme of Current theme using “Childify Me“
- Activate Child Theme
- Goto Dashboard>Appereance>Editor
- MAKE SURE you selected your Child Theme from Dropdown above editor
- open “functions.php” from files list at right side of editor.
- Paste This code there:
-
<?php /* Write your awesome functions below */ function thisisthefunctionname() { // Custom Thumbnail sizes by "Your name or something". // I want to give 16:9 Ratio to all my thumbnails. // in first thumbnail, 285 is Width & 160 is Height. add_image_size( 'thumb-small', 285, 160, true ); add_image_size( 'thumb-standard', 569, 320, true ); add_image_size( 'thumb-medium', 520, 293, true ); add_image_size( 'thumb-large', 720, 405, true ); add_image_size( 'thumb-xlarge', 980, 550, true ); add_image_size( 'thumb-xxlarge', 1320, 500, true ); } add_action( 'after_setup_theme', 'thisisthefunctionname', 11); // because of priority 11 this should be executed after hu_setup()
- Here is a post showing Where all those different thumbnails are going to showup.
- Save the code by clicking “Update File”
- Now open “style.css” and paste CSS data we copied to text file earlier.
- From now on, whenever you upload an image, the theme will crop it into our NEW dimensions for thumbnails. If you already have images uploaded onto your site, then you need to regenerate thumbnails using this Plugin
I believe this will save your days of research.
I hope Hueman author & Contributor would support this post for further details regarding upcoming questions & feedbacks.
- The topic ‘Here is way to Customize Default Thumbnail Sizes in Hueman Theme’ is closed to new replies.