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.
I mean the empty thumbnails in the widget “alxtabs” in the sidebar, how to remove it? Many thanks.
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?
There is placeholder in alxtabs when there is no featured image, how to remove it?
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!
SB
(@indradhonu)
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!
@indradhonu
Many thanks for your answer. This works perfectly.
Please am new here, please how do I make my side bar alx tab to have the recent post and popular post tabs…?