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..
Hi
Sorry about that, I’ve made a mistake when I pasted the code inside pastebin.
Try this code, it should work fine: http://pastebin.com/cqj3Gjba
Thanks
Hi
To increase the font size for reviews description use this css in theme panel > custom code > custom css: http://screencast.com/t/gKTpln0Yj
.td-review-summary-content{
font-size: 15px;
}
The font size value can be changed as you want.
I am not sure at what smart-list are you referring so please provide a link where I can inspect this closer so I can get back to you with a solution.
Thanks!
Hi
Try this css in theme panel > custom code > custom css: http://screencast.com/t/nBGi6zdFKKcC
.td_normal_slide .td-image-gradient:before{
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
height: 70%;
}
Thanks!
Hi
I am not sure I understand your issue so please provide more details about this so I can get back to you with a more accurate answer.
Thanks!
Hi
I’ve checked both of your pages and noticed that the theme use the full image in thumbs, not actually the thumb cropped at the specific value: http://screencast.com/t/Ye6GO99Grd In this situation the image it’s scaled down by css and because of aspect ration it’s not displayed fine.
Try to regenerate your thumbs: https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/ clear all caches and test again. Like this thumbs should be regenerated for all images and also should be displayed fine in blocks.
Let me know how it goes.
Thanks!
Hi
Please check this topic for more details about this Speed Booster incompatibilities and how these can be solved: https://forum.tagdiv.com/topic/speed-booster-incompatible/
Thanks!
Hi
I’ve checked your site and it’s displayed sine on my side: http://screencast.com/t/FTyCcro00 If you still have this issue please provide more specific details about it and specific link where I can inspect it so I can get back to you with a more accurate answer.
Thanks!
Hi
Try this css in theme panel > > custom code > custom css: http://screencast.com/t/oe1tYnH6
.td-header-style-1 .td-header-sp-logo{
height: 140px;
}
Thanks!
Hi
The sidebar for archive page can be set from theme panel > template settings: http://screencast.com/t/G6KahfUyq
By default on archive page you can’t use the page-builder from Visual Composer. However you can use do_sortcode function to display blocks on archive page. First you need to get the shortcode from Visual Composer: http://screencast.com/t/vDPzUEldhk – http://screencast.com/t/lqxAJrJcjwn0 then paste it into the indicated function like here: http://screencast.com/t/GgZz9psSiVv
<?php echo do_shortcode('[vc_row][vc_column][td_block_6 category_id="28" limit="6"][/vc_column][/vc_row]');?>
This code will display a block 6 on archive page: http://screencast.com/t/4LDqqUUah This is just a basic example but you can customize it in many different ways.
Let me know how it goes and if this is not what you mean please provide more details.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
Bogdan replied you here: https://forum.tagdiv.com/topic/smart-list-showing-two-images/
Thanks!
Hi
All thumbs sizes can be fount in theme panel > block setting: http://screencast.com/t/IYZnAHswX For more details about featured image please check this topic: https://forum.tagdiv.com/topic/ideal-for-featured-images-size/
If you need further assistance please let us know.
Thanks!
Hi
Please address us via email at contact@tagdiv.com including a link to this conversation and also give us wp-access so we can have a closer look at this and we will get back to your as soon as possible.
Thanks!
Hi
Sorry for misunderstanding.
The above solutions works only when a category page it’s displayed. If you want to change the header ad for o post from a specific category then you need to use the in_category() function. Here is a basic example for caribbean and destinations categories on my side: http://screencast.com/t/NDVOIEvs1bg
<?php
if (in_category(array('caribbean','destinations'))){
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
}
else{
locate_template('parts/header/ads.php', true);
}
?>
This code will load a different header ad for all posts which belong to caribbean and destinations categories.
Note: if you want to change the ad for a post from a specific category the required function is in_category() but if you want to change it for a category page then you have to use is_category().
Hope this help.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
We’re sorry for this inconveniences but we still couldn’t manage to find a solution at this problem yet. The developers investigate the situation but in order to be fixed all theme’s grid must be rewritten. This involve a huge amount of work and also many tests on different devices and browsers. Rewriting an entire grid it’s not an easy task and must be done very carefully in order to obtain best performance in any situation and on multiple devices.
I can’t estimate a when this will be done but I can assure you that we do our best to find a solution in shortest time possible.
Thanks for your understanding and sorry for all inconveniences.
Hi
This is a complex task which require many css customizations and also a bit of javascript. Tasks like this falls beyond the support can offer you and unfortunately I can’t provide a solution now. If you need this and you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you as we can’t offer speed customization services at the moment.
Thanks!
Hi
You can add a specific class on the block from which you want to hide the row, in Visual Composer: http://screencast.com/t/MkIn5STfXU then use it in css to tarket only that specific row like in this example:
@media(max-width: 768px){
.page-id-358569 .custom-css-class .td_block_16 .td-block-row:last-child{
display: none;
}
}
Thanks!
Hi
Replace the code from td_module.php with this one: http://pastebin.com/AwFsgQNV then edit the indicated files like here: http://screencast.com/t/vn0md7OJrq2 The result can be seen in this screen: http://screencast.com/t/i38qgdteK6a
You can use this method to remove the link from any thumb displayed in modules. Just add the true value in get_image() function as I indicated in above screen but in the file which generate that module.
Thanks!
Hi
Note that not any file can be modified in child theme. For more details about the child theme support with our theme please check this link: https://forum.tagdiv.com/newsmag-child-theme-support/
Thanks!
Hi
The theme wasn’t designed to support custom taxonomies in block’s filter. To achieve that you will need many customization in theme’s files and unfortunately I can’t provide a solution now. Basically you need to edit the td_data_source.php file and alter the query in order to have your custom taxonomies in filter: http://screencast.com/t/4P3AnaBK0
Please consider that this is a complex task which require advanced coding skills, also many customization and tests. If you can’t do this by yourself my advice is to look for someone which can help you with this or hire a freelancer to do it for you as we can’t offer any type of custom work at the moment.
Thanks!
Hi
Sorry about that, I’ve indicated the wrong container for the ad. Try to add the add like here: http://screencast.com/t/RejwRCvbd then the site again. It should work fine now: http://screencast.com/t/2vlRSiLqwPk
Let me know how it goes.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
You can use do_shortcode function in loop-single-2.php like here:
<?php echo do_shortcode('block's shortcode'); ?>
To get the shortcode add the block 7 into a blank page then switch in backend editor copy and paste this code: http://screencast.com/t/ij9Sbajz inside do_shortcode function.
Also you will need this code in theme panel > custom code > custom css: http://screencast.com/t/H9G6Yoeocg
.single .td-pb-row .td-pb-row .td-pb-span8{
width: 100%;
}
Hope this help!
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
Please address us via email at contact@tagdiv.com including a link to this conversation and also give us wp-access so we can have a closer look at this and we will get back to your as soon as possible. Also give us access at the google webmaster console.
Thanks!
Hi
That issue occurred after WordPress released V 4.4.1. but in last theme update we fix it. You can use theme’s path and update only the modified files. I’ve noticed that you’re using V 2.2 of the theme. In this case you need to go trough every path from 2.2 until 2.3.5 and update the modified files.
Before making any changes make sure you do a full backup to the current wp install and also the database. This is a security measure, in case something goes wrong you can always get back to the previous install.
Thanks!
Hi
To add a new custom ad you have to edit the following files like here:
– td_panel_ads.php – http://screencast.com/t/csyUpkoa – http://pastebin.com/v9xwLdQz
– td_block_ad_box.php – http://screencast.com/t/mRzwOa0Q5
– td_config.php – http://screencast.com/t/m3REo5pm
Result should be like here: http://screencast.com/t/FxYioNcpNS
This was just an example for custom ad 6. To add more custom ads follow the same steps but make sure you update properly the ad-spot ids.
Thanks!