- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
I have a page that’s a smart list. A have an image associated with each item. I would expect any images that I have on that page to expand since I have LightBox enabled for them.
Example page: https://www.wheredoitakethekids.com/blog/holidays/holiday-gift-guide/best-2025-holiday-gift-guide-for-duck-hunters/
The first image on that page is not an element in the smart list. It expands fine when it gets clicked on. The other smart list images do not expand. Nothing happens when you click on them.
I’m using WooCommerce for my shopping pages, and I want to display product descriptions in a toggle/accordion style on some pages, similar to this example: https://app.supademo.com/image/cmgvmj51f03dhz30ic7lh55de.
This style provides a compact, neat, and user-friendly look, but I noticed that TagDiv Composer does not have a built-in toggle description element.
Could you please advise if there’s a way to implement this for WooCommerce product descriptions, either through custom CSS, shortcode, or a compatible method within the theme?
Dear TagDiv Support,
I am writing to report several critical issues affecting the Newspaper theme and its bundled plugin td-cloud-library, which are causing instability and performance problems on my website (europeantimes.news).
After thorough debugging, I’ve identified key areas that require immediate attention from your development team.
🔧 1. Translation Loading Triggered Too Early
Error Message:
“Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ‘td-cloud-library’ domain was triggered too early.”
Location:
tdb_config::on_tdc_loaded() in /wp-content/plugins/td-cloud-library/includes/tdb_config.php
Issue:
The theme loads translation strings before WordPress is fully initialized. According to WordPress Codex , translations should be loaded at the init action or later.
Currently, this causes repeated “doing it wrong” notices and impacts system stability under high load.
Request:
Please ensure all text domains are loaded properly via the init hook:
php
1
2
3
add_action(‘init’, function() {
load_plugin_textdomain(‘td-cloud-library’, false, dirname(plugin_basename(__FILE__)) . ‘/languages’);
});
🔧 2. Deprecated Constructor in Mobile_Detect Class
File:
/wp-content/plugins/td-cloud-library/includes/Mobile_Detect.php
Issue:
The constructor uses outdated syntax that triggers deprecation warnings in modern PHP environments.
This affects compatibility and indicates code maintenance is needed.
Request:
Update the constructor to follow current PHP standards:
php
1
function __construct(?string $userAgent = null, ?array $httpHeaders = null)
🔧 3. Excessive Database Queries Due to Empty Email Lookups
Observed Behavior:
Repeated queries like:
sql
1
SELECT * FROM wp_users WHERE user_email = ‘d41d8cd98f00b204e9800998ecf8427e’
(This is the MD5 hash of an empty string.)
Cause:
Avatar functions call get_user_by(’email’) without validating that the email exists.
Impact:
Unnecessary database load, especially under automation or bot traffic.
Request:
Add validation before querying:
php
1
2
3
if ( ! empty($email) && is_email($email) ) {
$user = get_user_by(’email’, $email);
}
🔧 4. Aggressive Hook Execution Before Initialization
In tdb_config.php, translatable strings are used inside on_tdc_loaded(), which fires before init. This forces premature loading of language files and violates WordPress best practices.
Example Line:
tdb_config::on_tdc_loaded() → calls __() too early
Recommended Fix:
Defer any logic involving translation functions until after the init action.
✅ Environment Summary
Theme: Newspaper (latest version)
Plugin: td-cloud-library (bundled)
WordPress: 6.8.2
Caching: Redis Object Cache + Hummingbird
Traffic Type: High-volume, automated content publishing
🛠 Requested Actions
Please:
Acknowledge these issues
Confirm if fixes are planned in an upcoming release
Provide guidance on running the theme reliably at scale
These are not minor notices — they directly impact performance, scalability, and long-term compatibility with WordPress core.
Thank you for your time and support. I look forward to your response.
Best regards,
Hi,
This is because the amp will change the layout, and using it with the tagDiv mobile theme plugin will also change the layout + more. Using the mobile theme, you need to recreate the page’s content for your mobile version using the mobile editor. Please check our documentation for this – https://forum.tagdiv.com/mobile-theme-introduction/
Thank you!
Hi, I just updated the AMP on my blog as the new version of Newspaper requires, but some Pages have now a wierd view.
https://www.trolleygirl.it/iscrizione-newsletter/ –> empty on mobile
https://www.trolleygirl.it/ –> different view on mobile
Menu –> not working on mobile!
And all the pages! (not articles)
THe problem is that those are the most important pages on my site.. could you please help me?
Thank you
Hi,
Here is the link https://tagdiv.com/newspaper-changelog/?utm_source=forum&utm_medium=menu&utm_campaign=forum_loggedin&utm_content=52878 with what this theme update includes. Also, on the themeforest in changelog, you can see the same release notes.
Thank you!
Hi,
That was an example of what to do to resolve the situation you are facing, so there was no need to have that cpt, just a similar one.
But now there is no longer a need to do anything from above; just make a full backup of your website, update the theme and theme plugins after that, and the problem should be resolved.
Thank you!
Hi Jude,
Please connect to your ThemeForest account and get the theme package from there. That one will contain the last SR version 6.7.38 – https://tagdiv.com/newspaper-changelog/?utm_source=forum&utm_medium=menu&utm_campaign=forum_loggedin&utm_content=52878
Thank you!
Hello, we have issues with page responsivness – loading times on page http://www.modre-novice.si. We host on highest performance LiteSpeed server. We tried to optimize page with suggested cache plugin WP Super Cache – still not good, than we optimized it with liteSpeed cache – dedicated cacheing plugin for litespeed servers and it was a bit better but still too slow for an news portal.
We asked host to check on it and these were theirs findings:
Hello,
I checked the status of the website and ran a fairly simple test to see how long the initial response time is. I noticed that the response time for the website itself is indeed as described by the client — it takes more than two seconds for the main page to load.
I reviewed the server settings to see if there was anything that could still be optimized, but it seems the configuration is fine and nothing major has been overlooked. I then started looking into the application itself, so I began disabling WordPress plugins to identify which ones have the biggest impact on performance.
First, I disabled the top half of the plugins, but there was no noticeable change. Then I re-enabled them and repeated the process for the bottom half, where it turned out that some plugins could be problematic. When I started disabling the plugins one by one, I found that the “tagDiv Cloud Library” plugin, when disabled, reduced the total page render time by half.
I continued and disabled the “tagDiv Composer” plugin as well, which significantly reduced the load time even further — down to around 320 ms.
Usually, these modules for building and designing websites generate code that, unfortunately, isn’t very optimized for loading speed, even though the end product often looks nice. When I look at the website’s source code, the first thing I notice is that the <head> section is quite large and contains a huge amount of data.
The <head> tag stretches all the way to line 353 in the source code, and there’s a lot going on in that part of the code. This affects how quickly the browser can start loading the content from the <body> section. If there’s too much “bloat” in the <head> area, the browser has to process all of that before it can begin rendering any content.
My suggestion would be to review this page builder and consider replacing it with something else that would ultimately produce better performance.
If you decide to move to a VPS server, it will definitely be able to handle more of these “slow” requests compared to shared hosting. In addition, once the server is actually under load, we can recheck some parameters, and if the page still doesn’t load as expected (in this case, around 2.5 seconds is a typical result for an uncached single request), we can then increase certain limits on the server to achieve higher throughput.
________________________
What is the solution here?
My layman’s question is whether the website still works and looks the same when those two plugins are disabled? Namely, the news or posts are generated in the classic way under “Posts” without using these specific plugins. I’m wondering if they can remain disabled and only be turned on when needed — for example, when editing content on individual pages (and not on posts).
As for the tagDiv Cloud Library, it seems that this plugin provides the layouts for the posts themselves, the archive page, category pages, etc. Does the website’s visual structure break if this plugin is disabled?
Hello Team,
Thanks for the update,
We have chcekd form our end and there is no any
As we are not using any third-party plugin, I’m not sure why we’re still encountering issues related to the image.
Also, we don’t have the option for the admin bar in the AMP view, and the popups are displaying without any dependency on the admin bar. Please let me know if you need access to the staging site.
Thank you.
Hi,
This is because the cloud template is set as global for both CPTs, you need to create a new one for Release CPT and assign it to that CPT, example: https://i.imgur.com/nrlYwOW.png
Thank you!
Hi, the mobile menu, if it is in the mobile menu section https://i.imgur.com/pfQp9Es.png, will be mobile only. Also, the responsive options on elements/blocks will show a sidebar on the left side of the viewports, for example https://i.imgur.com/Xo5UEkd.png
For mobile menu, there are 2 elements that can be used – https://i.imgur.com/FHIBsPY.png, and you can also create your own menu page using the popup element and assign that page to it.
Hi Calin,
Thanks for the suggestions.
We attempted to deactivate the tagDiv Mobile Theme plugin and avoided using any custom mobile pages created with tagDiv Composer, instead relying solely on the responsive desktop version. However, we’re facing a few issues:
- Images are not loading. it is giving me structure like this:
<span class="entry-thumb td-thumb-css amp-wp-73151a4" data-amp-original-style="background-image: url('https://preprod.eurasiantimes.com/wp-content/uploads/2022/07/f-35-usa.jpg?w=696&h=0&crop=1')"></span> - A pop-up (Live CSS) keeps appearing on the screen and doesn’t close for some reason.
For your reference, please check the screenshot below:
Screenshot
Hello,
Here are the three available solutions for the mobile version:
1. Responsive Desktop Version – The default responsive layout that adjusts to mobile screens using tagDiv Composer – https://i.imgur.com/apZQZ0o.png
2. Mobile Page/Template – A custom mobile layout that can be created using the tagDiv Composer.
3. tagDiv Mobile Theme Plugin – A separate mobile theme that provides a dedicated mobile experience but is limited in edits and changes.
Note: When the tagDiv Mobile Theme Plugin is activated, it takes priority and will be displayed on mobile devices. If it’s not active, the system will check for a mobile page/template built with tagDiv Composer. If neither of these is in use, the responsive desktop version will be shown by default.
Related to the cache, please check in the cache plugin documentation if this supports mobile cache if you are using the mobile page/template or tagDiv Mobile theme.
Also, the tagDiv Mobile theme is the only one that can be used for AMP. Unfortunately, the options for editing the layout are only a few. Also, pages need to be remade using the mobile editor only:
– https://forum.tagdiv.com/mobile-theme-introduction/
– https://forum.tagdiv.com/the-mobile-theme/
– https://forum.tagdiv.com/tagdiv-amp-plugin-tutorial/
Thank you!
Hey Team,
I have a website Eurasian Times — where I’ve integrated the Newspaper theme along with the following plugins:
- tagDiv Cloud Library
- tagDiv Composer
- tagDiv Mobile Theme
- tagDiv Social Counter
- tagDiv Standard Pack
Currently, the AMP pages are being displayed using the tagDiv Mobile Theme settings, as shown below:
However, I’d like to customize or update the AMP page UI. I’ve tried creating a mobile page using tagDiv Composer, but the AMP version still loads the tagDiv Mobile Theme layout.
Does anyone know how I can update or override the AMP page design?
Any guidance would be greatly appreciated.
Thanks!
Hi Dom, the mentioned lang is changed using the wordpress settings for language, for example – https://i.imgur.com/8eMTNvR.pnghttps://i.imgur.com/N2yHqdN.png so go to general and set the language you need for your website.
Thank you!
Hello Bettina,
I hope you are doing well.
I found the following code snippet within the theme files, which appears to define the responsive breakpoints:
CSS
/*
* responsive settings
*/
/* responsive landscape tablet */
@responsive_l_tablet_max: 1140px;
@responsive_l_tablet_min: 1019px;
/* responsive portrait tablet */
@responsive_p_tablet_max: 1018px;
@responsive_p_tablet_min: 768px;
/* responsive portrait phone */
@responsive_p_phone_max: 767px;
My question is about the mobile breakpoint, currently defined as $responsive_p_phone_max: 767px.
The theme’s default mobile layout works well on smaller screens (320px – 500px), but I feel the range up to 767px is too large and causes design issues on larger phones or in landscape mode. At 750px, for example, the layout looks stretched in mobile mode before transitioning to the tablet layout at 768px.
Question:
Considering that this code appears to be SASS/LESS and not pure CSS, what is the correct procedure to implement a change to this value?
Is there a functions.php filter or function in the child theme that would allow me to change the $responsive_p_phone_max value to something like 575px, or is it necessary to modify and recompile the SASS/LESS files?
Please Note:
I fully understand that any such modification is at my own risk and is not covered by support. I am aware of the potential impact.
I am using only the standard and mobile layouts integrated into the theme, and not the separate tagDiv Mobile Theme plugin.
I appreciate any guidance you can provide on the safest way to make this change.
I am using the Newspaper Theme with the Mobile Theme plugin activated to optimize speed on mobile devices.
The issue I am facing is as follows:
While I intend for the special, lightweight Mobile Theme to appear exclusively on mobile phones, I have noticed that it is also loading on tablets.
On tablets, I would prefer to display the full responsive version of the main Newspaper theme, as it offers a superior user experience on larger screens, whereas the Mobile Theme is too simplified.
I have checked the settings in Theme Panel → Mobile Theme (specifically the AMP/Mobile settings), but I could not find a clear option to set the “breakpoint” to include phones only and exclude tablets.
I suspect that the issue is caused by the “unique articles” feature, which doesn’t handle well when a new module is split into two columns in a single row, and both blocks are set to display posts from the same category. Is there any way to work around this? For example, could the “unique articles” option be disabled just for these two blocks?
Hi Calin,
Thank you for your response. Unfortunately, the Imgur link you shared isn’t accessible in India, so I’m unable to view the example image.
Could you please share it through another platform — for example Google Drive, Dropbox, or as an image attachment — so I can see the reference properly?
Thanks again for your help and guidance.
Best regards,
Umesh Sharma
-
This reply was modified 10 months by
urishtaujjain.
Hello,
You need to use a good cache plugin, for example WP Rocket is one of the best but is not free. For free cache you can try WP Optimizer, Litespeed cache and you can also use this article https://forum.tagdiv.com/how-to-make-the-site-faster/
Thank you!
Hello,
I checked the mentioned link and in metrics it appears that the CLS is ok – https://i.imgur.com/xrgDp3d.png https://pagespeed.web.dev/analysis/https-www-wyborkierowcow-pl-najlepsze-uzywane-samochody-z-benzynowym-silnikiem-1-4-tsi-ea211/7f2pbkkxzm?form_factor=desktop The rest of them are not. For example, to improve the LCP for that article, you must make some edits on it, select the LCP and check all settings that are recommended – https://i.imgur.com/poO2Beb.png I will suggest checking first and try to resolve the SEO, Best Practices and Accessibility and after that try to improve the results from Diagnostics and Insights.
Thank you!
Hi,
In “TRANSLATIONS” I changed “Load more”
In “TagDiv Composer”:
FILTER: “Pagination: Load more button”
STYLE: “Pagination” – I changed colors.
Can we make other changes? For example, make the text bigger or bolder?
Thanks
Hi Calin,
Thank you for your response. Unfortunately, the Imgur link you shared isn’t accessible in India, so I’m unable to view the example image.
Could you please share it through another platform — for example Google Drive, Dropbox, or as an image attachment — so I can see the reference properly?
Thanks again for your help and guidance.
Best regards,
Umesh Sharma
Hi
Greetings!
need ur urgent help
my theme license number is –
i assigned my newspaper theme license to temporary domain for testing on hostinger – midnightblue-wren-996070.hostingersite.com
but now today i purchased my domain https://kingsleyandhart.com/
and i am not able to unassign it from testing domain, it is telling me to unassign after 25th oct 2025 which is several days later, i have completed the testing process and i really need my new domain up
please unassign from midnightblue-wren-996070.hostingersite.com it will be very kind of you
(this temporary domain is deleted and not working it’s purpose of testing is solved before installation on my final domain)
Thanks & have a wonderful day!
Bhanu Srivastav