- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- ApiAPI – Single Template – Introduction
- ApiPractical example – How to add a new Block and Module
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- ApiUsing the Theme API in plugins
Hello,
If you want to update the theme, you should download the latest version of it from Theme Forest account and download it.
Please make a full backup to all files and database => https://www.youtube.com/watch?v=LAJXrSI-dDA
Here you can find information about the changes that have occurred in each update over time https://tagdiv.com/newspaper/
I recommend that you update the theme manually https://forum.tagdiv.com/how-to-update-the-theme-2/ via FTP/cPanel/File Manager, also if possible disable extra plugins during the theme update to avoid any problems that may arise and make sure that you have activated the tagDiv Standard pack plugin to keep the website’s look. You can try to update the theme on a staging website.
After you update the theme, you need to update the theme plugins too.
In the worst cases, the settings in the theme panel may be lost (there have been isolated cases), in these cases, after the theme plugins that were previously used are activated, you will have to use a backup for the theme panel -> https://forum.tagdiv.com/import-export-theme-settings/
Also, if you want, you can contact our custom work team here and they can help you to update the theme safely: https://tagdiv.com/premium-customization-services/
Please note that we don’t recommend you use WP Bakery anymore since there can be conflicts between TagDiv Composer and WP Bakery; also WP Bakery can’t edit the tagDiv Composer templates. You can use the cloud library and directly import a homepage template if you want: https://forum.tagdiv.com/homepage-how-to-build-and-set-it/
Hope this help you!
Thank you!
Hi,
There are a lot of factors which can make your site slow. Make sure you use only some templates and fewer functionalities and options.
Some factors which you need to take into account are:
External factors: server speed, if you are using CDN or not, the external resources loaded by your website like ads, fonts, tracking scripts like Facebook Pixel, Google Analytics, Twitter analytics, Hotjar and so on.
Internal factors: the number of elements on the page, image size, image formats, if you are using mobile optimized layouts, console errors, if you are using the Standard Pack plugin or not, if you are using the PRO demo or a standard one.
There are many optimization guides provided by our users here in the forum, some made by us; you could check some of them
– https://forum.tagdiv.com/cache-plugin-install-and-configure/
– https://forum.tagdiv.com/how-to-make-the-site-faster/
– https://forum.tagdiv.com/topic/high-number-of-ajax-request/
– https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/score-100100-pagespeed-with-newspaper-wordpress-theme/
– https://www.andraware.com/wp-rocket-for-newspaper-theme/
– https://spraythemes.com/newspaper-theme/how-to-speed-up-the-newspaper-wordpress-theme-using-wp-rocket/
– https://forum.tagdiv.com/topic/page-speed-guide-for-2023-beginners-and-advanced/
– https://forum.tagdiv.com/topic/newspaper-theme-speedify-your-website/
– https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/
– https://forum.tagdiv.com/cloudflare-cdn/
– https://forum.tagdiv.com/topic/theme-causing-high-cpu-usage-2/
– https://forum.tagdiv.com/topic/sql-querys-high-cpu/
– https://forum.tagdiv.com/topic/newspaper-theme-slow-to-respond/
– https://premium.wpmudev.org/blog/optimizing-your-wordpress-database-a-complete-guide/
– https://underconstructionpage.com/optimize-wordpress-database/
– https://crunchify.com/better-optimize-wordpress-database-all-in-one-guide/
Also, pagespeed is not covered by support -> https://forum.tagdiv.com/newspaper-theme-support/
If you use Wp Rocket, you can try to exclude the following files
/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js
tdBlocksArray
Thank you!
Good morning
Since the last update of the Newspaper template version 12.3.1, I notice a banner that appears everywhere in the backoffice of my WordPress site.
It’s this banner: https://d.pr/i/LjYtUN
Apart from the fact that I find it intrusive to impose a banner on us that it is impossible to hide, it is mainly the cause of problems with a plugin on my site: MailPoet
Indeed, this banner tries to be displayed in the MailPoet part of the backoffice and therefore creates a display problem with MailPoet.
Please tell me how to remove this banner.
After investigation with the teams of the MailPoet plugin, they confirm to me that it is this banner that is the problem. Here is their message:
Link to screenshot: https://d.pr/i/LjYtUN
This is the same notice that it’s trying to display on the MailPoet plugin page but it’s unable to render correctly as it’s using a syntax that we do not support. I’m afraid there isn’t much we can do about this. Kindly please reach out to the author of that theme and let them know about the conflict.
Here is the rendering that causes problems with MailPoet: https://zupimages.net/up/23/16/miah.png
https://zupimages.net/up/23/16/hrhf.png
Please tell me how to remove this banner.
Hello,
I recommend changing the block with Big Grid Flex and after you will be able to change the image size https://i.imgur.com/kRGfpGn.jpg
For the posts loop, please edit the page set the page template to default and after you can add the Posts Loop block in the page -> https://www.screencast.com/t/3jyBPefS0m8u
Thank you!
Hello,
I have created a shortcoded block that I want to insert into posts in various places. The shortcode is referring to a flex block with related article(s). And I want the flex block to show image on desktop and tablets only. But I want the image to be hidden on mobile.
When I edit a page, I can do it by duplicating blocks and adjusting their visibility on mobile/desktop so that one row/element is only shown on mobile, while the other row/element is only shown on desktop.
However, in case of a shortcode inserted in a post, it does not work because both elements are shown (both original for desktop and duplicate for mobile). It looks like the display show/hide information is encoded into the row rather than into the flex block element.
So, my question is how can I create different elements for desktop/mobile inside the post?
Is there any slug I can add to the shortcoded string to show/hide it on desktop/mobile?
Is there any way I can hide/show image for desktop/mobile within one block (without block duplication)?
Below is my shortcode to be inserted into posts:
[td_flex_block_1 modules_on_row="" limit="1" hide_audio="yes" columns="25%" image_floated="float_left" image_size="td_1068x0" custom_title="Related Article" block_template_id="" post_ids="99" modules_extra_cat="" show_author="none" show_date="none" image_width="30" meta_info_align="" meta_info_horiz="content-horiz-left" meta_padding="0px 0px 20px 15px" modules_category="" show_review="none" excerpt_col="" btn_title="Read" mc1_el="45" show_btn="none" mix_type_h="" fe_saturate_h="1.5" mix_type=""]
[td_flex_block_1 modules_on_row="" limit="1" hide_audio="yes" columns="25%" image_floated="eyJhbGwiOiJmbG9hdF9sZWZ0IiwicGhvbmUiOiJub19mbG9hdCJ9" image_size="td_1068x0" custom_title="Related Article" block_template_id="" post_ids="99" modules_extra_cat="" show_author="none" show_date="none" image_width="eyJhbGwiOiIzMCIsInBob25lIjoiMTAwIn0=" meta_info_align="" meta_info_horiz="content-horiz-left" meta_padding="eyJhbGwiOiIwcHggMHB4IDIwcHggMTVweCIsInBob25lIjoiMHB4IDBweCAyMHB4IDBweCJ9" modules_category="" show_review="none" excerpt_col="" btn_title="Read" show_btn="none" mix_type_h="" fe_saturate_h="1.5" mix_type="" tdc_css="eyJhbGwiOnsiZGlzcGxheSI6IiJ9fQ==" show_cat="eyJwaG9uZSI6Im5vbmUifQ==" show_com="eyJwaG9uZSI6Im5vbmUifQ==" mc1_el="25"]
Hello, Tagdiv support.
We have changed our faster server with more stability. We have noticed that one of the speed issues is with the CSS and template icons on both servers.
We have WPRocket Pro and have already minified the CSS and Javascript. We only have the Tagdiv Mobile plugin activated because together with the AMP plugin the web is much slower. We don’t have icons anywhere on our website.
I have tried with an empty template (blank) and the speed does not change. The charging time is similar with our design (down 6 points)
How can we make our mobile version go faster? or how can we minimize that css and icons?
Attached link to the Google PageSpeed Insight test (PDF). https://we.tl/t-v0Uipmp7MQ
A regards and thanks for your time.
Why are we having issues with this cloud template menu?
When first loading the page the alignment is correct but after refreshing the page the alignment is off and there’s a huge whitespace

