- 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
For the first time I used the recomandation suggestions on a product page:
http://www.virtualmagie.com/boutique/tours-de-magie/livre-vm-5-5-viktor-vincent-christian-girard-gounico-sebastien-defrance-orelien/
But it look strange.
The background color block it is the one of the color theme so with the color text it is not readable.
Could you fix this on an next update and before that give me an CSS?
Thanks
Hi Bogdan
Thank you for your quick response, the result is exactly what I am looking for! The grid I am using is Big Grid Style 4, adding the code snippet to td_module_mx10.php unfortunately had no effect, which module_mx file must I edit for Style 4? Is it also possible to add the author in the miniatures of Block 2 content (the smaller images at the bottom of my second screenshot)?
Thank you for your efforts!
Best,
Dustin
[url=http://postimg.org/image/abxdlbtax/][img]http://s12.postimg.org/abxdlbtax/Bildschirmfoto_2015_11_16_um_10_57_24.png[/img][/url]
[url=http://postimg.org/image/6i3xc6byx/][img]http://s12.postimg.org/6i3xc6byx/Bildschirmfoto_2015_11_16_um_10_57_52.png[/img][/url]
[url=http://postimg.org/image/ssrsc5995/][img]http://s12.postimg.org/ssrsc5995/Bildschirmfoto_2015_11_16_um_10_59_30.png[/img][/url]
Hello,
It is possible actually and it’s not even complicated to do. It will require an altering of the theme files though. Block 6 uses module 5. This is the file you will need to modify. It just requires moving the code for the title and meta info below the image (and above excerpt) like so:
http://screencast.com/t/IFdCZxwmvd it should look like this: http://screencast.com/t/CjjstukO
result: http://screencast.com/t/HTUP4DHlIFj
Thank you!
Hi there!
Have a local problem, only happened on one of the computers. Normally in chrome, but now it also happened in Firefox. I can’t for the life of me find out why this is happening, som maybe you can help?
As you can see from the attached image, the blocks won’t load like they should.
This happens in firefox and chrome (not IE, but I hardly ever use it). Previously it did not happen in FF, wich is my prefered browser, so I did’nt care much about it happening in chrome since it seemed to only be the case on one computer. I have previously fixed it in chrome by resetting it completly (clearing history, cache++ does not work).
As you can see, the white-space (the image that should occupy it is now beneath it, not beside it)

But now it’s also the case in Firefox. And if this happens to one of our readers, it would be nice to know what’s causing this. In case you’ve stumbled upon this before.
It only affects our website, not others with the newsmag-theme.
Hi,
Module 4 is NOT equal to Block 4, please check this here to make an idea how the modules are used to create blocks – http://screencast.com/t/eDt7siRcNWT Module 4 is used only for first article on block 1 or 17 – http://screencast.com/t/KjLmYN5o8Jr So there is not complete block designed by module 4.
To have the exact thumb size on block 4 you will need custom modifications and change this in td_config file – http://screencast.com/t/tVABsLJVyLUI Or add a new thumb size and use it only for module 2 – http://screencast.com/t/2dr7D8CC
My suggestion is to use block 5 or 6 if you need a larger thumb – http://demo.tagdiv.com/newspaper/block-5/
Regarding the SEO title, you can change it from your homepage using Yoast Seo – http://screencast.com/t/npRnXROk
Thanks!
-
This reply was modified 10 years by
Alin [tagDiv].
Hi,
I have checked your site and I see that you have added the class properly to the row, but the sticky sidebar doesn’t work because it doesn’t have enough space to become sticky – http://screencast.com/t/TxYRyY5oI
So try to increase the number of post from your page content(for example block 1 in the above screenshot), or try to add another block bellow the block 1, so the sidebar will become sticky until the second block.
Please check this to make an idea(just create a test page and try) – http://screencast.com/t/roBp3LlM
Thanks!
Hello,
The category tags on modules and blocks are not affected by the theme panel, this will be applied only for post pages – http://screencast.com/t/NTdZL30M7bRS If you need this, it can only be done with custom modification. You can change the get_category function used on modules – http://screencast.com/t/jPN396cW3 to adapt it to get color as well. Unfortunately we cannot provide a quick solution for this as it requires quite a bit of time and work. You can hire a professional developer or a freelancer to do it for you if you realy need this modification.
Thank you!
Hello,
I assume it’s a bog grid 2 you are using. That block uses modules mx10 for the small thumbnails. This module does not have author and date added to it in the files as a design choice. You can add them in the file like so: http://screencast.com/t/AGNjYtwAo
Add this code like in the screenshot above:
<div class="td-module-meta-info">
<?php echo $this->get_author();?>
<?php echo $this->get_date();?>
</div>
result: http://screencast.com/t/0OvoXkg6S7o
Thank you!
-
This reply was modified 10 years by
Bogdan B..
Hi,
@CursoDeEcommerce Please regenerate thumbnails using this plugin – https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
Also please note that the featured image must be at least thumb size used on modules/blocks – https://forum.tagdiv.com/thumbnails-vs-featured-image-size/
@Chris Thanks for your help. We try to improve the documentation, but the “how to fix image sizes” tutorial exist(I provided the link above). It is in the tips an tricks tutorials for both themes. We still have a lot to work at theme’s documentation.
Thanks!
Hi
You can use theme’s slide block which have an option to auto-play slides at x seconds: http://screencast.com/t/lFH9rmML Just set the seconds between the slides and they will run automatically.
Hope this help.
Thanks!
Hi
There are lots of factors that influence the site’s page-sped. I’ve checked your site with PageSpeed Insights tool and noticed that you have a slow server response time and lots of css/js resources which also slow the page load: http://screencast.com/t/zbHS570RMiK
To improve your server response time you can try to reduce the number of queries (fewer plugins, fewer blocks on page, reduce the elements which use ajax requests/pagination like mega menus/load more/infinite load), also consider using a cache plugin and to improve the loading speed look the mysql query cache: http://dev.mysql.com/doc/refman/5.1/en/query-cache.html We also use it on our demo.
Also you can use the speed booster to move the js and css at the bottom of the page, eliminate render-blocking, but not for all plugins. Check the System Status if the speed booster is active if you use other plugins than the tested ones. You can find some useful information regrading speed booster usage in this topic: https://forum.tagdiv.com/topic/speed-booster-questions/
Also you can read this guide, it may help – https://forum.tagdiv.com/how-to-make-the-site-faster/
Thanks!
Could anyone tell me how to control the length of the article?
Please help check the link
http://3media.tw/index.php/test-01-tab/
It’s not neat if you use the 2 column-block and the length of the articles is not the same.
Many many thanks!!!
Hi
When a featured video it’s set for a post WordPress generate new images for each thumb size used by the theme. For example block 3 use a 300×160 px thumb for image, and when you add the block on page the image used is your-image-name-300×160.jpg. This is not a theme issue, that’s the way how WordPress works, that’s why you have lots of duplicate images in media library.
Hope this help.
Thanks!
Hello,
I’m having a lot of PHP erros in my log. Most of it seems to be coming from the theme. Just to name a few:
[Mon Nov 16 03:37:11.151423 2015] [:error] [pid 29173] [client 66.249.69.69:27923] PHP Fatal error: Call to undefined function get_header() in /nas/wp/www/cluster-41332/mysite/wp-content/themes/Newsmag/index.php on line 6
[Mon Nov 16 04:53:26.424720 2015] [:error] [pid 29176] [client 173.255.198.194:43387] PHP Warning: Invalid argument supplied for foreach() in /nas/wp/www/cluster-41332/mysite/wp-includes/functions.php on line 515
[Mon Nov 16 04:53:26.424800 2015] [:error] [pid 29176] [client 173.255.198.194:43387] PHP Warning: in_array() expects parameter 2 to be array, string given in /nas/wp/www/cluster-41332/mysite/wp-includes/functions.php on line 524
[Mon Nov 16 04:56:01.964486 2015] [:error] [pid 29179] [client 74.59.211.106:19727] PHP Warning: Invalid argument supplied for foreach() in /nas/wp/www/cluster-41332/mysite/wp-content/themes/Newsmag/includes/wp_booster/aurora/tdx_options.php on line 116, referer: http://mysite.com/wp-admin/admin.php?page=td_theme_panel
I’m currently hosted with WPEngine.
How badly does it affect my site? And how can it be solved?
Thanks.
Hi guys,
I’ve been observing the popular post block 9 on my widget’s sidebar and it seems the 7 Days most popular posts sorting doesnt work or refresh anymore. I got the same top posts from the start (3 months ago) up until today despite seeing changes and stats on WordPress jetpack.
I already refreshed the cache (zencache) several times and also I turned on/off block settings of 7 days sorting from the panel.
I hope you guys could help me.
Blog is ManilaShaker.com
Hi,
on the home page of my site i’m using ‘Block 6’ to display my ‘latest news’ and ‘products’ content.
http://www.mondialetest.co.uk/mondoarc/
However, i’d prefer it if the headline and date were below the thumbnail so it mirrored the content on my category pages
http://www.mondialetest.co.uk/mondoarc/category/products/
is this possible?
Thanks
Updated the theme from 2.x to 2.3.1 and got a buch of errors like the ones below in the admin area, so I’m guessing that I should have installed the 2.3 version beforehand.
Where can I download that from ? Thanks.
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_1 is not set.
/*/html/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_2 is not set.
/*/html/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
Hello Guys,
I love the NewsPaper theme.
Today I created a great homepage for my blog.
This is a screenshot

but all the articles are so small (small image preview). Before setting this homepage I had the classic post view where posts are bigger. This is a screenshot.

How can I make the posts bigger?
I was using the M4 template now I use the block 4 template but it seems small than the M4 template.
Another thing the title of my page is Home | PcExpert but I only want PcExpert. Is it possible to change it? I’m using the Yoast SEO plugin
Hi, I’ve set different colours for the ‘CATEGORY TAG COLOR ON POST PAGE’ option, but this only changes the colour on the actual post page. On my homepage I have the category tags overlaying the thumbnail images for each new post (as on the Newspaper demo), but I want these colours to match the category tag colours that show on the post page.
I do not have the homepage blocks broken into categories, just one feed of latest posts, so I want the different coloured tags to be able to help visitors distinguish between categories quickly.
Is this possible?
Thanks
Hi,
I have a page where all news from all categories are. On the top of the posts-block I have a ajax filter to display the posts of a certain tag (sreenshot). In my main menu is a “News”-Link with sub-links in the dropdown menu. ->
News
– Filter1
– Filter2
– Filter3
– …
Now I want to link the sub-points to the news-page and direct to the right filter. I mean when I click on Filter1 I want to be redirected to the Filter1 on my News Page.
Here I have a screenshot:

http://fs5.directupload.net/images/151114/tl9wij5p.png

http://fs5.directupload.net/images/151114/pv3tmzxc.png
Can I use a special url to link to a certain filter?
Thank you!
We’ve been experimenting with the newer “big grid” elements. We devote the right 1/3 of our page to a advertising and have not been able to get any of the grids to respect the 2/3 + 1/3 allocation we’ve set for the row. The blocks and slider will stay in the 2/3 of the row we’ve set – but the grids won’t.
you can see what we’re talking about at http://www.mercerme.com/demo – there a big grid 6 is in the left 2/3 and block 2 in the right 1/3 of the row. Our current main page uses the slider that respects the 2/3 + 1/3 allocation http://www.mercerme.com.
Thanks for any help! -Ryan
After more struggle I found the way to override globally block queries:
/Newspaper/includes/wp_booster/td_data_source.php
static function &get_wp_query ($atts = '', $paged = '')
Function name above return queries for all blocks, so by setting condition in this function served my purpose very well.
Sorry for posting but its solved for me now.
Thanks!
Hi, when installing the newest update 2.3.1 i get the following error messages:
(please advice)
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_1 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_2 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_3 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_4 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_5 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_6 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_7 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_8 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_9 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_10 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_11 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_12 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_13 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_14 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_15 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_16 is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_popular_categories is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_slide is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_ad_box is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_text_with_title is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_authors is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::get_default_component_id : no component of type td_api_header_style . Wp booster tried to get the default component (the first registered component) but there are no components registered.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: is not set.
/var/www/comnie-limniones/wordpress/current/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
Hi,
I am using Newspaper 6 Theme.
On category pages we have filter passed in query string which is post tag. So want to filter my posts according to that query string tag.
So I have changed query successfully which is effecting results of main category pages content. On loop.php modifying query with post tag make desired results. (In child theme)
But when it comes to top grid, it is hard-cord value of 5 passed there and if posts with tag are not present it displays nothing.
I found this piece of code which is calling Top grid :
<?php td_api_category_template::_helper_show_category_template() ?>
<?php td_api_category_top_posts_style::_helper_show_category_top_posts_style() ?>
And there is main function in File: /Newspaper/includes/wp_booster/td_wp_booster_functions.php
/* ----------------------------------------------------------------------------
* modify the main query for category pages
*/
add_action('pre_get_posts', 'td_modify_main_query_for_category_page');
function td_modify_main_query_for_category_page($query) {
//checking for category page and main query
if(!is_admin() and is_category() and $query->is_main_query()) {
//get the number of page where on
$paged = get_query_var('paged');
//get the filter_by
URL($_GET) variable
$filter_by = get_query_var('filter_by');
<strong> $query_tag = filter_input( INPUT_GET, 'tag', FILTER_DEFAULT );
if($query_tag)
$query->set('tag',$query_tag); /*<strong>I tried modifying query but it does not effect top posts*/</strong>
//get the limit of posts on the category page
$limit = get_option('posts_per_page');
// get the category object - with or without permalinks
if (empty($query->query_vars['cat'])) {
td_global::$current_category_obj = get_category_by_path(get_query_var('category_name'), false); // when we have permalinks, we have to get the category object like this.
} else {
td_global::$current_category_obj = get_category($query->query_vars['cat']);
}
//offset is hardcoded because of big grid
$offset = td_api_category_top_posts_style::_helper_get_posts_shown_in_the_loop();
//echo $filter_by;
switch ($filter_by) {
case 'featured':
//get the category object
$query->set('category_name', td_global::$current_category_obj->slug);
$query->set('cat', get_cat_ID(TD_FEATURED_CAT)); //add the fetured cat
break;
case 'popular':
$query->set('meta_key', td_page_views::$post_view_counter_key);
$query->set('orderby', 'meta_value_num');
$query->set('order', 'DESC');
break;
case 'popular7':
$query->set('meta_key', td_page_views::$post_view_counter_7_day_total);
$query->set('orderby', 'meta_value_num');
$query->set('order', 'DESC');
break;
case 'review_high':
$query->set('meta_key', td_review::$td_review_key);
$query->set('orderby', 'meta_value_num');
$query->set('order', 'DESC');
break;
case 'random_posts':
$query->set('orderby', 'rand');
break;
}//end switch
// offset + custom pagination - if we have offset, WordPress overwrites the pagination and works with offset + limit
if(empty($query->is_feed)) {
if ( ! empty( $offset ) and $paged > 1 ) {
$query->set( 'offset', $offset + ( ( $paged - 1 ) * $limit ) );
} else {
$query->set( 'offset', $offset );
}
}
}//end if main query
}
While using Grid style one:
includes/shortcodes/td_block_big_grid_1.php
POST_LIMIT is passed as 5.
So is there any way that my category posts get filter by tag for top grid as well. I tried modifying main function as mentioned above. Please see this comment in code above (I tried modifying query but it does not effect top posts)
Please suggest how that will be possible.
Screen shot attached for details of URL having query string:
If I want to change the grid style on my classic blog theme from [td_block_big_grid_4 sort=”featured”] to [td_block_big_grid_1 sort="featured"], how do I get the other three boxes to work? Only two of the boxes work and the other three are blank. Thanks