As for the images, you can replace the default placeholder images here: http://screencast.com/t/ZFYxku1ggNs
You will have to keep their name and thumb size though otherwise they will not work.
I am trying to set that when there is no featured image, it should look for the first image in the article and post that. I tried a few approaches, but none seemed to work.
Am I able to use post_thumbnail_html with this theme?
For example, I tried this in functions.php
function auto_featured_image() {
global $post;
if (!has_post_thumbnail($post->ID)) {
$attached_image = get_children( "post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" );
if ($attached_image) {
foreach ($attached_image as $attachment_id => $attachment) {
$img = 'ID) . '" />';
apply_filters('post_thumbnail_html', $img, $post->ID, $attachment_id);
}
}
}
}
add_action('the_post', 'auto_featured_image');
In case it is not clear, and I think I have done a bad job of explaining this, this is what I had hoped to be able to do:
http://media.altimac.com.s3.amazonaws.com/images/sample-mob.png
but if that is not do-able, I am fine with having the narrow gradient for the first three, and then some kind of image placeholder for the rest below so there is not just empty white space. Is there any way this can be done just using CSS? As always, thanks for indulging me.
Thank= you, Catalin. I changed all the /no-thumb images to be a dark blue color but they are still not appearing on the mobile version of the site using the mobile theme. See this pic:
http://media.altimac.com.s3.amazonaws.com/images/obits-mobile3.png
I think I am confused because since I am using this CSS:
@media(max-width:767px){
.category-obituaries .entry-thumb{
display:none;
}}
that should hide the thumbs or their placeholders no matter what, correct? I am not understanding why the first three posts are showing with the narrow gradient (which I do want to have there), but the rest of them below that are not the “top three” have no placeholder at all. Logically, wouldn’t each of them have a tiny gradient there also? Is the gradient generated by CSS, so that it it not actually an image? Sorry to be a pain, I am just trying to make this view optimal for obituaries. For the other categories and the featured page, it really doesn’t matter so much, but we can’t show pictures of dead people with their faces cut off ;-(
Hello Gil Poulsen,
I guess that you want to change the placeholder design when the featured images are not setup, right? So, if you want to do this, you should change all images from no-thumb section with your desired image, like this -> https://www.screencast.com/t/3YpywvYXEP
I hope that help you.
Thank you for your appreciations and for your message!
Thank you. Bogdan. that did the trick. It does make me concerned though that since this is a newspaper theme, and newspapers often contain hundreds of pictures of faces in every edition, are there any plans to allow for a more standard 4:3 aspect for these images? I understand that you are trying to make everything lighter in terms of data transmitted and load time, but if we have to completely disable the images because they are only showing the tops of people’s heads, that kind of defeats the purpose of why the theme is rendering the images that way in the first place. In any case, replacing the images with the gray gradient shown in
http://media.altimac.com.s3.amazonaws.com/images/obits-mobile2.png
is working. Is there any way to insert the same kind of gradient placeholder for the remainder of list of posts? I have inserted one in that screen grab as a model. Again, thank you and I realize this is beyond the scope of your support, so I trulyy appreciate your assistance.
Hello,
Unfortunately this is not a viable solution as the src is not empty. It is populated with the placeholder image. The most elegant solution to this is to replace the placeholder images with your own custom image to show when the post has no featured image (you need to keep the file name and image dimensions the same though: https://www.screencast.com/t/X1qvdHpZf4rO). Or as an alternative use a plugin that will grab the first post image and set it as featured.
Thank you!
Hello Gerald,
The placeholder images can be found in the main theme files here: https://www.screencast.com/t/qJfQmODhqz
You can edit them and replace them with your own images but keep in mind that you have to maintain the image size and file name in order for this to work properly.
Thank you!
Hello,
The theme has no integrated function to know if a post has a featured image set or not. The simplest method people use for posts that do not have a featured image is to use the placeholder image the theme provides and edit it to your own custom image so all of the posts that do not have a featured image will have thie one image you specify for them. One general image for posts. The placeholders can be found here:
https://www.screencast.com/t/8eGluunX2Yf
You have to keep the file nem intact and the image sizes the same.
Thank you!
Hello,
The placeholder is turned on or off for the whole website. There is no setting to turn it on or off for specific elements. You can remove the thumbnail or placeholder image from specific blocks using css. If you need such a code provide a link so I can inspect the block
Thank you!
i have sorted this, my question is now, it is possible to have css code that removes the image placeholder for individual categories, or is it that it is on or off for the whole site>
Thanks
It is still not showing up on our end. I already clocked on the logo and on categories and I did so again but still there was no issue.
If you are referring to these posts https://www.screencast.com/t/wKsl9TEip, that is NOT an error. You are seeing a theme placeholder image because those posts do not have a featured image set. Please add featured images for your posts so the theme can show a thumbnail instead of the placeholder: https://forum.tagdiv.com/featured-image-or-video/
Thank you!
Thank you Simion, it was due to not showing feature image placeholder… Post didn’t have any image so when placed on big grid it shows no image…
Hi,
I have disabled all featured and placeholder image, which is working fine on desktop view but i still see empty space on mobile view as shown here and here.
Actually I dont want to display those empty spaces, rather pull the article title towards left on home page and also for related post.
You can see this live on my website jok9.com when using mobile view
Thanks,
Avinash
When I try to upload pdfs to the media library, it doesn’t work. The file appears to be there, but there’s a placeholder image in the media library, and if you to the attachment page, it’s blank.
https://www.dropbox.com/s/yy9yud2kqel48wt/Screenshot%202017-02-09%2020.53.57.png?dl=0
Image file formats seem to be uploading fine.
Hello Chito,
Unfortunately, the mobile theme does not have any placeholder for blocks when the featured image is not active. I have added to our list of improvements and we will try fixing it in near future updates.
Thanks for your understanding!
Hello –
Purchased new theme .. Have old site which has almost 1500+ posts with images in content & NO Featured image.
In your newspaper theme , it works on featured image / placeholder image.
How to show image from content in case there is no featured image in the contents…..
As soon as I activate the newspaper theme , most of the blocks are showing blank images.
Is there an easy way to show the content image if featured image is not part of the content. (This is for all the old content)
Thx for your help
As for the images, you can replace the default placeholder images here: http://screencast.com/t/ZFYxku1ggNs
You will have to keep their name and thumb size though otherwise they will not work.
Hi…
Am wondering where can i upload a featured image palceholder in the theme to be shown when a blog is made without a feature image.
Please help..
Thanks,
Hello Catalin,
Thank you for your help,you helped me with spacing, maybe I wasn’t clear enough with my help request so I do need a little bit more of fine tuning:
I do not want the color of the two big images to be the same as it’s shown in your screencast –> https://www.screencast.com/t/cJ5X4QPJOtW
Why am I insisting on this?
Because it is supposed that there will go the two big news, the most important ones and the problem here is to visually differentiate them, for example: the pic on the left may contain a big red colored title, and the right one may contain a let’s say brown with a little text shadow on it.
I really need to achieve this, otherwise I have to create a picture placeholder on the top of the homepage and upload images after a good photoshop editing, and again in this case will be the problem on how to show this pics on full width or in a way like Bild.de does.
I really hope you’ll help me on this!
Indro,
A category (including its sub-categories) do not have featured image as it is mere compilation of various circular and notification issued by Government authorities. So I have made following arrangement for showing it without image placeholder:
1. Selected post style 5 for single view
2. For search results and archive, I made following change in css:
.category-news .author-box-wrap{
display:none!important;
}
.category-news .item-details{
margin-left:0px!important;
}
.category-news .td-post-author-name {
display: none;
}
.td_module_16{
padding-bottom: 10px;
}
.td_module_16 .item-details{
min-height: 0px!important;
}
.search .item-details{
margin-left:10px!important;
}
.search .td-module-thumb{
display:none;!important;
}
.td-excerpt{text-align:justify!important;}
Now my problems are:
1. The Category page of sub categories are not considering aforesaid css rules (for removing image placeholder place, shifting content to left, etc). Does I need to provide same css rule for each sub-category, if yes then how. Or there is any other way to achieve it.
2. Similarly, tags are also not following aforesaid css rules. It is to be noted that tag terms may be common for this category and other category which have featured image.
3. How to remove comment count symbol for this category and its sub-categories
4. In search box in the navigation bar, image placeholder is removed but I am unable to reduce height of each search result. See https://www.dropbox.com/s/nx9xvqlvdwc4v26/category%20result.png?dl=0
5. The category below the result shows one category only instead of showing all categories selected for that post.
6. Is it possible to restrict search result from post and page and not from custom post type. E.g. I have custom post type called FAQ, in that I have created various FAQ (one FAQ is one post for it) on different subjects (considered that as database). That FAQ is shown on front end through shortcode in regular post according to subject of post. I want to search result should not show custom post type of FAQ but show regular post in which it is shown through shortcode.
7. The date shown in the meta data, is it published date or last modified date.
8. Is it possible to add news ticker in the mobile theme.
9. Further, category page repeats that category meta data for each post, I am unable to understand the role of such repeat display of category terms. See https://www.dropbox.com/s/6zwq6hhu2p9r00w/category%20repeat.png?dl=0
Thanks for your reply.
Regarding Q 2 of change of pattern of reviews, I know that there are three system. I just want to change colour, etc. E.g., In star, it is showing black colour star, I just want to change the colour from black to golden.
Further, If I have only one criteria for review then also it is showing that criteria review start + summary stars (which I mean an average) but if there are only one criteria then showing the same twice is not worthful.
Regarding Q 4 relating to youtube, etc subscriber, I have bought the theme only 2 days ago, so I understand that the plugin is upto date. Though youtube subscriber shows 0 value though by clicking if I visit to youtube page it shows 33 subscriber.
Regarding Q 5 relating to menu in mobile, where to set colour combination (or your combination) for the background, my queries is that menu is showing on clicking burger sign on mobile but it looks like that please see screenshot at https://www.dropbox.com/s/8bnhu1mslnwd51e/MobileMenu.png?dl=0
Regarding Q 6 relating to mobile theme, I like the mobile theme and understands that it is different from desktop theme. I want to hide featured image for certain post categories on the mobile as hidden in the style – 5 of the desktop view. Is it possible.
Regarding Q 8 relating to mobile editor, as the same is not available for post, so can I presume that for posts (not pages) content created for desktop version (i.e., through visual composer, etc) will also show in mobile.
Q 9 (new) relating to hide image placeholder, is it possible to hide image placeholder space (see http://viewpublish.com/category/news/) for few post categories in article display view (at archive page of that category) as I dont have featured image for that post category. Similarly hide image placeholder in front page for that too.
Hi
it’s some days that the Pinterest button doesn’t work correctly (just Pinterest, other buttons works perfectly)
when I click on it to share the post the windows doesn’t show any image but just the broken image placeholder)
take a look here: http://www.greenplanner.it/2017/01/16/claps-furlan-volontari-terremoto/
can you please help?
thanks
Paolo
i am stil building my site and tried to put images (as placeholder for ads)
and it become like this http://prntscr.com/dvf9fg
how to make it become proportional like the site that inspired me to buy this themes?
(http://prntscr.com/dvf9rk)
thanks in advance
This has happened to me a number of times as well. I just regenerated thumbs for another reason. I had to load a photo as the featured image for the video to display. Otherwise, it was displaying a blank placeholder. For some reason the video thumb is not consistently produced.