- NewspaperHow to Use tagDiv Cloud Library
- NewspaperCloud Library Templates
- NewspaperCloud Library – Category Templates
- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspapertagDiv Cloud Library Plugin
- NewspaperFlex Block Builder and Flex Loop Builder
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperFilters and sorting for taxonomies
- NewspaperHow to use the Google Maps API
- NewspaperHow to insert a block inside the content of a post
- NewspaperPosts Loop Element
- NewspaperSocial Sharing
- NewspaperInfinite Loading for Single Posts
- NewspaperHow to Add a Logo in Newspaper
- NewspapertagDiv Shop
- NewspaperCustom Post Type Support
- NewspaperHow to use the YouTube API
- NewspaperHeader Builder
- NewspaperMeta Info on Modules and Blocks
- NewspapertagDiv Composer Tutorial
Hello tagDiv team,
We would like to report a recurring fatal error affecting a WordPress.com-hosted site using Newspaper and tagDiv Composer.
This issue seems to occur only when the site visibility is set to private on WordPress.com. We use the same Newspaper/tagDiv stack on other sites, but this is the only one where the WordPress.com private-site access flow is involved.
The fatal error is:
PHP Fatal error: Uncaught Error: Class “td_res_context” not found
The error is triggered from:
wp-content/plugins/td-composer/legacy/common/wp_booster/td_js_generator.php
From the stack trace, the issue happens during the wp_footer hook. In this specific WordPress.com private-site flow, WordPress.com serves an access-denied/private-site template and calls wp_footer(). At that point, tagDiv Composer runs its footer callback and tries to use the td_res_context class, but that class has not been loaded yet.
The class appears to be defined in:
wp-content/plugins/td-composer/legacy/common/wp_booster/td_css_res_compiler.php
So it looks like the Composer callback in td_js_generator.php assumes that td_res_context is already available when wp_footer runs. That assumption seems to fail in this WordPress.com private-site access-denied context.
Environment:
– Hosting: WordPress.com
– Site visibility: Private
– WordPress: 6.9.4
– PHP: 8.4.21
– Theme: Newspaper 12.7.6
– tagDiv Composer: 5.4.5
– tagDiv Cloud Library: 3.9.5
– tagDiv Standard Pack: 2.8, built on 05.05.2026 9:08
We kept this issue as a low-priority investigation for some time because, although the fatal error was recurring in the PHP logs, the site appeared to work correctly in normal usage. Both the front end and the back office were functioning as expected, and we did not observe any visible impact for regular users or administrators.
However, the error became very frequent in the PHP logs, so we investigated further.
As a temporary workaround, we added a defensive snippet that runs before the tagDiv Composer footer callback and loads the file containing td_res_context only if the class is not already available. After applying this workaround, the recurring fatal errors stopped.
This suggests that the issue could be fixed in the plugin by either:
1. Ensuring the required dependency is loaded before td_res_context is used; or
2. Adding a guard clause before calling td_res_context inside the wp_footer callback.
Could you please review this scenario and consider adding a compatibility fix for WordPress.com private sites or for cases where wp_footer is called outside the normal theme-rendering flow?
Thank you.
Best regards.
Hi,
The main problem I see in the screenshots is missing plugins. That code which is seen on the website means that not all of the required theme plugins are active. Please activate these two plugins -> https://prnt.sc/TIVt4rbHY3Fz So the cloud library and the standard pack. The composer is a base plugin, and these two are extensions of it. After activating them the website should display correctly.
Concerning not being able to edit posts with the composer, this was always the case. The composer is not for building the actual post content, it’s for building the post template, which is what displays the post. These for example are the post templates and they are all built with the composer -> https://cloud.tagdiv.com/#/load/Single So you write the posts normally, within wordpress -> add new post. Then the post template displays it. And you can customize the post template with the composer from here for example -> https://prnt.sc/ODsOaezSimRe
Please let me know if I can help more.
Thank you!
I have deactivated all plugins except the four tagDiv plugins, namely tagDiv Cloud Library, tagDiv Composer, tagDiv Mobile Theme, and tagDiv Opt-In Builder (see screenshot: [https://prnt.sc/WBSe10lJObBx](https://prnt.sc/WBSe10lJObBx)).
Despite this, the homepage still takes nearly 60 seconds to load.
From my observations, the slowdown only occurs when an admin is logged into the WordPress dashboard and opens the homepage in the same browser. The issue is consistent across browsers, as long as the admin session and the homepage are accessed within the same browser. Once the admin logs out, the homepage loads very quickly.
Similarly, the website loads fast on any browser where no admin is logged in.
There is also a related issue during publishing. When attempting to publish a post, the process is often slow, with the loading indicator continuing for an extended period, and sometimes ending in an error message. However, after refreshing the page, the post appears to have been successfully published.
You likely experienced the same issue some time back on this thread because you were logged into the WordPress admin and accessed the homepage using the same browser session.
This situation has significantly affected our workflow.
Please investigate this and advise on a solution.
Thank you for your continued support.
With all plugins disabled and only the following active:
Newspaper theme version 12.7.6
TagDiv Cloud Library version 3.9.5
TagDiv Composer version 5.4.5
The “Edit with TagDIV Composer” option in Pages, still does not work. Disabling, uninstalling, removing, then reinstalling and activating a new copy of the TagDiv Composer did not resolve the issue.
This issue began following updates to our Home Page using TagDiv cloud templates. We’ve also notice that all of our top menus (above the Home Page content) have disappeared.
We have now sent you Login Credentials, referencing this support ticket.
Hi Calin,
Thank you for your response. I have already tried the revisions and even installed a completely new template from the Cloud Library, but the ‘6 zones vs 0’ error persists. My hosting provider has also optimized the server (PHP limits, LiteSpeed, and ModSecurity disabled), but we haven’t found a solution.
As you suggested, I have just sent an email to contact@tagdiv.com with the subject: ‘URGENT: persistent “Layout sync error” (6 zones vs 0) – sportlifeathletes.com’.
In that email, I have provided the WP-admin and hosting credentials so your team can investigate the backend. I look forward to hearing from you there.
Best regards,
David
Hi gmodonesi,
If you are using Cloud Templates, please make sure the required plugins are installed: tagDiv Composer and tagDiv Cloud Library. In some cases, tagDiv Opt-In Builder may also be needed.
If you are still using older templates, you will also need the tagDiv Standard Pack.
All these plugins can be installed from Newspaper > Plugins.
As a best practice, please always check which theme plugins are currently in use before updating the theme, and ensure they are properly installed and updated afterwards.
Thank you!
Hi,
I will forward this to our developers, and they will check it out.
Also, I want to let us know that using a mobile page/template will still load teh tagDiv Composer and cloud library (because those are used to create those pages and cloud templates for the mobile version). Normally, this option should be used when you need to have different content on mobile pages and mobile templates, maybe a smaller page with fewer elements, blocks, and for a different layout. Having the same layout and content will be better to use the responsive version, instead of the mobile page/template.
Here are a few additional recommendations you can try. For some users, all themes work without issues, while for others, only certain ones function properly. This can vary depending on the extra plugins in use, as well as any caching or optimization plugins installed.
-> Footer delayed load https://prnt.sc/FS34hBno40sx (under the theme panel > footer > footer delayed load)
-> MINIFY INLINE CSS and AGGREGATE INLINE CSS – https://prnt.sc/en14t6CQChM- (under the theme panel > block settings> inline css)
-> Don’t load on mobile/desktop, this option is only on the cloud header for HEADER MENU https://prnt.sc/udlAW4icvSPP on HEADER MENU STICKY https://prnt.sc/9pKnilQdWyex on MOBILE MENU https://prnt.sc/ff7fRQvTnaXt and on MOBILE MENU STICKY https://prnt.sc/Mm-4mbC4WB68
-> Flex Blocks cache – https://forum.tagdiv.com/use-flex-blocks-cache-option/
Also, it is recommended to use a good cache plugin and even Cloudflare (CDN)
Thank you!
Hello @Calin
I am writing to you after a deep technical audit that lasted two days, conducted by a Senior Infrastructure Engineer and Web Performance Specialist. We had to take this measure because our PageSpeed scores are stuck between 31% and 41% on mobile, despite running on a high-end VPS with persistent cache (Redis/Object Cache) and every possible server-side optimization.
Google has officially notified us regarding this poor performance, stating that our site is no longer a priority in search rankings due to failing Core Web Vitals. After a thorough investigation of the source code and database, we have pinpointed the root cause: The Newspaper theme is loading both Desktop and Mobile assets simultaneously on mobile devices.
Even with dedicated mobile pages (separate IDs), the theme “stacks” the entire desktop framework on top of the mobile one. This redundancy is killing our performance.
I need you to take this diagnostic to the tagDiv development team immediately. We need to know if and when a fix will be released. If this architectural flaw is not resolved, I will be forced to migrate to another theme or develop a custom one, as I cannot afford to lose my SEO ranking due to theme bloat.
Technical Diagnostic:
Problem: Mobile pages heavier than desktop pages
Date: 03/05/2026
Theme: Newspaper 12.7.5
Plugin: td-composer
Server: VPS Ubuntu — CyberPanel — LiteSpeed
CONTEXT
The site glostv.com uses the Newspaper 12.7.5 theme with the td-composer plugin and has a system of separate pages for mobile and desktop, where each version was built individually in the Newspaper visual editor (tagDiv Composer). The site owner reported that pages on mobile are significantly heavier than on desktop, even though there are separate and optimized mobile pages already built.
MOBILE SYSTEM ARCHITECTURE
The following pages were created as mobile templates inside the tagDiv Composer itself and are marked in the database with the flag tdc_is_mobile_template = 1:
ID 7584 — tv ao vivo Brasil (mobile version)
ID 7617 — POPULARES TOP (mobile version)
ID 8700 — Estados (mobile version)
ID 8872 — Homepage (mobile version)
ID 9944 — Política de Privacidade (mobile version)
ID 9948 — Termos de Uso (mobile version)
ID 10581 — Sobre Nós (mobile version)
ID 10597 — Política de Cookies (mobile version)
TECHNICAL PROBLEM IDENTIFIED
Problem 1 — td-composer loads assets WITHOUT any device distinction
Confirmed directly in the file:
wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php
Line 362 — Composer JS loads for ALL devices:
add_action(‘wp_enqueue_scripts’, ‘load_js_composer_front’, 1000);
Line 430 — Full Newspaper CSS loads for ALL devices:
add_action(‘wp_enqueue_scripts’, ‘load_front_css’, 1001);
Line 744 — Full theme JS loads for ALL devices:
add_action(‘wp_enqueue_scripts’, ‘load_front_js’);
None of these functions have any device check. They load for both desktop and mobile equally, without any condition whatsoever.
Problem 2 — The mobile engine loads ON TOP of the desktop engine
Confirmed in the file:
wp-content/plugins/td-composer/mobile/functions.php
Line 149 — Mobile CSS loads ON TOP of the desktop CSS already loaded:
add_action(‘wp_enqueue_scripts’, ‘tdm_load_front_css’);
Line 173 — Mobile JS loads ON TOP of the desktop JS already loaded:
add_action(‘wp_enqueue_scripts’, ‘load_front_js’);
Line 184 — Mobile specific script loads ON TOP of all previous ones:
wp_enqueue_script(‘td-site’, TDC_URL.’/mobile/js/tagdiv_theme.min.js’);
Problem 3 — The flag tdc_is_mobile_template does NOT remove desktop assets
Confirmed in the file:
wp-content/plugins/td-composer/includes/tdc_state.php
Line 42:
private static $is_mobile_template = false;
Line 202:
public static function set_is_mobile_template($is_mobile_template) {
self::$is_mobile_template = $is_mobile_template;
}
This flag only serves to let the visual editor know it is on a mobile page. It does not execute any removal of desktop CSS or JS. It is purely an internal state variable with no effect on asset loading.
Problem 4 — Proof: Zero wp_dequeue for mobile anywhere in td-composer
I ran the following command directly on the server via terminal:
grep -r “wp_dequeue|deregister” wp-content/plugins/td-composer/ -n | grep -i “mobile|desktop|css|js”
The only result found was the removal of Visual Composer scripts in the backend administrative editor, not in the frontend. Throughout the entire td-composer codebase, there is not a single wp_dequeue_style() or wp_dequeue_script() instruction conditioned on mobile device detection in the frontend.
WHAT THE MOBILE BROWSER IS ACTUALLY DOWNLOADING
When a user accesses the site from a mobile device, the browser downloads all of this before rendering the mobile page:
From the desktop engine (which should NOT load on mobile):
Full legacy CSS of Newspaper
td-composer frontend JS (desktop visual engine)
tagdiv_theme.min.js desktop version
td-cloud-library CSS
td-standard-pack CSS
td-multi-purpose/style.css
Desktop version fonts
From the mobile engine (which loads ON TOP of the desktop):
Newspaper mobile CSS
tagdiv_theme.min.js mobile version
Mobile specific scripts
Fonts loaded again
The mobile browser is downloading the complete Newspaper framework twice. Once for the desktop layout that is discarded and once for the mobile layout that is actually used. This directly explains why mobile pages feel heavier and slower than desktop pages. DIRECT QUESTION TO SUPPORT
Does td-composer 12.7.5 have any native mechanism to remove desktop engine assets—specifically the functions load_front_css, load_js_composer_front, and load_front_js located in td_wp_booster_functions.php—when the page being served is already marked with tdc_is_mobile_template = 1 in the database?
If yes, in which file and on which line does this asset cleanup occur?
If no, when is the development team going to release an update to fix this? It is unacceptable that a high-end theme like Newspaper forces a mobile device to download the entire desktop framework AND the mobile framework simultaneously. My server-side analysis confirms that even when using dedicated mobile pages, the theme simply “stacks” assets instead of “swapping” them.
This redundancy is causing a massive performance overhead and killing our Core Web Vitals. We have separate pages for a reason, and the theme should NOT be loading desktop junk on a mobile-dedicated template. We need a clear position on when this will be resolved so that tdc_is_mobile_template = 1 actually triggers a wp_dequeue of unnecessary desktop resources.
Hi,
thanks for the clarification!
I understand that blocks only support AJAX‑based pagination and that I need to use a post loop to enable classic numbered pagination.
I can see two different elements in the Cloud Library:
Post Loop
Post Loop 2
Could you please explain which one should be used for category pages and what is the difference between these two loops?
Thanks again for your help!
Hi aminier86, please ensure that you have the latest version of the theme Newsapper 12.7.5, where the cloud library version is 3.9.4, and that vulnerability has been fixed.
We are experiencing an issue with the tagDiv Cloud Library plugin. It keeps getting deactivated automatically without any manual action.
What happens:
The plugin works normally during the day.
At some point (usually overnight), it becomes inactive by itself.
In the morning, we find it deactivated.
As soon as we manually click “Activate”, everything works again without issues.
@Calin What’s happening, this has been happening for quite some time now, everything I click on appears with an orange outline and I don’t know what to do to fix it, I spent hours and hours trying to find a solution via the hosting terminal, the only thing I found via the terminal and was interpreting along with it. This is the REAL CAUSE OF THE ORANGE OUTLINE
The orange is NOT coming from:
❌ the td-cloud-library
❌ external minified CSS
❌ a separate plugin
It’s coming from the Newspaper theme (TagDiv) directly from:
text
wp-content/themes/Newspaper/style.css
And mainly from the files:
text
/wp-content/themes/Newspaper/includes/td_css_generator.php
/wp-content/themes/Newspaper/includes/wp_booster/td_wp_booster_functions.php
What’s happening:
✅ Newspaper has a global primary color variable (accent color)
✅ This color is set to #ff6600
✅ The theme uses this color to generate dynamically: I’ve looked everywhere to see how to remove this in some theme setting and nothing, nothing, look how it is That’s bad, https://ibb.co/xKbTTBg2
https://ibb.co/wFs0qrBw
https://ibb.co/VYDF9sgJ
https://ibb.co/gZczySt5 Everything I click on shows this orange outline, I don’t know what to do, I’m asking for your help to solve this.
Hi,
That section is not a page template it’s dedicated to importing all available pages from the cloud library. This means you can import any page from any demo that has been uploaded there.
If you want to create pages with a similar or identical structure to the Revenant demo, you can simply duplicate a page you like—for example, the homepage: https://prnt.sc/4NK53KxWK8wp then, edit it using tagDiv Composer and adjust the elements as needed.
Thank you!
Hi,
In order to be able to have comments in post, you need to make these settings -> https://i.imgur.com/83CnhKi.png -> https://forum.tagdiv.com/enabledisable-comments/
Also, in your case you are using a pro demo and you need to edit the single post template from tagDiv Cloud Library using tagDiv Composer like this -> https://i.imgur.com/1kebAnv.png and add the single post comments where you want to have it -> https://i.imgur.com/i9pnmBJ.png
Hope this will help you!
Thank you!
Ok Calin,
a last question: opening with the TD Composer my Pre-designed Templates (Default PRO) of the Cloud Library, i don’t see graphically a line of code (CSS code) that i see in other Pre-designed Templates (for example, Default RTL PRO): this apparent lack of code (CSS code) in my templates is a problem? Or i see the line of code (CSS code) in other templates because are different templates than mine?
Thank you!
Hi,
Cloud templates are the templates that you get from the tagDiv Cloud Library, and you can edit them with tagDiv Composer.
– https://forum.tagdiv.com/how-use-tagdiv-cloud-library-templates/
– https://forum.tagdiv.com/cloud-library-templates/
I’have been using Newspaper template with TD Cloud Library since January but the last monthh i’m getting errors when i try to modify the cloud templates i’ve created.
I’m always getting the error “Error at rows: 1(models) : 2(dom). The model does not match the content Current state has involved an issue. You could try an UNDO operation (CTRL+Z / CTRL+SHIFT+Z)”
I’ve tried everything but the error continues appearing. It appears also when i create a new blank template from cloud library and try to edit with Tag Div Composer.
I have the same instalation on a local server but the error doesn’t appear.
Any suggestions?
Thank you.
I’m sorry,
i have another problem: i can’t find the “Single post template – Default Pro” into “Pre-designed Templates – Cloud Library”. Can you help me, please?
Thank you
Hello,
i just imported the Pre-designed Templates for my Newspaper theme (Default PRO) from the Cloud Library and i noticed a difference between the “Default PRO” and “Default RTL PRO” templates (header, footer, etc.): opening the templates with the TD Composer, the “Default RTL PRO” templates displays a line of code (CSS code), while the “Default PRO” templates don’t. To properly use my theme’s original template (“Default PRO”), which of the two templates do you recommend? Could the lack of code (CSS code) in the “Default PRO” templates be a problem? (I’ve always noticed problems with my site’s indexing)
Thanks a lot!
Hi,
Regarding the thumbnails, if you go to Theme Panel > Block Settings > Thumbs https://prnt.sc/NcmBlPnWtbgF, each thumbnail on the right indicates which block or module it applies to. You can find more details here: https://forum.tagdiv.com/theme-thumbs/
For fonts and colors, you can configure them using both the Theme Panel and tagDiv Composer settings for pages and Cloud Templates: https://prnt.sc/utWjVU5seZBN
If this is related to Cloud Templates, you can import templates from the cloud, customize them as needed, and once ready, assign them either globally or individually.
Hello,
After some time using the plugin “3d-flip-book” with no problem, the “3d-flip-book” stoped displaying the books. Setting the wordpress in debug mode I get these errors:
Warning: Illegal string offset “3d-flip-book” in /home/cinemame/public_html/new/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 949
Warning: Illegal string offset “3d-flip-book” in /home/cinemame/public_html/new/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 949
Warning: Illegal string offset “3d-flip-book” in /home/cinemame/public_html/new/wp-content/plugins/td-cloud-library/includes/tdb_functions.php on line 392
Is there something I can do to resolve this errors?
Best regards
Hi,
The ads on the NewsWeek are set using tagDiv Composer on pages and cloud templates and those are rendered by using the element ad box from tagDiv Composer.
Also, all ads that are on our demos are banners so those can be removed or replaced from ad box element from the image ad tab – https://prnt.sc/YeZHo0Pqsa0F
I hope this will help you!
Hi,
If you do not want to use the tagDiv Composer to create sidebars on pages and use cloud templates and you want to use the standard templates.
You can create new sidebars from the theme panel > categories – https://i.imgur.com/T9xWDXF.png
What you are seeing there are sidebars created by the theme, and they are theme-protected because they are built using the theme options, not the standard WordPress widgets.
To view and add actual widgets, please use the “+” icon, as shown in the screenshots below: https://prnt.sc/Hu-fEadEhjCE – https://prnt.sc/0eVTTyOBf2C1
Thank you!
Hello tagDiv Support Team,
I hope you are doing well.
I currently have a live website running on a custom PHP (CodeIgniter) system:
👉 hbtvnews.com
Now, I am planning to migrate my website to WordPress using the Newspaper theme, which I have already purchased.
Before migrating the live site, I want to set up a staging/development environment (for example: staging.hbtvnews.com or a temporary domain provided by my hosting) so that I can:
* Set up the theme
* Import prebuilt demos
* Migrate and test all my existing data (around 18,000+ news posts)
* Finalize design and structure
However, I am facing an issue where the prebuilt websites and tagDiv Cloud Library are not accessible without activating the license key on the staging/temporary domain.
I would like clarification on the following:
1. Can I activate the same license on a staging or temporary domain for development purposes?
2. After completing development, can I deactivate the license from the staging domain and reactivate it on my live domain (hbtvnews.com)?
3. Does the Newspaper theme officially support staging environments without affecting the main license usage?
4. What is the recommended workflow to set up and test prebuilt demos before going live?
My goal is to safely complete the migration and testing process without affecting my live website and without violating license policies.
I would really appreciate your guidance on the best and recommended approach.
Thank you for your support.
Best regards,
Prakash Chauhan
Hi,
I believe that there is a misunderstanding. The TagDiv Composer will be used to create pages and cloud templates, but not posts, for posts will be used the wordpress editor (Gutenberg or classic editor) – https://www.youtube.com/watch?v=SoGQ0d5kIBg
Thank you!