- NewsmagSmart list ads
- NewsmagIntroduction
- NewsmagMain menu
- NewsmagLogo & Favicon
- NewsmagHeader ads
- NewsmagSmart sidebar
- NewsmagSharing buttons
- NewsmagCategory tag on modules/blocks
- NewsmagBackground introduction
- NewsmagTheme colors introduction
Category Description appears as if it was on mobile even that I am on a desktop. After the last update.
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 guys. Can you please check to see, why the mobile burger menu and the mobile search button cannot be clicked on our website Boosted.dk? I have tried many things, but I can’t get it to work. It’s very urgent. I can create a user for you. Thanks. Kasper
Hi zdanas,
Do you use Google fonts or custom fonts?
If you are using Google fonts make sure that the option to use google fonts on mobile https://i.imgur.com/0GT8tAi.png
Please provide some screenshots of the settings you have and a link to your website to check the situation.
Hey Calin
Thanks for your recommendation. I have experimented with getting rid of the mobile theme and working without it, but that has been changing the thumbnail of my stores to have a large blue box over the text. Any recommendations on how to get rid of this?
Hi,
Edit the template with tagDiv Composer – https://i.imgur.com/w3xoh2Q.png then select the Woo Attribute Filters and uncheck the option for Enable Filters on Mobile – https://i.imgur.com/GXOLwfx.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
Thanx, I managed to fix it, the reversal of columns did the trick. I am using RTL website, my menu is ok in desktop mode, but in mobile mode it makes first from right at the bottom, I tried t make a mobile menu, but if I use it in composer, it affects all views. I thought changes in a viewport will affect only that view, it does not. please help.
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!
Hi,
Can you please provide some screenshots with some more details?
If you want the shortcode cna be set using tagDiv Composer set the shortcode directly in column text or text with title elements in the text zone – https://imgur.com/DSSni9j
Also, on mobile, you can reverse or set the columns order from a row – https://i.imgur.com/twXzqfY.png – https://tagdiv.com/flexibility-rows-columns-newspaper-theme/
Hi,
Don’t edit theme LESS files.
Those variables are compiled before use, so changing them has no effect unless you rebuild the theme (not supported).
Use a child theme. Open your child theme folder and edit the style.css (or a new file like breakpoints.css), add:
/* Custom mobile breakpoint */
@media (max-width: 575px) {
/* your mobile rules */
}
/* Between 576–767px (old mobile range) */
@media (min-width: 576px) and (max-width: 767px) {
/* your tablet-like rules */
}
Make sure your CSS loads last.
In functions.php:
add_action(‘wp_enqueue_scripts’, function() {
wp_enqueue_style(‘my-breakpoints’,
get_stylesheet_directory_uri() . ‘/breakpoints.css’,
array(‘td-theme’), ‘1.0’);
}, 999);
Clear caches (theme + browser) and test at 575px width your new breakpoint now applies.
I hope this will help 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, unfortunately there is no exact bracketpoints for the mobile theme plugin and if it is used for mobile yes, it is possible that it will also enter the tablet version. Now this may be related to the cache plugin and its options, but if logged in to the site or without cache, these display the mobile version on the tablet, meaning that the tablet resolution may be quite close to that of a phone.
Hi,
For the mobile version to have a mobile header ad, please use tagDiv Composer, edit the homepage and select the mobile viewport, after that add a row in the header section and in it select the header source for ads https://i.imgur.com/Uyq0buG.png https://i.imgur.com/g0Q3SyH.png https://i.imgur.com/zFTzQ1d.png https://i.imgur.com/QNOk1w2.png https://i.imgur.com/0tr065i.png
Thank you!
Hi
I have a shortcode to place in a sidebar, and I want it on top of mobile view before other modules, or at least to place the shortcode in a flex block as a post or something.
I am having a wide sidebar on top of my page and it does not look good.
riyadhkey.com
thanx in advance
Hani
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.
Hello,
I am currently using Newspaper version 11.5.1 and I’m experiencing an issue with the sticky mobile menu.
On inner pages the sticky header disappears and the browser console shows this error:
Uncaught TypeError: Cannot read properties of undefined (reading ‘top’)
at tagdiv_theme.min.js
Could you please provide me with the correct tagdiv_theme.min.js file from the fixed build (v11.5.2 or newer) so that I can replace it in:
/wp-content/plugins/td-composer/legacy/Newspaper/js/
I only need the patched file, not a full theme update, as everything else on the site is working fine.
Thank you very much for your support!
Best regards
Hi,
How can I have the author and date on one side, and the comment and view counters on the other side, just like in the demo template?
I also want this layout to stay the same on mobile screens.
Thank you!
I set up an adv in the header ad postion, and the adv is successfully displayed on all platforms, but not on mobile. Did I miss any settings?
https://drive.google.com/file/d/1s2FEPZ2cGJvA6QIS2b9QsxmBCOmsGhLP/view?usp=sharing
Hello wendy fox,
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.
Thank you!