This is also happening on all other pages to.
Hi,
I have some issues with the Breadcrumbs element, I tried to add it on every pages under my global header menu, it works well on manually created pages/templates, but dont on default pages like Category or Tag pages, see the screenshot below :

Hi denya,
The Doctor demo is a demo that uses custom post types (CPT) and ACF, it is a directory/listings demo – https://i.imgur.com/G9NfNlj.png (made for CPT not articles/posts), so if you want to have that section you have to install the demo and use CPT and that element will appear in the composer for CPT templates – https://i.imgur.com/FwPS6ky.png – https://i.imgur.com/GkOCv1x.png or to use ACF to create your own “Tabbed Content” – https://forum.tagdiv.com/use-tabbed-content-shortcode/
And that element is a “Tabbed Content” (display pages in tabs), these are the page ids – https://i.imgur.com/avYsZHr.png and those are the pages made with custom fields elements to display the ACF elements – https://i.imgur.com/hARlkYO.png and this one is the reviews page made with the reverse elements – https://i.imgur.com/mxhHKj6.png
Hello @Trajan !
You need to edit the templates with the TagDiv Composer and add the element social icons for example in order to display them on pages.
Thank you!
Hello @coinedition!
Unfortunately, we do not have an already build template with a list of authors.
But, you can create one blank page template for that page with the same slug URL: https://coineditio1stg.wpengine.com/author/ and customize it in the tagdiv Composer.
In order to display the author there, you can use the elements from Composer called ” Authors box ” or ” Team member “.
Thank you!
Hello,
You can’t use the post templates on pages. Those are the elements from tagDiv Composer, so you can add them only if you it.
Thank you!
Hi,
We have an author page(not all others listing page but a single author or author detail page) like the one below,
https://coineditio1stg.wpengine.com/author/coineditionteam/
https://coineditio1stg.wpengine.com/author/ayepyae-sone/
This is working fine but when taking the “https://coineditio1stg.wpengine.com/author/” page it redirects to “https://coineditio1stg.wpengine.com/tdb_templates/author-template-pulses-pro/“. How can we stop this and show the list of authors when taking the URL “https://coineditio1stg.wpengine.com/author/“? Is there any template for the same in your theme?
Please let us know your feedback.
Thank you
Good afternoon! Sorry for my poor English!
I’m planning to make a website consisting only of “page” type pages. I won’t use pages like “category”.
I want to add and edit pages only in the standard “worspress” editor, without using tagdiv-composer. It is more convenient and easier for me.
Question: How can I use the “post” template settings in the “page” template?
Let me explain: I want to add “social networks”, “comments”, “about the author” blocks in the “page” pages.
The same way as it is implemented in the “post” settings. And do it in the standard editor “worspress”.
Is it possible to implement this?
Hi,
Normally, that option should only be used if you use several Tabbed Content elements on the same page/template.
Thank you!
Hello,
You can use the posts loop element, if it is added on a page, will display all the posts from all categories, in the category template, will display the posts from that category -> https://forum.tagdiv.com/posts-loop/
Thank you!
It looks like this behavior is happening within the header itself, not the page.
Here I created a new blank header via Cloud Templates. All I did was add a text box, and you can see that it’s visible in all other viewports, but it disappears on the Phone viewport: https://imgur.com/a/UhhfSJv
https://kimura.nsm-staging.online/page/2/
https://kimura.nsm-staging.online/
hi we are using default template,
we had link for the page 2 at bottom in the home page,
the page 2 comes without posts, kindly resolve asap
Hi,
I created a page and used a list element from the composer to create a list of ahref links. There is a row with 4 columns of different links.
The problem is that in the source code of this template, I can see the same ahref link x3? And there is only one link visible at the front end. It seems like for every link I put in the list the theme generated it x3. Is there a solution for this as this is causing a problem from an SEO perspective?
I can provide a link to the template in private.
Thanks
A screenshot of the query monitor console next to each post. This problem occurs on all pages with your theme, and I have multiple licenses, the problem is even when I disable all other plugins.
wp-includes/taxonomy.php:4589
get_term_link()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_social_sharing.php:1206
td_social_sharing::get_service_share_info()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_social_sharing.php:1139
td_social_sharing::render_generic()
wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_post_share.php:387
tdb_single_post_share->render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:355
do_shortcode_tag()
wp-includes/shortcodes.php:355
preg_replace_callback()
wp-includes/shortcodes.php:227
do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:279
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/shortcodes/vc_column.php:316
vc_column->render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:355
do_shortcode_tag()
wp-includes/shortcodes.php:355
preg_replace_callback()
wp-includes/shortcodes.php:227
do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:279
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/shortcodes/vc_row.php:1145
vc_row->render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:355
do_shortcode_tag()
wp-includes/shortcodes.php:355
preg_replace_callback()
wp-includes/shortcodes.php:227
do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:279
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php:591
tdc_zone->render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:355
do_shortcode_tag()
wp-includes/shortcodes.php:355
preg_replace_callback()
wp-includes/shortcodes.php:227
do_shortcode()
wp-includes/class-wp-hook.php:308
apply_filters(‘tdb_template_content’)
wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php:139
I have updated my template to the latest version, but all the news articles on my home page have disappeared.
https://newsinthechannel.co.uk/
Please can you let me know what I need to do?
Hi there,
We are using Newspaper theme on our website, with LSCache WordPress plugin active. We are running a Core Web Vitals audit and the LiteSpeed team is tuning the plugin in order to achive the best results on CWV.
During the tuning, we found out that Google bot is not seeing the updated version of the category pages, on which we are using a TagDiv cloud template.
I am pasting below the answer and asking you to help us with this.
The LSCache team told us that the template we are using to generate the category view is not recognized as official Category view/pages, so they can’t be purged automatically, once a new article is added on the category.
Thank you for those details, I also got the logs and indeed these templates are not recognized as official Category pages, which is why they are not purged.
However, in order to do this, the only way is to contact the plugin owner and ask them to integrate with LSCWP API, so that they can trigger a purge on their URL’s when an update is done.
Regards,
Ciprian Pap
Hi!
I need to use a specific cloud template header and footer only in some parts of the website, when the phrase “/en/” (english site) is in the URL of the site like mysite.com/en/about (yes), mysite.com/chi-siamo (no), without setting it manually. This thing waiting to switch to WPML plugin.
Can you suggest me a code snippet to put in the functions.php file?
In the past, when I not use cloud template, I used for menu:
// Function to use specific menu on different page
add_filter( ‘wp_nav_menu_args’, ‘menu_switcher’ );
function menu_switcher( $args ){
$url = ‘https://’ . $_SERVER[‘SERVER_NAME’] . $_SERVER[‘REQUEST_URI’];
if (strpos($url,’/en/’) !== false) {
if( ‘header-menu’ == $args[‘theme_location’] )
$args[‘menu’] = ‘Principale EN’;
}
return $args;
}
Thanks!
Hello,
What can be done is to use 2 single post templates – https://i.imgur.com/jaqVjsS.png, one where the comment box is displayed all the time and one that has the comment box hidden for people who are not logged in – https://i.imgur.com/oSrY65y.png
These single post templates can be assigned globally, individually and by category, it would be best to have one global and the rest by category – https://i.imgur.com/fwidCwI.png
For the problem with the composer, does the same happen on a new page? Does the problem persist only with the plugins in the theme? if yes, then please contact us at contact@tagdiv.com and please provide temporary wp-admin access, also include the link of this topic in the email to can identify you. We’ll check the problem as soon as possible.
I hope this will help you!
Thank you!
I just want to see if I have this correct…If I want to have to information that is changeable on my posts then in the template the selections I need to choose are only from the single post shortcodes?
Here is what I am trying to do –
I want to have posts for different book authors we will be highlighting. Some of the elements in the template would be great to have, like the text with image. But in order to change it I need to have a template for every single author is what is happening on my site. I can’t just change the image and text for one single page.
Do I have this correct?