- NewspaperFeatured Images
- NewspaperCredit System
- NewspaperLockers
- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperTheme Thumbs
Hi
In this image http://imgur.com/mzLmtd5 you’ll see when I try to enter an amount for a coupon code discount the height is too low.
In CSS if I change the height to 35px it works fine but I don’t know what CSS to write to make this change permanent
Elements:
<<div class="control"><input type="number" class="" style="" name="_wcv_coupon_post_meta_coupon_amount" id="_wcv_coupon_post_meta_coupon_amount" value="" placeholder="Coupon Amount"> </div>
Style (I have made the change to 35px height so it works fine)
media="all"
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
display: inline-block;
height: 35px;
padding: 4px 6px;
margin-bottom: 10.5px;
font-size: 14px;
line-height: 21px;
color: #555;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
vertical-align: middle;
}
Is this enough information to be useful?
thanks
I have added some lines in custom CSS and it now seems to be working fine.
i believe that the td-module-thumb height was same for td_module_mx1 as well as td_module_mx2.
td_module_mx1 is the class for the first image in the block, which is bigger than the other images in the block.
That’s why the video logo was not appearing to be proper in the smaller images, because it was aligned to be in center of the overall image placeholder height, which was same as the height of the big image.
So i added a css to set the height of images in td_module_mx2 and it seems to be working fine now.
Thank you.
Hello thecontractman,
If you want to change the default image from the posts that have not featured image set it, you have to replace all the images from this folder -> http://screencast.com/t/JaSmhgZL2hB After you have follow this step, when you do not have featured image, your desired image will appear in placeholder.
Hope this helps!
Thank you for the message!
Hi
I am not sure why this error appear on your site as the cede it’s tested and works fine. Try to replace only this function in td_module.php file. The function begin here: http://screencast.com/t/s9R3SxjokIL and ends here: http://screencast.com/t/5DMZLPKdApi Delete the origilanl function then paste this one:
function get_image($thumbType, $no_link_image = false) {
$buffy = ''; //the output buffer
$tds_hide_featured_image_placeholder = td_util::get_option('tds_hide_featured_image_placeholder');
// do we have a post thumb or a placeholder?
if (!is_null($this->post_thumb_id) or ($tds_hide_featured_image_placeholder != 'hide_placeholder')) {
if (!is_null($this->post_thumb_id)) {
//if we have a thumb
// check to see if the thumb size is enabled in the panel, we don't have to check for the default wordpress
// thumbs (the default ones are already cut and we don't have a panel setting for them)
if (td_util::get_option('tds_thumb_' . $thumbType) != 'yes' and $thumbType != 'thumbnail') {
//the thumb is disabled, show a placeholder thumb from the theme with the "thumb disabled" message
global $_wp_additional_image_sizes;
if (empty($_wp_additional_image_sizes[$thumbType]['width'])) {
$td_temp_image_url[1] = '';
} else {
$td_temp_image_url[1] = $_wp_additional_image_sizes[$thumbType]['width'];
}
if (empty($_wp_additional_image_sizes[$thumbType]['height'])) {
$td_temp_image_url[2] = '';
} else {
$td_temp_image_url[2] = $_wp_additional_image_sizes[$thumbType]['height'];
}
$td_temp_image_url[0] = td_global::$get_template_directory_uri . '/images/thumb-disabled/' . $thumbType . '.png';
$attachment_alt = 'alt=""';
$attachment_title = '';
} else {
// the thumb is enabled from the panel, it's time to show the real thumb
$td_temp_image_url = wp_get_attachment_image_src($this->post_thumb_id, $thumbType);
$attachment_alt = get_post_meta($this->post_thumb_id, '_wp_attachment_image_alt', true );
$attachment_alt = 'alt="' . esc_attr(strip_tags($attachment_alt)) . '"';
$attachment_title = ' title="' . esc_attr(strip_tags($this->title)) . '"';
if (empty($td_temp_image_url[0])) {
$td_temp_image_url[0] = '';
}
if (empty($td_temp_image_url[1])) {
$td_temp_image_url[1] = '';
}
if (empty($td_temp_image_url[2])) {
$td_temp_image_url[2] = '';
}
} // end panel thumb enabled check
} else {
//we have no thumb but the placeholder one is activated
global $_wp_additional_image_sizes;
if (empty($_wp_additional_image_sizes[$thumbType]['width'])) {
$td_temp_image_url[1] = '';
} else {
$td_temp_image_url[1] = $_wp_additional_image_sizes[$thumbType]['width'];
}
if (empty($_wp_additional_image_sizes[$thumbType]['height'])) {
$td_temp_image_url[2] = '';
} else {
$td_temp_image_url[2] = $_wp_additional_image_sizes[$thumbType]['height'];
}
/**
* get thumb height and width via api
* first we check the global in case a custom thumb is used
*/
if (($td_temp_image_url[1] == '') and ($td_temp_image_url[2] == '')) {
$td_thumb_parameters = td_api_thumb::get_by_id($thumbType);
$td_temp_image_url[1] = $td_thumb_parameters['width'];
$td_temp_image_url[2] = $td_thumb_parameters['height'];
}
$td_temp_image_url[0] = td_global::$get_template_directory_uri . '/images/no-thumb/' . $thumbType . '.png';
$attachment_alt = 'alt=""';
$attachment_title = '';
} //end if ($this->post_has_thumb) {
$buffy .= '<div class="td-module-thumb">';
if (current_user_can('edit_posts')) {
$buffy .= '<a class="td-admin-edit" href="' . get_edit_post_link($this->post->ID) . '">edit</a>';
}
if ($no_link_image == true){
$buffy .= '<img width="' . $td_temp_image_url[1] . '" height="' . $td_temp_image_url[2] . '" class="entry-thumb" src="' . $td_temp_image_url[0] . '" ' . $attachment_alt . $attachment_title . '/>';
// on videos add the play icon
if (get_post_format($this->post->ID) == 'video') {
$use_small_post_format_icon_size = false;
// search in all the thumbs for the one that we are currently using here and see if it has post_format_icon_size = small
foreach (td_api_thumb::get_all() as $thumb_from_thumb_list) {
if ($thumb_from_thumb_list['name'] == $thumbType and $thumb_from_thumb_list['post_format_icon_size'] == 'small') {
$use_small_post_format_icon_size = true;
break;
}
}
// load the small or medium play icon
if ($use_small_post_format_icon_size === true) {
$buffy .= '<span class="td-video-play-ico td-video-small"><img width="20" class="td-retina" src="' . td_global::$get_template_directory_uri . '/images/icons/video-small.png' . '" alt="video"/></span>';
} else {
$buffy .= '<span class="td-video-play-ico"><img width="40" class="td-retina" src="' . td_global::$get_template_directory_uri . '/images/icons/ico-video-large.png' . '" alt="video"/></span>';
}
} // end on video if
}
else{
$buffy .='<a href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">';
$buffy .= '<img width="' . $td_temp_image_url[1] . '" height="' . $td_temp_image_url[2] . '" class="entry-thumb" src="' . $td_temp_image_url[0] . '" ' . $attachment_alt . $attachment_title . '/>';
// on videos add the play icon
if (get_post_format($this->post->ID) == 'video') {
$use_small_post_format_icon_size = false;
// search in all the thumbs for the one that we are currently using here and see if it has post_format_icon_size = small
foreach (td_api_thumb::get_all() as $thumb_from_thumb_list) {
if ($thumb_from_thumb_list['name'] == $thumbType and $thumb_from_thumb_list['post_format_icon_size'] == 'small') {
$use_small_post_format_icon_size = true;
break;
}
}
// load the small or medium play icon
if ($use_small_post_format_icon_size === true) {
$buffy .= '<span class="td-video-play-ico td-video-small"><img width="20" class="td-retina" src="' . td_global::$get_template_directory_uri . '/images/icons/video-small.png' . '" alt="video"/></span>';
} else {
$buffy .= '<span class="td-video-play-ico"><img width="40" class="td-retina" src="' . td_global::$get_template_directory_uri . '/images/icons/ico-video-large.png' . '" alt="video"/></span>';
}
} // end on video if
$buffy .= '</a>';
}
$buffy .= '</div>'; //end wrapper
return $buffy;
}
}
If you still can’t manage to solve this issue please address us via email at contact@tagdiv.com and provide wp-admin and ftp access so we can take a closer look at this issue.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hello Dhananjay,
I suppose that you are referring to the size of the placeholder from post template 8 feature and the size you can find in this image -> http://screencast.com/t/bhkR8znPrwlZ As you can see, this kind of template uses as the feature image from the background image. You can add in this placeholder the desired image using background-image option code.
If you want to add an image for that placeholder from style 8, you have to use a bit of CSS to add the background image to fit the image inside the box. Please try the code below and add it in Theme panel->Custom CSS area.
The code is ->
.td-post-header-holder{
background-image: url('http://wowslider.com/sliders/demo-5/data/images/saarschleife.jpg');
background-repeat: no-repeat;
background-size: 1164px 570px;
}
}
The result you should see here -> http://screencast.com/t/do35lAR4S
If is not what you mean, please provide more details about your desired changes.
Thank you for the message!
Hi
Unfortunately to display the placeholder image inside post content will require a bit of custom work. Basically the implementation should be similar with the one used on modules bot obviously must be adapted at post content.
We would have gladly made it for you but we are a small team and we are working very hard on the development, updates, fixes and support and time does not allow us to provide any custom services at the moment. You can always get a freelancer from sites like: http://studio.envato.com/
Thanks!
Yes, the placeholder only works for thumbnails not the “actual” post itself, as you would need to set it as a featured image, which defeats the purpose (meaning if you set a featured image with your default image, you’d get that thumb automatically…) — meaning, the placeholder image doesn’t get set into the post if you don’t put an image in the post, as that is not its purpose.
Luckily TagDiv has good support to help with weirdo stuff like this … be glad you’re not using Woo themes or something as they would just answer support ticket with ‘hire somebody, goodbye’ .. 🙂
@neotrope I’d actually tried many of the things you suggested. I used both Photoshop and iPhoto to resize images, and when I uploaded my images I’d actually deleted the previous ones first and then uploaded my images, each of which had been named what the originals had been names. I don’t believe I have any sort of lazy load turned on and I’m not using https. I’ve been cleaning my caches several times a day hoping that maybe it was already working and I’m just not seeing it.
I do appreciate all feedback, though. Apparently my coding was all correct, and @Andrei_luca was able to get it working. The only issue I’m having now is that the placeholder image shows up everywhere except on the actual post itself.
If the image works with the default image, but not with your version, it may be that the file you’re uploading to replace the original image is malformed in some way, or that the caching is not letting go of the cached file.
You might try this
assuming the file permissions of the files you’re uploading via FTP actually have the correct CHMOD setting … perhaps try using different image editor in case file corrupt in some way …
a) get it working with default placeholder image
b) make sure the /path/to/placeholder works by loading it in web browser based on what prints on page
c) refresh all caching, etc., turn off lazy loading, make sure if using CDN image is actually in ALL places content is being loaded or being redirected from
d) if using https, make sure you have your site properly setup to ONLY load https and NOT both http and https
e) try deleting the placeholder image, not over-write; upload your image, clear all caching again, then reload page and see if new image is there
f) if not, then try using a different image editing program
sorry … might not help, just food for thought
That’s what’s driving me nuts right now, because I went and made my placeholder image the same dimensions as each of the ones that were originally there. I went through and made sure each was named exactly as the originals were. Take a look at the no-thumb folder where they’re located, the only way you can tell I changed them just by looking in the folder is by the dates over on the side.

