- 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
I’m adding a custom sorting option to the block/big grid code.
To add it to the drop down list in the editor, the option value needs to be added to the sort array in this section of td_config.php around line 11275. This file will not override in child theme so is there a way to use a hook in functions.php to just add this value?
static function get_map_filter_array ($group = ‘Filter’) {
array(
“param_name” => “sort”,
“type” => “dropdown”,
“value” => array (
‘- Latest -‘ => ”,
‘Oldest posts’ => ‘oldest_posts’,
‘Alphabetical A -> Z’ => ‘alphabetical_order’,
‘Popular (all time)’ => ‘popular’,
‘Popular (jetpack + stats module requiered) Does not work with other settings/pagination’ => ‘jetpack_popular_2’,
‘Popular (last 7 days) – theme counter (enable from panel)’ => ‘popular7’,
‘Featured’ => ‘featured’,
‘Highest rated (reviews)’ => ‘review_high’,
‘Random Posts’ => ‘random_posts’,
‘Random posts Today’ => ‘random_today’ ,
‘Random posts from last 7 Day’ => ‘random_7_day’ ,
‘On This Day’ => ‘on_this_day’,
‘Most Commented’ => ‘comment_count’
),
Thanks.
Good friends, on my website appears a block of advertising that is not mine, how can I remove it please ?. Someone is profiting from visits from my website

Hi,
sample page
https://wanhakase.jp/%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%82%AB%E3%83%AC%E3%83%B3%E3%83%80%E3%83%BC/
The thumbnail picture of 01,,
<?php the_post_thumbnail(‘thumbnail’); ?>
This template tag, the image is small
The thumbnail picture of 02 is displayed with Block 11.
(https://forum.tagdiv.com/theme-thumbs/ Module 10)
Like the thumbnail picture of 02,
I’d like to display thumbnail pictures of 01, but what kind of tag should I use?
Hello,
The category tags are hard-coded in the theme files so there is no setting to remove their links except by altering the theme files. Here is where the category tag is being created:
for the tag on posts: http://screencast.com/t/aAt8prc6PziU
for the tag on blocks: http://screencast.com/t/J1B5Kaft
Thank you!
Hello! I have a problem. After installing SEO Yoast and updating the template, the article options disappeared and the block of WordPress SEO By Yoas in the entries does not appear. What I can do?
And Open Graph does not work correctly.
Thanks!
Hi,
Thanks for your response, and while the code you sent fixed the issue (thank you), I have to say my sevlievo.com custom CSS was identical to that of velikotarnovo.com (until I added your code to the former), so the problem must be somewhere else. Could the reason be that the theme for sevlievo.com was purchased a few days ago, and that for velikotarnovo.com a couple of months ago?
In addition, that same line of the Top menu is a bit too far to the left, compared again to velikotarnovo.com. How can I fix that?
The original custom CSS I have for velikotarnovo.com is below:
@media(min-width:1021px){.td-header-style-1 .td-header-row {
width: 1023px;
margin-left: auto;
margin-right: auto;
}
}
@media(max-width:1021px){.td-header-style-1 .td-header-row {
width: 1023px;
margin-left: auto;
margin-right: auto;
}
}
.td-header-menu-wrap {
background-color: #000;
min-height: 48px;
}
.td-header-style-1 .td-header-row {
width: 1030px;
margin-left: auto;
margin-right: auto;
}
.td-header-sp-logo {
width: 272px;
float: left;
position: relative;
margin-left: 0;
margin-bottom: 8px;
margin-top: 8px;
}
.td-header-sp-rec {
float: right;
margin-bottom: 8px;
margin-top: 8px;
width: 728px;
position: relative;
}
@media (min-width: 768px) {
#td-top-search {
position: absolute!important;
top: 10%;
}
}
.td-header-container {
width: 100%;
}
@media(min-width: 768px) {
#td-top-search {
margin-top: 0!important;
position: inherit;
display: inline-block}
}
.td-header-menu-wrap:before {
background-color: #c00000;
content: “”;
display: block;
height: 4px;
}
.td-header-border:before {
height: 0;
}
.td-trending-now-wrapper {
background-color: #FFFF00;
height: auto!important;
}
.td-container-border > .td-pb-row:first-child .wpb_wrapper .td_block_wrap:nth-of-type(1) {
background-color: #FFFFFF;
}
@media(max-width: 768px){
.td-header-sp-rec,
.td-header-style-1 .td-header-row {
width: 100%!important;
}
.td-main-menu-logo img{
width: 75%;
}
}
@media (max-width: 768px){
.td-main-menu-logo img {
width: initial!important;
}
}
Please tell me the template tag of the eye catch image thumbnail.
The size of the thumbnail is the size used in Block 11.
Hello Bobby_Ocean,
You should try to use the code below.
The code is ->
.block-title>a, .block-title>span {
width:130%;
}
Thanks.
Hello krismali,
Please ensure that you have enabled the category tag for your modules/blocks used by you from the Theme panel, like this -> http://screencast.com/t/gvj7tJQgNa -> http://screencast.com/t/nGWaSXnYOjRQ
If is not what you mean, please provide more details so I will be able to provide a more accurate response.
Thanks for the message!
And where are you using the filter if it’s not affecting the homepage? You need to edit each block and use the block settings to filter posts the way you want them in each block in particular: https://forum.tagdiv.com/block-settings-guide/
Thank you!
You can also move to php 7 from newspaper 7.6 as we implemented support for it but only version 7.0.
7.1 still has some issues but it should provide a bigger impact than 5.4 to 5.6. 🙂
As for the “bloated” theme, each user bloats his website as much as he wants. If you use lots of different blocks and lots of complex elements with ajax pagination and ajax filters and sliders etc. then you should expect a dramatic page speed decrease as all of them come with a speed price.
Thank you!
This is because maybe you are not using the default blockquote. Our theme has multiple quotes: http://screencast.com/t/lWLAVHS9
Try to see if the quote is a default one or a custom one. The theme panel option will only affect the default.
Thank you!
Hello,
I’ve activated the Mobile Theme plugin from Newspaper. I understand there is a second content block that is displayed on pages – that is not the issue here.
We are using a completely custom template file. This template file is not being pulled in on the mobile version, even though the template is still selected.
Do I need to make a second template for the mobile version? If so, where does it live? Or, how do I get the existing template to be pulled in (I had expected it already would).
Thanks,
~Chris
It’s very odd that the widget blocks don’t filter out the post you’re currently on. What you currently can end up with is the post you’re viewing appearing on the sidebar, which just looks silly. This suggestion seemed to be to prevent that, which seems like a good idea? (Essentially a validation of not showing/skipping the post being viewed)
[vc_row][vc_column][td_block_trending_now header_text_color=”#ffffff” header_color=”#d74f22″ css=”.vc_custom_1474654487058{background-color: #ffffff !important;}”][td_block_big_grid_6 category_ids=”-35″][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block_1 custom_title="MOST POPULAR" sort="random_7_day" limit="6" ajax_pagination="next_prev" css=".vc_custom_1479939771047{background-color: #ffffff !important;}"][/vc_column][vc_column width="1/3"][td_block_ad_box spot_id="custom_ad_2"][td_block_ad_box spot_id="custom_ad_3"][/vc_column][/vc_row][vc_row][vc_column][td_block_7 custom_title="Latest in Sports" custom_url="http://thedesertreview.com/category/sports/" category_id="37" limit="6"][/vc_column][/vc_row][vc_row][vc_column width="1/3"][td_block_ad_box spot_id="custom_ad_4"][/vc_column][vc_column width="1/3"][td_block_ad_box spot_id="custom_ad_5"][/vc_column][vc_column width="1/3"][td_block_ad_box spot_id="custom_ad_1"][/vc_column][/vc_row][vc_row][vc_column width="1/3"][td_block_15 custom_title=”Weekly Webcast” category_id=”1410″ limit=”1″][/vc_column][vc_column width="1/3"][td_block_text_with_title custom_title=”Weekly Newsletter: Subscribe”][rainmaker_form id=”85698″][/td_block_text_with_title][/vc_column][vc_column width="1/3"][vc_single_image image="89930" img_size="medium" onclick="custom_link" img_link_target="_blank" title="Weekly E-Edition" link="http://www.thedesertreview.com/wp-content/uploads/2016/12/combinepdf-22.pdf"][vc_facebook][/vc_column][/vc_row]
Hello Bogdan,
custom CSS code has to be inserted via child theme as described in official WordPress guide:
If your child theme style.css contains actual CSS code (as it normally does), you will need to enqueue it as well. Setting ‘parent-style’ as a dependency will ensure that the child theme stylesheet loads after it.
Please tell me how I need to modify the following script in order to personalise the theme CSS using child theme:
<?php
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
Hi,
You can add those properties to the code like so:
.block-title span, .block-title a {
background-color: transparent !important;
color: #222;
font-family:verdana;
font-size:15px
}
Please note that a custom font cannot be placed with css if it’s not loaded first. Please use this topic to learn how to load fonts with css: https://forum.tagdiv.com/topic/problem-with-font-on-post-page/
Thank you!
Hello truth,
Please check your Theme panel->Block settings and there you will see all the required size for your featured images in order to achieve best results in theme, like this -> http://screencast.com/t/wEDhmOS6t
Unfortunately, we do not recommend to increase the width of these Blocks because you should damage the theme layout. Notice that is not a simple task and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Thanks for the message!
Hello di_aeiou,
Please keep in mind that the style of Block 16 has not been changed in the latest version of the theme. I suppose that this type of issue happens due to your side. Try to clear all your caches and check the results. Also, if the problem is still there, try to make a new clean install from scratch and install only the plugins that come bundled with the theme packet and rule out any conflicting plugins.
Thanks for your understanding!
Hi,
1. You can add your own categories in the blocks by opening your page in Visual Composer – http://screencast.com/t/OkBlhYaAi then scroll down to Visual Composer and edit the block you want – http://screencast.com/t/zlmLP8BeL In block settings General tab you can set a new name for the block – http://screencast.com/t/kgaVmENdGv and in the Filter tab you can choose what category you want – http://screencast.com/t/ffWjAodpobS More about blocks here – https://forum.tagdiv.com/block-settings-tutorial/
2. Additionally you can remove the blocks from the page by deleting them or you can add others later on according to your needs – http://screencast.com/t/HVNuAMXtwZ
If this is not what you wanted to know please provide more details.
Thanks
Hello rehanahmadjamal,
Unfortunately, our theme does not have any such an option that allows you a way to change the News Ticker block to different names at different places, sorry! The only way to change the name of this block is from Theme panel ->Trnaslations but please notice that if you will change from there, the name will be change for the entire website.
Thanks for your understanding!
Hello Bobby_Ocean,
Unfortunately, our theme does not have any such an option that allows you a way to change the width of the span block. You can use a bit of CSS code to increase the font size, like this -> http://screencast.com/t/y6r651bUEE9
.block-title>span {
font-size: 20px;
}
The result is here ->
Thanks for the message!
Hi,
A module is the base element in our theme. A module cannot be found in visual composer. Only blocks can be used. Blocks are like containers for 1 or more modules. But on categories for example you cannot use blocks, only the base modules as Edward mentioned above.
Thanks.
Hi,
We have not tested our blocks with such a high number of posts. That is what Catalin meant. It is a very large number of posts and our blocks could not handle such a large number. We did not test such a high number of posts with our theme elements.
Thank you!
Hello roqeem,
If you want to remove the Next/Prev pagination for posts you should use the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-post-next-prev-content{
display:none;
}
The result is here -> http://screencast.com/t/ZmQmFCUm
Please keep in mind that the Editor Picks is just a simple block 9 which can be customized from Visual Composer. The Editor Picks is found in Widgets area, like this -> http://screencast.com/t/cS1OGPZA1
Thanks for the message!