Title: remove empty thumbnails in alxtabs
Last modified: August 21, 2016

---

# remove empty thumbnails in alxtabs

 *  Resolved [lixunhuan](https://wordpress.org/support/users/lixunhuan/)
 * (@lixunhuan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/)
 * Dear author, some of my posts listed in alxtabs has no thumbnails but only empty
   image blocks. Could you kindly tell me how to remove the empty image blocks? 
   Thanks a lot.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Alexander Agnarson](https://wordpress.org/support/users/alxmedia/)
 * (@alxmedia)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587724)
 * In content.php / content-featured.php remove:
 *     ```
       <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
       ```
   
 * With a child theme.
 *  Thread Starter [lixunhuan](https://wordpress.org/support/users/lixunhuan/)
 * (@lixunhuan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587727)
 * I mean the empty thumbnails in the widget “alxtabs” in the sidebar, how to remove
   it? Many thanks.
 *  [Alexander Agnarson](https://wordpress.org/support/users/alxmedia/)
 * (@alxmedia)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587734)
 * Ops, sorry – I responded to the wrong thread here.
 * When you say empty thumbnails – is there no placeholder image at all, or is there
   a placeholder?
 *  Thread Starter [lixunhuan](https://wordpress.org/support/users/lixunhuan/)
 * (@lixunhuan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587755)
 * There is placeholder in alxtabs when there is no featured image, how to remove
   it?
 *  [IceReaper](https://wordpress.org/support/users/icereaper/)
 * (@icereaper)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587760)
 * Hey there this will fix your problem.
 * Go to the following:
    `wp-content/themes/hueman/functions/widgets/alx-tabs.php`
 * Then find line 85:
    `<ul id="tab-recent" class="alx-tab group <?php if($instance['
   recent_thumbs']) { echo 'thumbs-enabled'; } ?>">`
 * Change:
    `{ echo 'thumbs-enabled'; } -to- { echo 'thumbs-disable'; }`
 * NOTE: This will only change the “Recent Posts” part of the tab. If you want to
   change the other 4 parts check lines 85, 134, 171.
 * I hope this helps. Good luck!
 *  Thread Starter [lixunhuan](https://wordpress.org/support/users/lixunhuan/)
 * (@lixunhuan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587762)
 * Thanks for your answer!
 *  [SB](https://wordpress.org/support/users/indradhonu/)
 * (@indradhonu)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587791)
 * Hi lixunhuan,
    I don’t know how the answer has solved your query, hence opening
   the thread again and giving some inputs.
 * > wp-content/themes/hueman/functions/widgets/alx-tabs.php
   > Then find line 85:
   >  <ul id=”tab-recent” class=”alx-tab group <?php if($instance[‘
   > recent_thumbs’]) { echo ‘thumbs-enabled’; } ?>”>
   > Change:
   >  { echo ‘thumbs-enabled’; } -to- { echo ‘thumbs-disable’; }
 * The above edits will disable all the thumbnails of the Alx tabs(whether you have
   attached a featured image or not). But, that can also be obtained simply by finding
   the Appearance>Widgets>Alx Tabs and disable the thumbnails there by unchecking
   the box “show thumbnails” . No need to edit any files.
 * But, I think you want to retain the thumbnails where you have added featured 
   images and do not want to show empty thumbs when there is no featured images,
   right?
    For that, you have to edit :- wp-content/themes/hueman/functions/widgets/
   alx-tabs.php Go to line 95:- `<img src="<?php echo get_template_directory_uri();?
   >/img/thumb-small.png" alt="<?php the_title(); ?>" />`. Delete the line completely.
   This will get you rid off the empty thumbs for non-attached featured images posts.
   To disable the same empty thumbs from ‘Popular posts’ tab, you have delete the
   same line on Line 145. I have done the same on my site. Cheers!
 *  Thread Starter [lixunhuan](https://wordpress.org/support/users/lixunhuan/)
 * (@lixunhuan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587792)
 * [@indradhonu](https://wordpress.org/support/users/indradhonu/)
    Many thanks for
   your answer. This works perfectly.
 *  [blogtest](https://wordpress.org/support/users/blogtest/)
 * (@blogtest)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587919)
 * Please am new here, please how do I make my side bar alx tab to have the recent
   post and popular post tabs…?

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘remove empty thumbnails in alxtabs’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

 * 9 replies
 * 5 participants
 * Last reply from: [blogtest](https://wordpress.org/support/users/blogtest/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/remove-empty-thumbnails-in-alxtabs/#post-4587919)
 * Status: resolved