- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsWhat is Ajax preloading?
Hi,
In case you are not using the mobile theme plugin, then there are two other 2 situations.
Unfortunately, i can not see the image because the Cloudflare is down – https://i.imgur.com/DnPm99f.png
– in case you are using a mobile page /template https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages/
– in case you are using the option to disable the desktop zone on mobile and the mobile zone on desktop – https://i.imgur.com/TT2slI3.png https://i.imgur.com/jWPKhXS.png
In the above scenarios, there is a need to use a cache that can create and provide a cache per device (mobile and desktop cache), most of the cache plugins have this option.
Thank you!
Thanks Calin. I deactivated the option but still appears. Deleted the cache too but no way…
Hi,
We are using the Newspaper theme on elubaczow.com.
The theme seems to generate different HTML for mobile and desktop.
This causes issues with full-page caching (sometimes the cached mobile HTML is served to desktop users and vice versa).
I think so and I received this information from the hosting provider.
Is there an option in the theme or in the tagDiv Composer / Mobile Theme plugin to disable device-specific HTML output and use a single unified HTML structure (with only CSS-based responsiveness)?
If not, what is the recommended way to configure caching (plugin and server-level) for Newspaper to avoid this issue?
The problem only occurs for users who are not logged in.
I have the “tagDiv Mobile Theme” plugin disabled.
Is the problem something else?
Incorrect loading: https://prnt.sc/Ao3ObgNt1cia
It displays a completely different header – unused, and the rest of the page falls apart.
Correct loading: https://prnt.sc/n7TnA1Ls_ibw
Hi,
I checked your website, and it appears you have the tagDiv Mobile theme plugin. Also, the cache used does not have the option for a separate mobile cache version, so the mobile version is displaying on desktop.
Please go to plugins and disable the tagDiv Mobile theme plugin, after that clear all cache and the responsive version will be used.
Thank you!
Hi,
Please go to your plugins section and disable the tagDiv Mobile theme plugin, and the theme will use the responsive version and the problem will be resolved. Also, clear the cache.
Thank you!
Hi,
This https://ibb.co/hFjWZy65 isn’t a problem, our system was set to delete only a few cache plugins and teh recommended one at that time was WP Super Cache plugin, but any plugin for cache cna be used, some of them provide better results than others.
Nor is the LiteSpeed cache plugin a good cache plugin providing so many options (this makes it a bit hard to use), but to have the best performance with this plugin, you need to have the server from LiteSpeed, so this can provide the best results.
For images, you can use a plugin to optimize them https://wordpress.org/plugins/ewww-image-optimizer/
For breadcrumbs (https://ibb.co/NngYKwhK) use the options like this – https://i.imgur.com/U8Glllo.png
For the filter, unfortunately, it can be used only for those that are currently provided. In your case, you should have “Single – Related by category”, which will provide articles from the same category as the current one. Unfortunately, there are no options to edit the way teh filter is working.
Thank you!
@Calin Hi! It’s improved a bit, but it’s still freezing. I disabled some plugins. You know what I think? At the end of last month it wasn’t like this, it was running smoothly.
I found something that might be causing the slowness. You know? It could be this: the theme isn’t identifying the caching plugin. Look at this: https://ibb.co/hFjWZy65
It says: “No caching plugin detected – for best performance we recommend using WP Super Cache”, even though I’m using LiteSpeed Cache, as you can see in the image.
However, there’s a message saying:
WARNING: The LSCache caching functions on this page are currently unavailable! To use the caching functions, you must have a LiteSpeed web server or be using the QUIC.cloud CDN. Learn more: https://ibb.co/fzyWqtg2
Then this page appears to click, to learn more: https://encurtador.com.br/nqXP. From what I understand, LiteSpeed doesn’t support PHP pages, or doesn’t work with caching PHP pages, and they have a paid service that performs better.
This might be causing the site to be slow. And this also appears:
5120M – Images, themes and plugins larger than this cannot be loaded. To learn how to change this, see our guide here.
What should be the ideal value for post_max_size? https://ibb.co/d0G7rfvG. “Images, themes and plugins larger than this cannot be loaded”. It could be a slow theme issue. This needs to be resolved, but I don’t know how.
Another thing: I need your help. Do you know the related channels block? This one: https://ibb.co/BVz63DqM.
You need to filter the main category: it appears here: https://ibb.co/NngYKwhK and is configured here: https://ibb.co/XxbXd2RT in the dav composer filter configuration. There’s no option to show only the main category: https://ibb.co/ksSHH8Bq.
Could you send me a custom CSS to do this? To show only the main category as shown here: https://ibb.co/RpdJ3VGT. It should appear in that block, but I don’t know what to do. I need a working CSS.
I ask for your help in solving these problems. Thank you for your attention.
Hello,
After checking the network activity on an article page, I noticed that the resources taking the most time to load are related to extra plugins being used https://i.imgur.com/Rk71vEP.png
My recommendation is to use the built-in theme option for videos by creating video articles – https://forum.tagdiv.com/featured-image-or-video/
– https://i.imgur.com/P37oMK9.png
Please disable all additional plugins related to videos (such as Elite Video, Flying Pages, etc.) and keep the number of active plugins as low as possible. After that, make sure to clear all caches and check if the loading performance improves.
We can also take a closer look, but for that, we’ll need access to a staging environment where we can safely disable plugins and test if the issue is caused by the theme or by extra plugins.
Another thing to consider is that videos usually have at least a few MB in size. It’s generally better to display an image instead of loading the video directly. The video can then start loading only after the user clicks on the image. This approach helps reduce the total page size from around 8–20 MB to just 3–4 MB.
Thank you!
Ok, it’s fine now. There was a big problem with the cache. Thanks.
Hi RENATO,
You are using videos on your website and the plugin Elite-video-player that loads a lot of resources on page, so when you access teh page https://glostv.com/tv-sete-lagoas is starts to download over 70MB https://i.imgur.com/5oMgrHp.png please disable the vide plugin and clear all cache, after that check agin, if the problem is resolved, then you need to contact the autors of the video plugin you are using to help optiomize it.
Thank you!
Hi,
Please run a quick debugging snippet (in a temporary plugin or in functions.php), you can check if the theme defines that constant:
add_action( 'init', function() {;
if ( defined( 'DONOTCACHEPAGE' ) && DONOTCACHEPAGE ) {
error_log( 'DONOTCACHEPAGE is defined by theme at init' );
}
})
Check your PHP error log. If you see that message, it confirms the culprit.
Constants cannot be undefined once set, the only safe way to override this is to prevent it before the theme sets it.
add_action( 'plugins_loaded', function() {
// Prevent the theme from defining DONOTCACHEPAGE later
if ( ! defined( 'DONOTCACHEPAGE' ) ) {
define( 'DONOTCACHEPAGE', false );
}
// Intercept no-cache headers
add_filter( 'nocache_headers', '__return_empty_array' );
});
How to test this safely
– Go to /wp-content/mu-plugins/ (create the folder if it doesn’t exist).
– Create a file called allow-litespeed-cache.php.
– Paste the code above.
– Clear all caches (LiteSpeed → Purge All).
– Open your site in a private/incognito window.
– Check response headers again.
If it now shows: x-litespeed-cache: hit, then the problem is confirmed and fixed.
I hope this will help you!
Thank you!
Hi,
That is the option that should be used for translating the latest articles – https://i.imgur.com/BW25MPH.png https://i.imgur.com/Dpf9oaS.png. Just make sure that all cache is cleared after the changes in the theme panel translation are made.
If it is still not working, we’d like to check it. For this, you can contact us via email at contact@tagdiv.com and provide temporary WP-Admin access.
Thank you!
Hello Calin,
Thank you for the suggestions. I have followed your advice and performed a step-by-step conflict test. I have found the exact cause of the problem.
Here are the results:
Test 1: I activated the default Twenty Twenty-Four theme with only LiteSpeed Cache active.
Result: x-litespeed-cache: hit. The cache works perfectly.
Test 2: I activated the Newspaper theme (v 12.7.3) with only LiteSpeed Cache active. All other plugins (including TagDiv Composer) were disabled.
Result: x-litespeed-cache: miss.
This test proves that the conflict is 100% inside the main Newspaper theme itself, not with another plugin. The theme is actively sending a no-cache signal as soon as it is activated.
Your functions.php code snippet from the last email did not solve this problem.
Please provide a working solution to disable this no-cache signal coming directly from the theme. I am on a LiteSpeed server and must use the LiteSpeed Cache plugin.
Thank you.
Hi,
It will be need to use a good cache plugin that can optimize the css. The most recommended is WP Rocket cache plugin. But there are other cache/optimization plugins that can be used, just to have the option to minify and remove unused css.
Thank you!
Hi,
Our theme do not use no-cache or DONOTCACHEPAGE.
Also, testing with a theme like “Twenty Twenty-Four” that does not have any features and comparing it with the Newspaper theme that you can build almost anything, I think, is not a good comparison, but if this is indeed something related to our theme make some tests like this. Use only the Newspaper theme without any extra plugins except the cache plugin. If it’s ok, go on with tagDiv Composer, this is the hard part of the theme. Then, with tagDiv Cloud Library and so on, until you test it with all the theme plugins you are using.
The text step after you identify the plugin that is interfering with the cache is to check the cache settings. From my experience, setting ‘/’ in cache fields will be interpreted to not cache the homepage, but this is maybe only my interpretation.
As a suggestion you can try a code like this one in the child theme (the code needs to be adjusted):
add_action( 'template_redirect', function() {
if ( class_exists( 'LSCache\\LSCWP' ) ) {
// Remove any DONOTCACHEPAGE flag that may have been set earlier
if ( defined( 'DONOTCACHEPAGE' ) && DONOTCACHEPAGE ) {
// Un-define the constant (only works if not locked), or override via filter
// Note: PHP doesn't allow undefining a constant, so we use filter below
}
// Use our filter to override caching logic
add_filter( 'litespeed_cache_allow_cache', function( $allow ) {
return true;
}, 99 );
// Clear any HTTP headers forcing no-cache
header_remove( 'Cache-Control' );
header_remove( 'Pragma' );
}
}, 0 );
Thank you!
Autoptimize this plugin is breaking my website.
ewww image optimizer plugin for image optimization is used
wp super cache is used.
Should I remove wp super cache and ewww image optimizer and installed your suggested new plugins?
Please let me know
Hi,
You have cache and optimize images, but please use Autoptimize for optimizing html, css, and JS. This will bring better results.
WP Rocket doesn’t have a free version, only premium, but there are other free plugins that you can try, like – https://wordpress.org/plugins/wp-optimize/ – https://wordpress.org/plugins/litespeed-cache/
Setting an old version of the theme normally does not improve the site speed.
Thank you!
Hello tagDiv Team,
I am using your Newspaper theme on a **LiteSpeed Server** (Hostinger) with the official **LiteSpeed Cache** (LSC) plugin.
The problem is that my site (laikmetis.lt) is not being cached. The response header always shows x-litespeed-cache: miss, and the HTML comment at the bottom of the page says “Page generated”, not “Page cached”.
I have run tests and **100% confirmed this conflict is caused only by the Newspaper theme**:
* **Test 1 (Newspaper theme active):** The result is x-litespeed-cache: miss.
* **Test 2 (Default Twenty Twenty-Four theme active):** The result is x-litespeed-cache: hit. (The page caches perfectly).
I have already tried every possible solution from the LSC plugin side, but your theme overrides all settings. I have already:
1. Confirmed that LiteSpeed Cache -> [4] Excludes settings are all empty.
2. Confirmed that LiteSpeed Cache -> [4] Do Not Cache Cookies is empty.
3. **Most importantly:** Added / (the front page) to LiteSpeed Cache -> [1] Force Cache URIs. Even with this “force” setting, your theme **still blocks** the page from being cached.
**Important Clarification:**
Please **do not** suggest that I use WP Super Cache or WP Rocket. This is **not a solution**, as I am on a **LiteSpeed Server**. Using any plugin other than LiteSpeed Cache means a massive performance loss. The goal is to make your theme compatible with my server, not to abandon my server’s advantages.
**My Request:**
These tests prove that the Newspaper theme (or TagDiv Composer) is actively sending a no-cache header or using a PHP constant (like DONOTCACHEPAGE).
Please provide a specific solution (a code snippet for functions.php or a hidden setting) so I can **disable** your theme’s no-cache signal. This is necessary to allow the LiteSpeed Cache plugin to finally function correctly.
I have already used super cache plugin and ewww image optimizer plugin for image optimization.
What is cloudflare is it wordpress plugin or I need to set up on my godaddy server ?
Also please let me if I revert newspaper theme version then will that make site fast?
wp rocket is commercial plugin am I right?
please do response.
After clearing all the cache again and re-enabling the lazy load option in the theme panel, I used the network tool in Chrome DevTools to confirm that the images are correctly deferred until they are in the viewport. I was wrong, it works perfectly. I still haven’t optimized the LCP for other pages, but for now, single posts are hitting a performance score of 98 on mobile and 100 on desktop. I’m very happy with my purchase and thank you for your help.
Hi,
You can update the php version to 8.3 and you can also use wp super cache will not be enough make sure that you use something for images and for html, css and js and Cloudflare – https://forum.tagdiv.com/how-to-make-the-site-faster/
For best results, we recommend WP Rocket – https://forum.tagdiv.com/wp-rocket-and-newspaper-theme-optimization-guide/
Thank you!
Hello support team,
I recently purchased the Newspaper theme and am using the “DEFAULT PRO” template because I was very impressed with its professional designs. I thought it would allow me to easily create a beautiful blog.
However, I discovered that most of the theme’s blocks (Flex Blocks, Big Grids, etc.) cannot be lazy-loaded, maybe because they use CSS background-image to display images ? I use lscache lazy load function and already tried others plugins.
This forces every single image in these blocks to load even if they are far below the fold. The lazy load option in the theme panel doesn’t improve performance metrics; it seems to be just a visual loading effect. Is that correct?
To keep a good performance score of 95+ on PageSpeed Insights, my only workaround has been to hide all images in these blocks on all single posts. While this fixes the speed issue, it completely defeats the purpose of buying a visually rich theme like Newspaper.
I already use others speed optimization like cache, css/javascript loading optimisation,etc. the only problem I can see is these theme’s blocks images on sidebar and footer not lazy-loaded.
My question is:
Is there a built-in setting or a recommended method to solve this? Or is this something that might be addressed in a future update?
This seems like a critical feature for any modern theme focused on performance.
My website : https://www.entrecampeurs.com/
Thank you for your help and guidance.
Hello Sir,
After your last message and new theme update advance ad extension which was clashing now working fine but my website is very slow after upgrade of theme.
Is there any solution for it?
My website is heavy and loaded with images.
Is there any new update coming which can solve this issue?
I have also installed cache issue and configured as per theme guide but site is slow.
My site is forcemedia.digital
Please help me on this
Hi RENATO,
The element shortcode from the single post template is a special one, which is why it is displaying only on the single post template, so if there are shortcodes that should trigger the article IDs, they will work correctly. BUG the shortcodes can be set in our theme on any page and cloud templates using the column text and text with title elements, you just need to set the shortcode in one of those elements and it will render the shortcode – https://imgur.com/DSSni9j
For the image situation, I will recommend setting a class on the row that is holding the image elements, doing this you can replace teh dynamic class tdi_98/7 – https://i.imgur.com/ngnSDSS.png
To hide an element using tagDiv Composer, select it and check the css tab, then on display, set the hidden option – https://i.imgur.com/CKrwQ2z.png use teh manage to see the hidden elements – https://i.imgur.com/IQ9JRUz.png
Related to the date from Google search results https://yoast.com/help/date-appears-search-results/
About the pagespeed, the best results are using the WP Rocket plugin, but this is a premium plugin and most of users prefer something free, here, it can be use the WP Super Cache, but with the Autoptimize plugin, othetrcache plugins that can be used with good results: WP Optimizer or LiteSpeed.
Also, using Cloudflare will help you a lot!
The live search element can be “translated” using tagDiv Composer select the element and look for the text set in composer https://i.imgur.com/0MuagAg.png
Related to the image requests for reducing the module image size, this is in the theme on flex blocks – https://i.imgur.com/PKmODaB.png https://i.imgur.com/tszBQkz.png and on single image element – https://i.imgur.com/jlzRLWu.png
The shortcode support in the theme is since teh theme was on Themeforest. As I mentioned above, the shortcodes should be set in column text or text with title.
Thank you!
Hi,
Try one more time with the check for update button, but this time check it using only tagDiv plugins and make sure that no cache and object cache is applied.
Another alternative is to manually update the theme https://forum.tagdiv.com/how-to-update-the-theme-2/
Make sure that after the theme is updated, all theme plugins that are now used are also installed and updated (can be installed/updated from Newspaper > plugins).
Thank you!