Hi! First off, thank you for an awesome theme. I’ve enjoyed setting up this site!
I’m having trouble with featured images. The site I’m setting up won’t often have images for their posts, so I’d like to disable the Featured Image thumbnails that’s required on the Category page. It currently shows a temporary thumbnail (http://jamieboepple.com/its2016beta/wp-content/themes/Newspaper/images/no-thumb/thumbnail.png) and gives an error code:
“td_api_base::mark_used_on_page : a component with the ID: thumbnail is not set.
/home/content/05/10956205/html/its2016beta/wp-content/themes/Newspaper/includes/wp_booster/td_api.php.”
What can I do to overwrite the thumbnail requirement?
Thank you!
Update: I found some settings in Theme Panel > Post Settings > Featured Images.
When I turn off both options (Show Featured Image and Featured Image Placeholder) it still leaves room on the page where the featured image would go, rather than pushing the text over to fill this space.
Is there anything I can do to fi that? Thanks!!
Hello jboepple,
Unfortunately, this is not a simple task to do because you have to change the structure of each block which are using the featured image. I recommend you to use the blocks that not use the featured image, like block 9 and block 10. If you want to display more levels in our theme and you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
Thank you for your understanding!
Hello
I got the same problem on search ,even with with custom images added in the no-thumb folder, template selected in Theme Panel -> Template Setting and Theme Panel -> Categories.
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: thumbnail is not set.
/****/themes/Newspaper/includes/wp_booster/td_api.php
It went away after i added the bellow function in td_api.php after
/**
* the thumbs used by the theme
* Thumb id => array parameters. Wp booster only cuts if the option is set from theme panel
*/
and before the other td_api_thumb::add
Not sure is the correct way to fix it but it worked for me
td_api_thumb::add(‘thumbnail’,
array(
‘name’ => ‘thumbnail’,
‘width’ => 150,
‘height’ => 150,
‘crop’ => array(‘center’, ‘top’),
‘post_format_icon_size’ => ‘small’,
‘used_on’ => array(
‘MX2’, ‘Block 18’, ‘Block 19’, ‘Live search’, ‘tagDiv Image Gallery thumbs’
)
)
);
-
This reply was modified 10 years by
daniel.baron.
Hello daniel.baron,
This error -> http://screencast.com/t/XW2ZouO2hQe comes up in the search/block 21/module 16 when a post has no featured image set to it. This is the case because the search uses the default WP thumbnail. We are working on a fix for this and until we can implement it, you can use this workaround:
You need to edit td_config.php and add this code:
td_api_thumb::add('thumbnail',
array(
'name' => 'thumbnail',
'width' => 150,
'height' => 150,
'crop' => array('center', 'top'),
'post_format_icon_size' => 'normal',
'used_on' => array(
'Big grid 1, 3, 7 - small image'
)
)
);
It should look like so: http://screencast.com/t/RTkWKH6me
Basically, you are just adding another thumbnail to the list in between the existing ones. Then the error will not display anymore.
I recommend you to change the module for Search from Theme panel, like this -> http://screencast.com/t/I0AmPRbybZZN
Hope this helps and let us know how it goes!
Thank you for the message!