- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to Update the WPBakery Page Builder plugin
Hello, when i have enabled Rocket loader in Cloudflare there is a problem with Wp Editor in TD Composer. Autosaving is not working.
Console says that:
VM4442:52 Uncaught ReferenceError: tdcDebug is not defined
at window.loadIframe (<anonymous>:52:6)
at onload (wpeditor.php?wp_path=/var/www/vhosts/horrormovies.gr/httpdocs/:262)
at t.<computed> (VM4440 rocket-loader.min.js:1)
at l (VM4440 rocket-loader.min.js:1)
at t.simulateStateAfterDeferScriptsActivation (VM4440 rocket-loader.min.js:1)
at Object.callback (VM4440 rocket-loader.min.js:1)
at t.run (VM4440 rocket-loader.min.js:1)
at P (VM4440 rocket-loader.min.js:1)
at Object.callback (VM4440 rocket-loader.min.js:1)
at t.run (VM4440 rocket-loader.min.js:1)
Is there any solution to that? Or i have to disable rocket loader eventually?
Hi,
All these fonts are set on mobile using this file wp-content/plugins/td-composer/mobile/style.css on breadcrumbs is apply this code -> https://i.imgur.com/WzLqvEE.png
Thank you!
Hi,
I try the solution indicated, but don’t work.
I defined the “BACKGROUND UPLOAD” field with an image to represent “image without image”, but in my category page, element “Category Grid 2″ show a firt article with:
<span class=”entry-thumb td-thumb-css td-animation-stack-type0-2″ data-type=”css_image” data-img-url=”MYURL/wp-content/plugins/td-composer/legacy/Newspaper/assets/images/no-thumb/td_1068x0.png” style=”background-image: url(MYURL/wp-content/plugins/td-composer/legacy/Newspaper/assets/images/no-thumb/td_1068x0.png)”></span>
where MYURL is my domain.
Remind that occurs in a article category page with standard template.
I also indicate that I have already defined the image to represent an image without an image, in “BLOCK SETTINGS” -> “Thumbs on Modules / Blocks” -> “THUMB PLACEHOLDER”.
Which is working correctly except in the area “Category Grid 2” in standard category page.
Hi,
These 4 images are get from your posts, these are not static to can be set as in your example, the rel=”preload” need to be set on the dynamical code that is displaying the images, also in order to be apply correctly this code need to be set by a developer.
The file responsive for the big image 741×486 from mobile and amp is this one wp-content/plugins/td-composer/mobile/includes/modules/td_module_mob_2.php but most probably the code that need to be edited is in this function ->https://i.imgur.com/TpLoK21.png -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php
Thank you!
Hi,
Please make a test and set the codes here to see if this is working.
Also only standard pack can be set in child theme, cloud templates can not.
The code can be set here -> https://i.imgur.com/C2G2WuU.png wp-content/plugins/td-composer/legacy/Newspaper/header.php and it will be load immediately after body starts.
Thank you!
Hi,
Sorry, was my mistake, that option it will not work.
That can be done only with custom css -> https://i.imgur.com/dRkp2FT.png
.td-scandal .td-scandal-big-grid .td-grid-style-2 .td-big-grid-meta a{
color: #fff;
}
the code need to be set in theme panel> custom code> custom css.
Or use can use tagDiv Composer -> https://i.imgur.com/cl7FAHO.jpg
Thank you!
Hi there
We’ve just upgraded from Newspaper 9 to 10, and all of our pages now have the WordPress page title and breadcrumbs above the TD Composer content.
We can clear this in CSS (hide td-crumb-container etc), or by changing the Page Attribute pull down to something other than default, saving and then changing back to default again.
What seems to have happened is that the Page Attribute>Template information has been lost. Is there any way to fix this without going into every post?
New Bug:
In category page, whith default “Category Grid 2”, the articles without feature image don’t show the custom no-thumb.
Show a standard images:
…/wp-content/plugins/td-composer/legacy/Newspaper/assets/images/no-thumb/td_1068x0.png
…/wp-content/plugins/td-composer/legacy/Newspaper/assets/images/no-thumb/td_324x400.png
-
This reply was modified 6 years by
rvicerqveira.
Hi, I hope this message finds you well. I contacted you because I am having trouble while doing page customization. When I try to customize the page and hit save button to save the changes, it stuck in the loading loop and didn’t save any changes. Attached link of the screenshot is the error arises on the network monitor captured by google chrome.
Screenshot Link: https://prntscr.com/sz2pvz
Please respond to this ASAP. Thanks in advance.
Best Wishes!
Hi @gumball44
You can add the following code to your theme’s functions.php file.
// Preload Newspaper fonts for responsive theme (main theme)
function dns_prefetch_responsive() {
echo '<link rel="preload" href="//www.typemeon.com/wp-content/themes/Newspaper/images/icons/newspaper.woff" as="font">';
echo '<link rel="preload" href="//www.typemeon.com/wp-content/plugins/td-composer/legacy/Newspaper/assets/images/icons/newspaper-icons.woff" as="font">';
}
add_action( 'wp_head', 'dns_prefetch_responsive', 0 );
Or You can use WP Rocket plugin to add fonts preload.
For webp images.
You can either use Cloudflare’s pro plan to serve webp images or if you are using imagify for webp then make sure you have configured it like this – https://prnt.sc/syz749
And remove cache everything page rule from Cloudflare dashboard if you have any.
I hope you will find this helpful.
Hi,
Yes, you can use that code for woff2?v=4.7.0 too, the file path is -> wp-content/plugins/td-composer/assets/fonts/font-awesome/font-awesome.css -> https://i.imgur.com/W6rlwYi.png
Hope this will help you!
Have a nice weekend!
Thank you @amit
Where do I have to insert this code to make icons load faster ?
<link rel="preload" href="//www.typemeon.com/wp-content/themes/Newspaper/images/icons/newspaper.woff" as="font">
<link rel="preload" href="//www.typemeon.com/wp-content/plugins/td-composer/legacy/Newspaper/assets/images/icons/newspaper-icons.woff" as="font">
Second question, How can I use webp images on my site ? I’m using Imagify and Cloudflare, and Imagify is supposed to convert my jpg images into webp format, but it’s not diplay on my site..
How can I solve this problem ?
I just updated and I need to knock these errors out:
NOTICE: wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_video.php:226 – unserialize(): Error at offset 0 of 140865 bytes
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/td-standard-pack/Newspaper/page.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, td_global_blocks::proxy_function, tdc_zone->render, tdc_composer_block->do_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, td_global_blocks::proxy_function, vc_row->render, tdc_composer_block->do_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, td_global_blocks::proxy_function, vc_column->render, tdc_composer_block->do_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, td_global_blocks::proxy_function, td_flex_block_1->render, td_flex_block_1->inner, td_module_flex_1->render, td_module->get_video_duration, td_video_support::get_video_duration, td_remote_video::api_get_videos_info, td_remote_video::vimeo_api_get_videos_info, unserialize
Hi Calin,
I cant make it work. I defenately have the child theme activated since I hace modifications in function.php that work properly. So regarding the files I want to change
the following file
wp-content\plugins\td-composer\legacy\Newspaper\parts\header\td-login-modal.php
So I create my file under
wp-content\themes\Newspaper-child\parts\header\td-login-modal.php
Modifying the file in my child theme doesn;t have any affect. I can see my changes only when I modify the original file.
Do I need to copy the whole parts/ folder or just the files I want to modify?
What happens if I do modifications to the templates from the Theme Panel inside wp-admin?
Thanks
Can I use the same code for this font and where I can find it in the Desktop-Version:
wp-content/plugins/td-composer/assets/fonts/font-awesome/fontawesome-webfont/woff2?v=4.7.0
Greetings Kathrin
1)Invalid inline script
Arbitrary JavaScript is not allowed in AMP. You cannot use JS <script> tags unless they are for loading AMP components (which the AMP plugin will add for you automatically). In order for a page to be served as AMP, the invalid JS code must be removed from the page. Learn more about how AMP works. As an alternative to using custom JS, please consider using a pre-built AMP functionality, including actions and events (as opposed to JS event handler attributes like onclick) and the amp-bind component; you may also add custom JS if encapsulated in the amp-script.
If you remove the invalid markup then it will not block this page from being served as AMP. Note that you need to check what impact the removal of the invalid markup has on the page to see if the result is acceptable. If you keep the invalid markup, then the page will not be served as AMP.
Error code
DISALLOWED_TAG
Element name
script
————————————-
2) Excessive CSS
AMP allows you to style your pages using CSS in much the same way as regular HTML pages, however there are some restrictions. Nevertheless, the AMP plugin automatically inlines external stylesheets, transforms !important qualifiers, and uses tree shaking to remove the majority of CSS rules that do not apply to the current page. Nevertheless, AMP does have a 75KB limit and tree shaking cannot always reduce the amount of CSS under this limit; when this happens an excessive CSS error will result.
If you remove the invalid markup then it will not block this page from being served as AMP. Note that you need to check what impact the removal of the invalid markup has on the page to see if the result is acceptable. If you keep the invalid markup, then the page will not be served as AMP.
Error code
STYLESHEET_TOO_LONG
Node name
style
————————————–
3) Invalid script: tagdiv_theme.min.js
Arbitrary JavaScript is not allowed in AMP. You cannot use JS <script> tags unless they are for loading AMP components (which the AMP plugin will add for you automatically). In order for a page to be served as AMP, the invalid JS code must be removed from the page. Learn more about how AMP works. As an alternative to using custom JS, please consider using a pre-built AMP functionality, including actions and events (as opposed to JS event handler attributes like onclick) and the amp-bind component; you may also add custom JS if encapsulated in the amp-script.
If you remove the invalid markup then it will not block this page from being served as AMP. Note that you need to check what impact the removal of the invalid markup has on the page to see if the result is acceptable. If you keep the invalid markup, then the page will not be served as AMP.
Error code
DISALLOWED_TAG
Invalid markup
<script … >
Element attributes
type text/javascript
src https://sp24news.com/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js
Element name
script
Parent element
body
4)
Illegal CSS at-rule: @-moz-document
Error code
CSS_SYNTAX_INVALID_AT_RULE
At-rule
-moz-document
Element attributes
rel stylesheet
id tdb_front_style-css
href https://sp24news.com/wp-content/plugins/td-cloud-library/assets/css/tdb_less_front.css
type text/css
media all
Node name
link
Hi,
You can set the files from wp-content/plugins/td-composer/legacy/Newspaper/parts/register.php like the one from wp-content/plugins/td-standard-pack the child theme will overwrite the one that is use, in this case in file need to be set in child theme like this parts/register.php -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thank you!
Hi,
If you are using a standard demo, you can do this (edit fonts) using the settings from theme panel -> https://i.imgur.com/9PTvS0i.png
But if you are using cloud templates, PRO Demos or you want to adjust the fonts on pages, then you’ll need to edit the page/cloud templates with tagDiv Composer and set the font in Style tab or for some elements in General tab also if the font is set as default in cloud template or on page then it will be apply the one from theme panel -> https://i.imgur.com/Vjf6eZC.jpg -> https://i.imgur.com/tdA8Qty.png -> https://i.imgur.com/tdA8Qty.png
Thank you!
Hi,
If you are using a standard demo, you can do this using the settings from theme panel -> https://i.imgur.com/9PTvS0i.png
But if you are using cloud templates or PRO Demos then you’ll need to edit these cloud templates with tagDiv Composer and set the font in Style tab or for some elements in General tab also if the font is set as default in cloud https://i.imgur.com/Vjf6eZC.jpg -> https://i.imgur.com/tdA8Qty.png -> https://i.imgur.com/tdA8Qty.png
Thank you!
I disabled all the plugins (except TagDiv and Yoast) and purged the cache (W3 Total Cache and Cloudflare, I also bypassed it) and I have not solved anything.
I also noticed that I cannot change anything in the Cloud Templates because my regularly bought and active key does not work and gives me an error.
I could edit all the templates except the footer (and I don’t know why), and I can’t even import it since I get a key error.
Any changes I make are not saved, they are stalled and it also happens in another site that I manage on another hosting, different uses, different plugins.
WP Editor doesn’t work when I try to edit in TD Editor (title with text), results in a blank page on both sites.
Show Academy plugin: http://www.showacademy.it
Contact Form 7
Limit Login Attempts Reloaded
tagDiv Cloud Library
tagDiv Composer
tagDiv Social Counter
tagDiv Standard Pack
tagDiv Standard Pack Support
W3 Total Cache
WP Avatar Utente
WP GDPR Compliance
Yoast SEO
Word2Invest plugin: http://www.word2invest.com
AMP
Contact Form 7
Cookie Notice
Jetpack by WordPress.com
OneSignal Push Notifications
Regenerate Thumbnails
SG Optimizer
tagDiv Cloud Library
tagDiv Composer
tagDiv Mobile Theme
tagDiv Social Counter
tagDiv Standard Pack
WP Avatar Utente
Yoast SEO Premium
—-
Hi,
As I know the mobile-theme.woff?9 is in only one place and is a font face -> wp-content/plugins/td-composer/mobile/style.css -> https://i.imgur.com/6NNiXR4.png if you want you can set “font-display: swap” clear all cache, purge CDN and check the results to see if this message is still displaying or not in google page speed/
Normal it doesn’t affect the performance much and even has some side effects, like font flashes. But if you’re hunting for a 100 PageSpeed score, you should probably do it.
Thank you!
Is there a way to disable the mobile theme for all pages? When we check the box to disable in the editor, it works, but then when we use the TD Composer, it resets that setting.
So for exemple, If I want to delete “https://cdn.ampproject.org/v0.js”
I put this code into functions.php wp-content>plugins>td-composer>mobile>amp>functions.php
/** Disable New Relic Scripts in AMP Pages */
function disable_newrelic_for_amp_pages()
{
if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
if (extension_loaded('newrelic')) {
newrelic_disable_autorum( true );
}
}
}
add_action('init', 'disable_newrelic_for_amp_pages');
??
Thank you
Hi, I’m using the TD Composer to edit my home page. Everything looks great, but when I visit the home page via an iPhone, it doesn’t look like the version I expect compared to the TD Composer? In other words, the mobile version preview in TD composer (which is what I want) looks nothing like what appears when I actually navigate to the home page via iPhone.
Please help!
thanks,
Noel
Hi,
Sorry for the late answer, we had a day off.
The reviews on modules like that will be replace the date, the file path is -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php -> https://i.imgur.com/Wl1da5f.png
Thank you!