Support » Theme: Hueman » 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,

    1. If you added “Additional CSS”, then backup/copy into a local text file. because This will be get lost after switching to child theme
    2. First Create Child Theme of Current theme using “Childify Me
    3. Activate Child Theme
    4. Goto Dashboard>Appereance>Editor
    5. MAKE SURE you selected your Child Theme from Dropdown above editor
    6. open “functions.php” from files list at right side of editor.
    7. Paste This code there:
    8. <?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()
    9. Here is a post showing Where all those different thumbnails are going to showup.
    10. Save the code by clicking “Update File”
    11. Now open “style.css” and paste CSS data we copied to text file earlier.
    12. 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
    13. 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.

    • This topic was modified 3 years, 7 months ago by hardikwp.
  • The topic ‘Here is way to Customize Default Thumbnail Sizes in Hueman Theme’ is closed to new replies.