I’ve even double-checked the image files to make sure they’re I sized they correctly. Actually, here’s one of the images when I preview it:

This is just making my head spin.
Hello MM-Berlin,
Please try to use a bit of CSS to have the same width with the original one.
The code is ->
.postid-149 .backstretch {
display:none;
}
.td-boxed-layout #td-outer-wrap {
width:100%;
}
If you want to add an image for that placeholder from style 8, you have to use a bit of CSS to add background image to fit the image inside the box. Please try the code below and add it in Theme panel->Custom CSS area.
The code is ->
.td-post-header-holder{
background-image: url('http://wowslider.com/sliders/demo-5/data/images/saarschleife.jpg');
background-repeat: no-repeat;
background-size: 1164px 570px;
}
}
The result you should see here -> http://screencast.com/t/do35lAR4S
Hope this helps!
Thank you for the message!
Hi
I’ve test this on my side and the placeholder images are displayed fine. Please make sure that you added the images as I did here: http://screencast.com/t/aTzF3Qhxz The most important part is to name the images exactly as they were named initially, otherwise the theme won’t recognize the path ant the image won’t be displayed.
Try this way: create a post with no featured image then display it in a block, for example block 4. Usually there should be displayed the original no-thumb image corresponding for that block. For block 4 the original image is: td_341x220.png http://screencast.com/t/iGhOdblxl Result will be like here: http://screencast.com/t/Wf7LnlFdHLWg
Now replace the td_341x220.png image with a different image but name it with the exact same name and refresh the page. Result should be like here: http://screencast.com/t/aTzF3Qhxz
Let me know how it goes.
Thanks!
Hi, I want to make all of the featured images on my Big Block Fit the placeholder, and I want all of the images in my latest articles section to fit the placeholder as well. How do I do this? Here’s the link to my website so you can see: http://videogame-news.com/news
Still not working.
Here is how the code in td_module is saved right now:

