Duplicated “custom css – generated by TagDiv composer’

Posted in: Newspaper
Post count: 110

I’m running the latest version of Newspaper and WordPress (using WordPress.com hosting). I’m currently working on optimizing my page for improved performance. The page is alpha.roadtovr.com.

And issue I’ve spotted is that there is a huge block of custom CSS files which is duplicated in the page source under “Custom CSS – generated by TagDiv Composer”. You can see here that these are an exact match of each other back to back:

View post on imgur.com

This is present despite disabling all caching/minification/concatenation options that I have access to. It exists on every single page of the site, regardless of the body content of the page.

I can’t tell for certain but it seems this could be a bug with the theme itself?

Post count: 110

I have narrowed this down to the “TagDiv Standard Pack” plugin that is part of the theme. When TagDiv Standard Pack is disabled, the duplicate block disappears.

How can I fix this issue?

For more clarity, I am running Newspaper 12.7.5 and WordPress 6.9.4

Post count: 35449

Hi,
The tagDiv Standard Pack, as the name suggests, includes the old theme templates. These templates cannot be edited on the frontend and only offer limited control through the theme panel, where you can enable or disable certain elements.
They are based on an older code structure (from several years ago, before the transition to Cloud Templates), and unlike the newer system, they load all CSS and JS files regardless of whether those elements are actually used.
If you are using Cloud Templates, there is no need to keep the Standard Pack plugin enabled. After disabling it, check your website:
If you don’t see any shortcodes, it means no standard templates or elements are in use, and you can safely keep the plugin disabled (or even remove it).
If you do see shortcodes, I recommend re-enabling the plugin. Then, using the Theme Builder, replace those old elements (for example, swap them with Flex Blocks). Once everything is updated, you can disable or remove the plugin.
This way, tagDiv Composer and Cloud Templates will load only the necessary CSS and JS for each page/template, improving overall performance.
Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.