- TutorialsHow to install Revolution Slider
- TutorialsHow to Install bbPress forum
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsImport Revolution Sliders
- TutorialsSystem status parameters guide
- TutorialsHow to Update the WPBakery Page Builder plugin
- TutorialsExisting content
Hi there,
we came across this issue:
Installing wpml:
– in the template overview as written in your tutorial it works fine BUT
– the cloud template overview does not load correctly with the languages
– the cloud templates wont load correctly in theme panel when you try to give the translated categories the correct translated cloud template.
We made a fix and now it works.
If you guys are interested write an e-mail and I’ll share the code (not sure if you want code in the forum).
Maybe you can then look for a lasting solution.
Here a summary what it does:
Summary: What the Plugin Does
Problem it solves:
When you switch languages in WPML, tagDiv’s Cloud Templates Library and Theme Panel don’t update – they keep showing templates from the wrong language because they use their own cached language setting.
How it fixes it:
1. Client-Side (JavaScript):
Intercepts all HTTP requests (AJAX, Fetch API, XMLHttpRequest) made by tagDiv
Automatically adds the current WPML language parameter (lang=en or lang=de) to every request
Sets language cookies that tagDiv reads (wpml_lang, _icl_current_language)
This ensures tagDiv’s JavaScript always requests templates in the correct language
2. Server-Side (PHP):
Forces WPML to use the language from the URL parameter (?lang=en)
Switches WPML context during AJAX requests so WordPress queries return content in the right language
Filters template metadata to ensure the correct translated templates are loaded
In simple terms:
The plugin acts as a “translator” between WPML and tagDiv, making sure they both agree on which language is currently active. It catches every request tagDiv makes and stamps it with the correct language code before it reaches the server.
Result:
✅ Cloud Templates Library shows correct language templates
✅ Theme Panel dropdowns show correct language templates
✅ Language switching works immediately without page refresh issues
Cheers.
Hi,
Updating teh theme should not change your layout, but we always recommend having a full backup before any theme update, and check teh theme plugins you are using after the theme update, make sure that all previous theme plugins are installed and updated.
Thank you!
Hi,
Please install the tagDiv Standard Pack plugin and the problem will be resolved. For this go to Newspaper > plugins.
When you see on your website shortcode one of the theme plugins is not installed.
Hi there – I’m currently migrating my site away from Optin Builder to a different membership plugin, but will still be using the Newspaper theme. I have uninstalled the Optin Builder and am noticing that the ‘Display Restrictions’ is still showing in Composer.
Does this setting mean you can restrict display for any logged in user, or just for subscriber without using Optin Builder?
If its any logged in user, would it be possible to alter this to make it ‘subscriber’ only?
I have an extremely large site (30k pages that had been using this functionality to create a partial paywall) so being able to continue to do this would save me many weeks of work.
Thanks in advance.
Hi,
That code seems to be related to the standard oack plugin and a line of code that is related wp_head();
Do you have any code set in the theme panel> analytics/js?
Was has the standard pack installed?
Thanks, but in the td_011 value I don’t have the entries I’m interested like custom_ad_6, custom_ad_7, etc… and aslo I don’t have custom_ad_1. I only have a small array entries like:
a:30:{s:12:"firstInstall";s:14:"themeInstalled";s:13:"td_log_status";s:3:"off";s:24:"tds_login_sign_in_widget";s:4:"show";s:18:"tds_thumb_td_0x420";s:3:"yes";s:18...
Hi,
Before updating the theme, make sure that you have a full backup and check the theme plugins you are using. After the theme is updated, check that those theme plugins are updated and enabled. If the system is not updating them automatically after the theme update, you need to go to Newspaper > plugins and click on install and activate for each plugin you are using for your website.
Thank you!
Hello TagDiv Support,
I am using the Newspaper theme (latest version) on my WordPress site, and am experiencing critical issues with missing frontend JavaScript files and related mobile performance problems.
Description of the Problem:
On my live site, the following critical theme JS files are returning 404 errors:
/wp-content/themes/Newspaper/js/tagdiv_theme.min.js
/wp-content/themes/Newspaper/js/tdb-site.js
This results in:
Broken frontend features (menus, blocks, theme interactivity).
Console errors such as “wp is not defined” and failures for any code dependent on the wp JS object.
Failed scripts when trying to use or customize TagDiv Composer, blocks, or advanced layouts.
File/Folder Structure Verified:
My Newspaper theme is installed at: /wp-content/themes/Newspaper/
The only theme folders present are: css, images, includes, translation, woocommerce (see attached screenshot).
No top-level /js/ directory is present in the parent Newspaper theme folder.
I checked within /includes/, where there’s a separate js folder, but it contains only backend/admin scripts, not the required frontend ones.
I have unzipped the original theme package from your download. There is still no /js/ directory at the theme root with the two required JS files.
Steps Taken:
Searched and extracted all folders in the downloaded Newspaper theme package, but could not find tagdiv_theme.min.js or tdb-site.js anywhere.
Cleared all WordPress, server, and browser caches, rechecked file system and browser console—issue persists.
Verified the problem recurs with a freshly installed, untouched Newspaper theme (not a child theme or plugin conflict).
Impact:
Site is not functioning properly for end users due to missing JavaScript.
Mobile Lighthouse audits show increased load times (LCP 5.6s+), slow visual completion, and warnings about render-blocking JS/CSS, many of which are worsened by missing or broken theme scripts.
Fundamental site features and performance are degraded on mobile and desktop.
Expected Resolution:
Please provide the correct /js/ directory and the latest versions of:
tagdiv_theme.min.js
tdb-site.js
so I can properly restore these to /wp-content/themes/Newspaper/js/.
If the theme package download I received is incomplete or missing files, please advise and provide a new download link or updated theme zip.
Advise if there may be a packaging, deployment, or installation issue on your end that affects the inclusion of essential JS files.
Optional/Additionally:
Please share a recommended method to ensure all critical JS assets are retained through future theme updates and can be verified after installation.
Any additional suggestions for resolving mobile loading/Lighthouse issues when all scripts are present and loading correctly.
Thank you for your help. Screenshots of my folder structure and file audits are attached for your reference.
Best regards,
Ameet
Newspatron.com
Console error screenshot
https://drive.google.com/file/d/1WisGWNru277WMt6d0twc0EvxeIVW0XkF/view?usp=sharing
Lighthouse screenshot
https://drive.google.com/file/d/1iAFtFb6z26XJdPg4myLTj0KlIoa4qnuS/view?usp=sharing
Hi,
The situation seems to be resolved. Usually, that case is related to a theme plugin that was no longer enabled, but after installing/enabling the tagDiv Standard Pack plugin, the problem was resolved.
Hi, here are the details:
– our blog incorrectly sets the “<meta name=’og:image’
vlaue=’uri_to_image’>” for the home page
– we want to force the value of the meta header “<meta name=’og:image’
value=’uri_to_custom_1image’>” only on the home page
– we don’t want to install a plugin for this
– we want to set the meta header with the functions.php (add_action)
– i don’t want theme updates (Newletter) to overwrite our custom functions . should i create a child theme from Newsletter just to add that function?
Hi,
I believe that when you updated the theme, the theme plugins were not updated. Please connect to the website and go to Newspaper > plugins and install from there the theme plugins you were using (I believe are tagDiv Composer, tagDiv Cloud Library, and maybe tagDiv Standard pack).
Thank you!
Hi,
What I can recommend if you want to make a redesign is to create a staging (you can use a plugin if you want: WP Staging) and there, install the Newsmag theme, style it, and see how it works and if you can achieve what you need from it.
Thank you!
Hi,
The theme do not have a plugin such as td-theme-core.
The theme plugins can be installed after the theme is installed by accessing the Newspaper > plugins section. The core theme is tagDiv Composer plugin https://forum.tagdiv.com/newspaper-how-to-update-a-plugin/
Hi,
First, make sure you are using the latest version of the theme, 12.7.2. If you have an old version of the theme, make a full backup and update the theme.
If you already have the latest version, first check if you have set some fixed numbers for the social counter https://forum.tagdiv.com/tagdiv-social-counter-intro/ https://i.imgur.com/ezLA45O.png
Another solution is to disable and delete tagDiv Composer and tagDiv Social Counter and reinstall them from Newspaper > plugins.
Thanks!
Hello, I have Newspaper Version: 12.7.2 with Current demo installed: Center Magazine PRO, I want to add excerpt to single post template after title. Can you help me pls?
Hello,
I’m glad you resolved the situation in a timely manner.
Unfortunately, I don’t know exactly what happened in this case, I can only give my opinion from similar cases. It is possible that the theme plugins were not installed automatically, in which case they must be installed from Newspaper > plugins (I think this is the most common situation), once the plugins are installed everything returns to normal. Another situation is when during the theme update another plugin or setting on the host interferes with it, and all the settings in the theme panel are lost (I think this is the worst case), in this situation what needs to be done is to use a backup from the theme panel https://forum.tagdiv.com/import-export-theme-settings/
But the most recommended of all is that when an update appears, it should be tested on a staging that is a 1:1 copy of the site, you can use wp staging, this way you can test if everything will go well during the update or if problems arise and how they can be solved in a timely manner.
Thank you!
Hi,
I tried to recreate this situation on my install, but for me everything seems to be ok.
Can you please provide a link where we can investigate this situation?
Thank you!
Hi,
I just checked the website, and everything seems to be working fine now.
Did you check the theme plugins after the theme update to ensure all the previous plugins are installed and up to date? You can do this under Newspaper > Plugins.
Critical Bug in td_util.php Line 1196 – Search Functionality Broken (Array to String Conversion)
Description:
I’ve encountered a critical bug in the Newspaper theme that completely breaks the WordPress search functionality. The issue is located in /wp-content/plugins/td-composer/legacy/common/td_util.php at line 1196.
Symptoms:
- Search returns “Critical Error” message
- Site becomes inaccessible when performing searches
- Error occurs both on frontend search and AJAX search
- Debug log shows:
PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given
Root Cause:
Line 1196 in td_util.php contains:
$buffer .= implode(' ', $value);
The function implode() expects $value to be an array, but in some cases (particularly with custom post meta or complex search queries), $value can be a string, causing a fatal TypeError.
Temporary Fix/Workaround:
Replace line 1196 with proper type checking:
// Line 1196 - Fixed version with type checking
if (is_array($value)) {
$buffer .= implode(' ', $value);
} else {
$buffer .= (string)$value;
}
This fix checks if $value is an array before using implode(), and converts it to a string if it’s not an array.
Steps to Reproduce:
- Install Newspaper theme with td-composer plugin
- Use WordPress search with complex queries or custom post meta
- Search function triggers fatal error
Environment:
- Newspaper Theme (latest version)
- td-composer plugin (included with theme)
- PHP 8.0+
- WordPress 6.x
Request:
Could you please include this fix in the next update of td-composer? This is a critical bug that breaks essential site functionality. The type checking ensures compatibility with all data types that might be passed to this function.
Affected File:
/wp-content/plugins/td-composer/legacy/common/td_util.php – Line 1196
Thank you for your attention to this matter!
Hi,
I’m not sure I understand correctly. Were you using a standard cloud header before, and now a cloud header, or vice versa?
If you had a cloud header before and now you don’t, please go to Newsapper > plugins and install tagDiv Composer, tagDiv Cloud Library and if it was a standard header, install tagDiv Standard pack https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
Thank you!
I fixed it (temporarily?) by disabling Gutenberg editor, instead of installing the classic editor and disabling all the plugins
Subject: Excerpt Formatting Issue: Paragraph Breaks <p> tags are being stripped – Newspaper Theme
Dear tagDiv Support Team,
I am experiencing a persistent issue with my post excerpts (teasers) when they are displayed on my homepage and archive pages using your theme.
The Problem:
The theme is stripping out paragraph breaks (the <p> HTML tag) from the post excerpts, causing the text to be displayed as one single, dense block. This happens regardless of whether the excerpt is:
Automatically Generated from the post content.
Manually Entered in the “Excerpt” meta box.
What I Have Tried (and failed with):
Custom Excerpt: Writing manual excerpts with HTML tags (e.g., <p>Text</p>). The tags are still removed.
Advanced Excerpt Plugin: I installed and configured the Advanced Excerpt plugin, ensuring the option to allow HTML tags was active. The theme seems to override the plugin’s functionality, and the paragraph breaks are still removed.
My Question:
Is there a specific setting within the Theme Panel, a tagDiv Composer Block setting, or a PHP filter that I can use in a Child Theme’s functions.php file to specifically allow the <p> tag (paragraph breaks) in the post excerpts displayed in your post listing blocks (like Flex Blocks)?
I only need the paragraph formatting (<p>) to remain intact to improve readability.
Thank you for your assistance.
Hi Davidpinto,
Did you check if the theme plugins were updated after the theme itself was updated? It’s possible that only the theme was updated, but the previous theme plugins weren’t.
In these situations, you should go to Newspaper > Plugins and install or update the theme plugins you’re using on your website.
Thank you!
I had the same problem and I contact my hosting provide to restore a backup of my website. After tried to install last update my header and footer have lost my edits. Now with the restore i resolved but for now i don’t update the theme. Any suggestions? thank you
Hi,
You can use the theme builder tagDiv Composer and tagDiv Cloud library and make the website as you like. If you want the block to have an image, title, and some excerpt, after that a read more button, then it can be done. Also, there are pre-built websites that can be installed https://forum.tagdiv.com/installing-demos/
You can see all prebuilt webiste using thsi link – https://demo.tagdiv.com/select_demo/newspaper-prebuilt-websites/?demo-type=pro
Thank you!