And here’s the sidebar on a post’s page where there should be a placeholder image, but isn’t:

I did clear my cache and browsing history and all that, just to make sure… I have the worst luck.
Hello newtag,
If you want to add the background image in the placeholder for single_template_8 for posts from specific category, please try to edit the td_single_template_8.php file and add this code -> http://pastebin.com/5RW0Nrpw like this -> http://screencast.com/t/NzHoX2gezgR and the result you should see here -> http://screencast.com/t/T86Tj5Ge
Please notice that after these changes you need some additional customizations. If you are not aware the steps in this regard and if you want to display more levels in our theme, please consider hiring a freelancer/developer to do this for you because we cannot provide custom services at the moment, sorry!
Hope this helps!
Thank you for the message!
Likely best to get things back to “normal” with the default placeholder image that worked originally. And then go from there. It does work with the default placeholder image, so if you get that working then we can go from there, is my thinking.
Here’s part of the code for one of the posts that should have a placeholder image, but doesn’t:

Correct me if I’m wrong, but it would appear that it’s not trying to load any image at all for some reason. I just don’t get it.
Also, I’m not using the child theme. I use the full Newsmag theme.
-
This reply was modified 10 years by
DaneOLeary.
I must be stupid or missing something totally obvious because I still cannot get this to work. I’ve officially gone through and replaced every single one of the td placeholder images, making sure that each image is of appropriate size, dimension, and name. Then I went in and changed the code in td_module per your instruction in that other post, and it’s still not working.
It looks like instead of my placeholder image showing up, there’s this teeny tiny little empty square in the upper-left corner of where my placeholder image should be in a sidebar module. For example:

And here’s what my code looks like. I tried it both as you wrote it as well as with the exact name of the files in my no-thumb folder, which means I’ve tried “3-300×160.png” and “td_300x160.png” and neither of them work.

I really hope you can figure out what I’m missing here because I really just don’t understand how this isn’t working. I would just say screw it and give up, but I really need these placeholder images to work.
I cannot, for the life of me, get these placeholder images working. I tried following the instructions you posted at that link and the placeholder image doesn’t show up as a thumbnail nor on the post’s actual page. Do I need to resize my image to every single size that the ‘td’ images are?
In the theme panel under “Post Settings” there an option under “Featured images” that says “Featured image placeholder” which will use some sort of placeholder image if there’s a post that doesn’t have a featured image. I’d wanted to use this feature as I have some old posts that I haven’t gotten around to updating because it would keep them from looking weird if they show up in blocks and modules through my website.
The problem I’m having is that even though I have “Featured image placeholder” turned on, it’s not given any of the posts that don’t have a featured image a placeholder image. Is there any other steps I need to do to get this to work?
Hello OnlineTushar,
If you want to change the image wich appear when you have not set a featured image (placeholder) you have to replace all the images from this file -> http://screencast.com/t/pvOtSS9M with your desired images.
Hope this helps!
Thank you for the message!
Hello,
You can use your own image for a placeholder by replacing the images in the theme files here: http://screencast.com/t/WIIPLvUABko
Make sure you keep the same image name so the theme can recognize it.
Thank you!
Hello bhadrabalaram,
If you want to change the placeholder default image when you have not featured image set it, you will need to make new images in the no-thumb folder: http://screencast.com/t/ZIpgec18M8 and these images should have the exact same size as the thumbs.
Hope this helps and let us know how it goes!
Thank you for the message!
Can a default image be assigned to this placeholder in case there is no featured image on the post?