- ApiPractical example – How to add a new Block and Module
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_thumb::add
- ApiAPI – Thumbnail – Introduction
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_top_posts_style::add
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- ApiUsing the Theme API in plugins
- ApiThe Theme API
Hello,
the post you are mentioning refers to the article. I refer to the block module,
is it possible?
Thank you.
Hi,
Instead of editing the code, it more easily to change to footer style 3 and add your own block for 2 and 3 columns – http://screencast.com/t/wADSY3kvfO9 – http://screencast.com/t/9SQJtPSUkcuy
Result – http://screencast.com/t/CsS5iVatT
Thanks!
I would like to share with everyone a list with some requests that I would like to see in future updates. This theme is in every aspect amazing but there is still room for improvement. Here it goes:
* WYSIWYG on the ads manager: It is hard and time consuming to put ads there, especially if you are making a website to a customer
* Sidebar manager: Would be nice to be able to create sidebars easier. Right now one can only do that when editing/creating a page
* Placing sidebars on the top of the page: The main purpose of this is of course to be able to place ads on the very top of the page. I had to edit the php of my child theme for this. Would be amazing if you could include this in your ad manager
* Custom blocks: I don’t know if this is possible but it would be a dream to be able to easily build a block. The templates you offer are great but some customers have really specific tastes and in my case I had to customize php on two blocks
Feel free to leave your comments and/or requests. Sure does not mean we are demanding these features but it can be a great way for tagdiv to see what we are searching for.
Cheers!
Sorry, my mistake! I mean the block title, ie the title shown in the png attached.
Hi,
Yes if you want the sticky post to not be ignored on blocks, you can change it to 0. Nothing special will happen, only if you filter by the category of the sticky post(or you filter by all categories), it will appear first on block. For example I have Hello World sticky post, if I filter by all categories this is the result – http://screencast.com/t/q0hxkdnzNQ if I filter by a specific category(different than sticky post category) the block will not be affected – http://screencast.com/t/yXF1r2UBTI
Hope this helps!
You mean that I should change it to 0? Could you also be a bit more specific on what will happen when I filter by category on a block?
Hi,
You can do this via custom css in Theme Panel > Custom Css to reduce the margin and padding for module 8 – http://screencast.com/t/74JEKl0gn7Vr
.home .td_block_9 .td_module_8 {
margin-bottom: 10px;
padding-bottom: 10px;
}
This css is applying only for your homepage, if you want to have that css for all pages where you use block 9 just remove .home class.
Thanks!
Hi,
You could change this value to 0 – http://screencast.com/t/Tv6WXn01T but changing this will affect all your blocks if you filter by the category of the sticky post.
Thanks!
Hello sejpost,
1) You could do that using a custom CSS but be carefull because it will stretch the white container over your content: http://screencast.com/t/30mgfGny
.block-mega-child-cats {
overflow-x: visible;
overflow-y: visible;
max-height: 400px;}
2) The ‘newspaper’ mega menu was styled differently from the ‘newsmag’ one. Unfortunately there is no ption for this in the theme panel so you need a bit of css to change the appearance, but it requires a lot of modification as other elements are affected by the position of the sub-category list. You can start by targeting the td_mega_menu_sub_cats class and go from there.
3)You can read here how to create a custom ad and then you can insert your code in the theme files:http://screencast.com/t/vp4z0dM0W4J7 – https://forum.tagdiv.com/how-to-insert-ads-in-custom-areas-of-the-website/
Unfortunately we cannot offer custom work as we work hard on the development, updates, fixes and support.
Thank you!
Hi there
I would liked to reduce vertical space between 2 posts in a module block9, which is Module 8 in Theme Fonts, I don’t understand how to do it ? Is there a possibility to add a custom class to a block ?
Only PostDate is visible in that block and it seems it keep space for others options (author, comment …)
Thanks
my working web site : http://plamotte.fr/Mondafrique/
Hi,
I have checked your site and the text widget that you use there is empty – http://screencast.com/t/OWe4uSsSr I’m not sure what code do you use there, please provide more details. Do you use a plugin?
Also I don’t what you mean with filters in blocks as there is a wordpress text block and it doesn’t have filter options.
Thanks!
-
This reply was modified 10 years by
Alin [tagDiv].
Hello!
Am I the only one who wonders why the theme ignores the sticky posts function? What is the point?
I am using Block 11 an d can’t have Sticky Posts. As I understand this will solve the issue, can you confirm?
Thanks in advance!
Hi,
Please update to the latest theme version 6.5 as the block 21 was added to widgets section – http://screencast.com/t/yHuMG39ClXQ3
I’m not sure what are you trying to do with tag cloud widget. Please note that this is a wordpress widget, not a part of the theme(it cannot be edited from theme files).
Thanks!
Hi,
I see that you have many warnings regarding buddypress, so please check the System Status to see if the speed booster plugin is active as it becomes automatically inactive if other plugins rather the tested ones are used – http://screencast.com/t/zcTc7xzcb
If you want to make it work with all plugins you will have to remove this code – http://screencast.com/t/RZLIOPUNdqh
It should remove the js and css for specific id without issues, but please check this in the page source as on pagespeed test may not be removed all the render block warnings.
Thanks!
Hi
Please note that is a public forum and any registered user can see the information posted here, so I removed your login details.
We didn’t tested any plugin for captcha so I can’t said which will work best, but I found some useful information in this regard here: http://www.wpbeginner.com/plugins/how-to-block-spam-comments-in-wordpress-with-captcha/ – http://www.wpbeginner.com/plugins/how-to-add-captcha-in-wordpress-login-and-registration-form/
Hope this help.
Thanks!
Hi,
1. You can create your own categories – http://screencast.com/t/52Nggbzr and tag all post you want to those categories, check this tutorial – https://www.siteground.com/tutorials/wordpress/wordpress_category.htm
Also you can add a block in the sidebar and enable ajax categories filter, just take the category id – http://screencast.com/t/OyZBOY5ry and paste it to the spot from block settings – http://screencast.com/t/5brbiBq5XSqH
Please check the documentation – https://forum.tagdiv.com/block-settings-tutorial/
2. When you set featured sort order it will display all posts tagged as featured. The theme doesn’t have an option to display the posts from a specific category first then the others and you will need custom modifications, sorry!
Thanks!

