- 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
Hi,
If you want to insert a html code in posts, you can access text mode: http://screencast.com/t/CGl4ni76ZEYW and add your code there. There are no content blocks that are designed to work on posts, but you can use visual composer on posts if you activate the option from the visual composer plugin but keep in mind that visual composer is not tested to work on posts so you could get mixed results.
Thank you!
Hi @orlando
First of all check in System Status if Speed Booster plugin is active: http://screencast.com/t/6lILerCjFuAr You can read more about how plugin works in this topic: https://forum.tagdiv.com/topic/mobile-view-problem-3/
Also not that google it’s more restrictive when it comes about page-speed on mobile devices. For example if on desktop you have 90/100 page-speed, on mobile the number will be smaller. This can be checked on our demo. If you look on desktop page-speed you’ll see that there is no render-blocking resource: http://screencast.com/t/pNE7wUbobndD but for the same demo on mobile devices google find a few resources which slow down the page load: http://screencast.com/t/GpmmJ1LHZVPt
To have the same page-sped on mobile as on desktop are required additional customizations and lots of tests. You can follow google’s indications to improve you mobile page-speed but keep in mint that this is a complex task which require some coding skills.
We can’t offer speed customization services at the moment so if you still need guidance on this or 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.
Thanks for your understanding and for your message.
Hi,
is there a way to limit a block pagination to load just 2 pages for example?
Hi! Great theme!
I have a problem. When I configure the homepage using three columns (2/3 – 1/3) there is no problem, but I need that the main column have 60% and the sidebar 40%. Y set this configuration: (7/12 – 5/12) but the slider is broken, and the thumbnails of block 15 get disorganized.
Is there any solution?
Regards!
Hello,
I would like to know if there is a way to exclude certain tags on blocks?
I use the tag ‘Featured’ for my big grid and then have a latest news section below.
I would like to exclude Featured from the latest news block so it does not repeat the same stories.
Please let me know,
Thanks.
I am using the Newspaper theme and loving all the visual content. However there are some places where I would like to have a WYSIWYG or Tiny MCE content block like other page builders allow, for inserting HTML text, a graphic or video. How can I do that with this theme?
How I can translator chains : D`ont Miss , Travel Guides, Fashion and Trends … do not appear in the section of translations of the topic.
Nor do I find how to modify the social networking block . The image illustrates the problem.
Thanks

Welll…..
a) if you use the speed booster framework, you would put the code into the Speed Booster plugin settings per the docs for that and the example from Lucien; *and* likely any custom css into your style.css and not in theme panel; and ideally NOT use child theme, to mimize any flash of unstyled text
b) if you’re doing custom hacking of your site, you would put any functions for de/enqueue into the functions.php where all such WordPress “actions” go; then you’d manually put your style.css link in footer. The WordPress codex has good tutorial on how “enqueuing” (adding to queue) works in WP.
c) You would then use the critical CSS generator found in my thread, to put the above the fold CSS “inline” in the header.php file. This loads only the needed CSS for above the fold to load with page — no render blocking of CSS — and then the rest loads with remainder of page. — Trial and error on this stuff.
These efforts are toward solving the pesky lower score on Google PageSpeed Insights for mobile “above the fold render blocking…”
This is a bit “advanced” stuff most folks won’t tackle. But if you’ve got everything ELSE as optimized as possible, this is kind of the LAST thing to do.
And frankly, if you’re using the AMP system for mobile, for a lot of folks, this will be a non issue as Google products will be loading the AMP version vs the responsive mobile version anyway.
So, one could argue if you have a desktop score of 92 or higher, and you’re running “AMP” on your site for posts, you likely don’t need to stress as much as before on the mobile score on Google’s direct testing speed tool. 🙂
( rant over . . . ) 🙂
-
This reply was modified 10 years by
simchris.
Hi,
I recently bought the newspaper theme and I am having problems with the unique articles in the front page. I enabled the option of unique articles but It’s not working properly because we use AJAX modules.
I have the site configured to use specific categories in the majority of the blocks, but the problem exists with some blocks that gets articles from multiple categories like Breaking News or The Opinion. This blocks show articles from other categories, but when they are visible on the multi category block I don’t want them to show on the block of the specific category.
Is there a way in your theme to create a custom filter for this blocks. Or there is a builtin function to do this type of filtering.
Regards.
Ahh, block #16, I figured it out 🙂
Which blok number is used for the festival video posts here?
http://demo.tagdiv.com/newsmag_video/
Thanks in advance
Hi, I would like to display post “last comments” on a Home Page block location. Is that possible?
Thanks !
Hi
The theme display posts following some specific rules and according with the filter set for any block in each page. For example if you publish a post which belongs to News category that post will automatically be displayed on News category page in first place. This is a WordPress default functionality, each post which belong to a specific category will be displayed on that category’s page.
On pages the theme display posts according with the filter set in each block’s settings: http://screencast.com/t/kNFrQMah5Ra You can read more about block settings in this tutorial: https://forum.tagdiv.com/newsmag-block-settings-tutorial/ also you can find some useful informations about page setup here: https://forum.tagdiv.com/newsmag-homepage-how-to-build-and-set-it/
Note that the theme posts displayed on pages will also be displayed on categories pages. This is how WordPress works.
The theme also have a unique article option, but this works for any individual page, bot for entire site. By enabling this option: http://screencast.com/t/TeZwRX5c13W the theme will display only unique article on pages’s first load. However the posts displayed on that page will also be displayed on category page or on other pages with similar filters. To avoid having duplicate posts on many pages you have to set the filters such that the theme to display different posts on each page. Here is an example:
– in page named Recent News let’s say you add a block and set it to display posts from News category.
– in page named Older Stories let’s say you add a block and set it to display posts from Old Articles category.
Following this example on your pages won’t appear duplicate posts, each page will display posts from the selected category.
I hope this helps.
Thanks!
Hi Andrei,
thank you very much for your prompt reply and for you patience.
Now, I’ve better understood the 7 WPP post sorting behaviour, but still have a big doubt tha I try to explain better in the following. Since the moment I’ve enabled the visit counting display on posts, that is yesterday in the early morning, I’m monitoring the last 24h, 7days, 30days visits as well as what is shown on “MOST VIEWED” -“PIU’ VISTI” filter block on my home page. The results still continue to be incorrect. In fact, as one can expect, now the statistics of 24h, 7days and 30days are all aligned as you can see from here http://screencast.com/t/pVP8tbGpMd4, here http://screencast.com/t/Dx2BLPGVT, and here http://screencast.com/t/QPK69L6xKQ. As you stated in your last reply, now the first 4 posts in the 7 days WPP list should be the same of the 4 posts shown in the “MOST VIEWED” – “PIU’ VISTI” section on my home page: because the 1st and 2nd condition of your reply are now both satisfied.
But if I check opening the home page http://www.ntr24.tv/, I see this http://screencast.com/t/rI0JCOOHvym i.e. no one of the 4 most viewed -7days WPP- has been listed in the home page block!
And here comes another much more strange thing: if you go ahead clicking on paging controls of the filtering block in the home page and, right after, you click again backward, you will see the correct result as you can see here: http://screencast.com/t/XfD5OrSWM. Now the 7days WPP shown posts are correct even if you go forward and backward again by means of the block’s paging controls.
Moreover, even if the post list on the home is correct after the “unusual” forward/backward scrolling, the first 4 posts of 7 days WPP reported visits doesn’t match with the views counter of the related posts (the number near the eye icon on the post): please look here http://screencast.com/t/WwfJkAKjB and match with the 7 days WPP visits. Why?
Since I’ve enabled the “unique content” on site pages from theme panel, might have this a negative impact on the corretness of the 7 days WPP block filter behaviour?
If this is the case, I still don’t understand why results change scrolling forward and backward on block in the home page because, after all, the “unique content” still should have effect…
Thanks in advance of your pacience and kindness and looking forward to better understand about it.
Giuseppe
Hi
The theme can display animated gif only in post content, not on modules. If you add a gif image in post content it will be displayed fine, but if you set it as featured image then will not be rendered as gif, but as a normal image.
You can try use a plugin like Animate Gif Resize to get the gif image work on modules and blocks https://wordpress.org/plugins/animated-gif-resize/ Note that we didn’t tested this plugin and I can’t grantee that will work 100% with our theme.
Thanks!
Here i try to enable the Popular (last 7 days) option.i also enable the theme counter and installed jetpack wordpress plugin.still i can’t see any post in my most popular block.Can you please tell me the reason for that.Thank You
Hello ppcker,
If you want to add a universal text below for all your posts, you have to use do_shortcode method and add this for all corresponding file to your post template used by you. First of all, you have to edit the text block with your desired text, like this -> http://screencast.com/t/sIdwp5aT -> http://screencast.com/t/f9SOma8H and then you have to create this code <?php echo do_shortcode('[vc_column][vc_column_text]INSERT YOUR DESIRED TEXT HERE.[/vc_column_text][/vc_column]'); ?> which you have to place in the code. For example, if I sue the post template style 1, you have to edit the loop-single-1.php, like this -> http://screencast.com/t/38R9rjgt and the result you should see here -> http://screencast.com/t/ka2l2IlwM
Hope this helps and let us know how it goes!
Thank you for the message!
Hi,
im using the theme without VS. Im almost ready with my site – but now i saw the Block Grid Slider. The Shortcode im using: [td_block_big_grid_slide post_ids=”” autoplay=”3″ limit=”12″]
Quesition:
Is the VC required to display the mentioned block or is there any problem and if possible a solution? I like the block – looks awesome
best
Hi,
you can move in the footer style.css and fonts.googleapis.com, in order to increase the speed according Page Speed.
“Delete JavaScript and CSS that block the view to the above-the-fold content”
I await your news about
Is there a way to remove the more from author tab and section which shows in the related articles block?
https://www.dropbox.com/s/qcin1iyh0j6k854/More-from-Author-Block.jpg?dl=0
I noted something interesting but am not able to figure out what makes it happen. Your demo site covers wider screen space when shown in the Envato market frame – like this https://gyazo.com/9961423932d4737862bc727f90624388 But if I remove the Envato frame the screen size covered by the content reduces and leaves empty space on both sides – see this https://gyazo.com/64a0f2cace90774b2320a168963ee941. I thought it may have something to do with the frame.
But then I also noted a showcase site showing wider images and content covering more of the screen https://gyazo.com/0ad2e1442fcb067d01510f11412fff8e but our website shows shrunken images and covers less of the screen leaving more empty space on both the sides https://gyazo.com/8b5937a3e0198e4a2b6e7f73df7b1743. I have tested this using the same screen resolution.
Can you tell me what is the reason behind this? Different grid / block size or something else? I would like to to have bigger images and cover more screen space. Your input will help. Thanks.
Hi
You can use a css like this one:
.td_block_big_grid .td-module-thumb a:before, .td_block_big_grid_2 .td-module-thumb a:before, .td_block_big_grid_4 .td-module-thumb a:before, .td_block_big_grid_5 .td-module-thumb a:before, .td_block_big_grid_6 .td-module-thumb a:before, .td_block_big_grid_7 .td-module-thumb a:before {
background: transparent !important;
}
This code will target all grids except big grid 3.
Thanks!
Hi,
I want to exclude some categories from Big Grid on my Homepage. When I select ‘grid settings’ I can see this:
Filter multiple categories by ID. Enter here the category IDs separated by commas (ex: 13,23,18). To exclude categories from this block add them with ‘-‘ (ex: -9, -10)
Problem is my categories have names (gry, ksiazki, filmy, zwiastuny). When I want to exclude ‘zwiastuny’ I don’t know how to write it. I’ve tried -zwiastuny; ‘-zwiastuny’ -‘zwiastuny’ – non of this works.
Please help
Hi,
I’d just want add other details to the previous post: if you go on the webmagazine home page sidebar http://www.ntr24.tv/ you can see that the 7 days popular posts are http://screencast.com/t/O5nOAAzmZ8Km , while if you see in the admin panel the 7 days WPP you get instead http://screencast.com/t/1xs5abaL4i. But there is more: if you click on the pagination control to forward, you will see a 7 days WPP list (please see http://screencast.com/t/pQyf1aNmwYNU) which contains some of the right most popular posts even if not all the foreseen posts are reported (i.e. the first 4 of the 7 days WPP posts).
Endly, if you click the block pagination controls forward and then backward again, you will notice that the first 4 post of 7 days WPP are not the same! I’m getting very confused and still cannot get the right block filtering behaviour that is, to show in the home page sidebar the first 4 posts of the 7 most popular posts. Please, could you clarify and tell what is wrong?
Thank you in advance for any appreciated help.
Giuseppe
Hello,
Modules are different things altogether. In order to modify a module, you need to edit it’s file as there is no way to add a button in the module from the back-end. It will have to be hard-coded. Every module has it’s own specific file: http://screencast.com/t/bKA0L2PJ You will have to edit the files to add your button in it.
Here is an example:
You can use the do_shortcode function like so: http://screencast.com/t/2CXSDfGDZX
<?php echo do_shortcode('[vc_btn title="Click me" shape="round" color="violet" link="url:https://www.google.com||"]');?>
result: (module 1 is used in block 3): http://screencast.com/t/iqscQKkBM0f
You can see what module is used where in this list: http://screencast.com/t/xXHLgDoCRa
Thank you!