What should I do now?
External Image Link: http://i.imgur.com/QWK8WpL.jpg?1
My competitors also trying to hack my site, sometimes I see Robots.txt is missing. When Its Missing they stop trying to log in my site. Now verified my SSL & Also get SiteLock Security Service. SiteLock showing there is no Security Issue.
I am in Risk, So I don’t want to allow the /wp-content/plugins/ but I want to allow only that resources Google Showing.
Please Suggest me.
-
This reply was modified 10 years by
K.H.R.
Hello
In the block 2 on Home Page to the settings at the Ajax Filter i have custon categories with their IDs. The problem is that they are athletic sport categories an they must apear at a specific order. Even if a put the IDs in this order… at the Home page they apear alphabeticaly. Can i change that?
Do you have a solution about this?
Thank you
Thanks Emil – The plugin provider said the following:
In this case please follow the instructions outlined here:
https://wp-types.com/documentation/user-guides/setting-view-templates-for-single-pages/ > Theme support for Content Templates
I added get_content and it fixed it.
Cheers, Rob
Hello,
I am trying to redesign the inner page in Newspaper. But Block 21 is not available as Widget. How to “activate” it?
Also, at the bottom of post details page, I would like to exclude a number of tags from the tag cloud. How to achieve that?
Thanks for the great work.
I found that there is a function being called when you add a post that parses the content and processes the shortcode
Managed to find it and it now works – here is my very specific solution
<h3>Videos</h3>
<?php
$videos = get_posts(array(
'post_type' => 'post',
'category' => 53,
'meta_query' => array(
array(
'key' => 'article_event', // name of custom field
'value' => '"'.get_the_ID().'"', // matches exaclty 123", not just 123. This prevents a match for "1234"
'compare' => 'LIKE'
)
)
));
//echo get_the_ID();
if( $videos ):
$vID = '';
$vArray = array();
foreach( $videos as $video ):
$vID .= get_field( "article_video_id", $video->ID ) .',';
$vArray[] = get_field( "article_video_id", $video->ID );
endforeach;
endif;
$vID = rtrim($vID, ',');
function jj_get_video_info_data ($array_param){
$list_to_parse = $array_param;
$list_to_parse = explode(',', $list_to_parse);
$buffy = array();
//echo $list_to_parse;
foreach($list_to_parse as $id_video) {
$id_video = trim($id_video);//possible to have spaces
//echo '['.$id_video.']';
$response = wp_remote_get('https://www.googleapis.com/youtube/v3/videos?id=' . $id_video . '&part=id,contentDetails,snippet&key=AIzaSyBneuqXGHEXQiJlWUOv23_FA4CzpsHaS6I', array(
'sslverify' => false
));
if (is_wp_error($response)) {
break;
}
$data = wp_remote_retrieve_body($response);
if (is_wp_error($data)) {
break;
}
$obj = json_decode($data, true);
$buffy[$id_video]['thumb'] = td_global::$http_or_https . '://img.youtube.com/vi/' . $id_video . '/default.jpg';
$duration = $obj['items'][0]['contentDetails']['duration'];
if (!empty($duration)) {
preg_match('/(\d+)H/', $duration, $match);
$h = count($match) ? filter_var($match[0], FILTER_SANITIZE_NUMBER_INT) : 0;
preg_match('/(\d+)M/', $duration, $match);
$m = count($match) ? filter_var($match[0], FILTER_SANITIZE_NUMBER_INT) : 0;
preg_match('/(\d+)S/', $duration, $match);
$s = count($match) ? filter_var($match[0], FILTER_SANITIZE_NUMBER_INT) : 0;
$buffy[$id_video]['title'] = $obj['items'][0]['snippet']['title'];
$buffy[$id_video]['time'] = gmdate("H:i:s", intval($h * 3600 + $m * 60 + $s));
}
}
if(!empty($buffy)) {
return $buffy;
} else {
return;
}
}
$td_playlist_video['youtube_ids'] = jj_get_video_info_data($vID);
$td_playlist_video['youtube_title'] = 'Whatever';
//print_r($td_playlist_video);
update_post_meta(get_the_ID(),'td_playlist_video',$td_playlist_video);
$videoSC = '[vc_row][vc_column][td_block_video_youtube playlist_title="TITLE" playlist_yt="'.$vID.'"][/vc_column][/vc_row]';
echo do_shortcode($videoSC);
?>
Eliminate render-blocking JavaScript and CSS in above-the-fold content, I have not been able to rectify this problem for page speed, I have followed the tutorial you’s posted but the id’s don’t match anything showing up.. my site is http://www.smag31.com
Hi,
In order to remove the author and not hide it, you need to edit the theme’s core files and remove it manually for each module (not block):
http://screencast.com/t/KBQyacySa4
Just comment out the ‘get author’ line of code and it should do the trick.
You can check this list in the theme pane to see exactly what block each module uses: http://screencast.com/t/yzAfhFyx18
Thank you!
Hi
By default the theme doesn’t have an option to change the color for social counter buttons, but you can use this custom css in theme panel > custom css: http://screencast.com/t/WOaG0shDQ1
.td_block_social_counter .td_social_instagram{
background-color: #A52A2A;
}
Let me know how it goes.
Thanks!
Here is my code in my template file
$videoSC = '[vc_row][vc_column][td_block_video_youtube playlist_title="TITLE" playlist_yt="'.$vID.'"][/vc_column][/vc_row]';
echo do_shortcode($videoSC);
echo ($videoSC);
The last line is for debugging and outputs
[vc_row][vc_column][td_block_video_youtube playlist_title="TITLE" playlist_yt="Gb6JRborcOU,Xi0S2xKXSzg,ZGzup1LR9NU"][/vc_column][/vc_row]
When I plug that into a post, it views fine. However in the custom template, all I get is
<div class="vc_row wpb_row td-pb-row">
<div class="wpb_column vc_column_container td-pb-span12">
<div class="wpb_wrapper">
<div class="td_block_wrap td_block_video_playlist">
<div id="td_uid_11_56027c1641664" class="td_block_inner"></div>
</div> <!-- ./block_video_playlist -->
</div>
</div>
</div>
Please advise!