- ApiPractical example – How to add a new Block and Module
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_thumb::add
- ApiAPI – Thumbnail – Introduction
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_top_posts_style::add
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- ApiUsing the Theme API in plugins
- ApiThe Theme API
Hi,
The code should work if is set in theme panel> Analytics/Js Codes, not if I understand correctly, the problem is that the code do not get saved because of the infinite loading, this can be a problem from some untested plugins or it can be some issues related to a firewall or security module which blocks admin-ajax.php request. Please verify the console for error while saving the settings on the Theme Panel, usually it displays a 403 or 404 error.
If you don’t use a security plugin, please ask your host about this, maybe you have a security module which blocks this.
If you use a plugin like Wordfence please set it in learning mode.
Also make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv plugins, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.
Hope this will help you!
Let me know the results!
Is it possible, using TD Composer to make certain parts of a page show on desktop but not on mobile devices?
Thank you.
Hello !
1. Only the newer, PRO Demos have flex blocks, this is a new feature. The old blocks do not offer this option.
2. Please make sure that you have accomplished all the system requirements as in our documentation here: https://forum.tagdiv.com/requirements-for-newspaper/
Please make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.
Thank you !
Hi,
This is quite strange, make sure that when you edit with tagDiv Composer that flex block has selected all categories or a specific category whet you have assigned posts -> https://i.imgur.com/QwCRg90.jpg if is still not working, what you can do is to add a new flex block element and use the right click to copy and page the style from one flex to the other one.
Let me know the results!
Hi,
The size of this image can differ when the image that you are using do not has a regular size, some time this can be fix using the regenerate plugin to create that thumb size also make sure that the size thumb is enable in theme panel -> https://i.imgur.com/MBi5Eos.png -> https://i.imgur.com/TpwCaxV.png
Thank you!
Hi,
The admin-ajax.php is not use only for Preloading it is use for all the queries that are made by the theme.
For a better performance you can remove the mega menu, and all options for blocks that are use for infinite loading, next/prev buttons, all the elements that can make queries to database.
Please follow our tutorial for page speed -> https://tagdiv.com/how-to-increase-page-loading-speed/
Also you can check these similar topics for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Thank you!
Hi,
If you have on mobile a deferent version then desktop it can be because you are using the mobile theme plugin.
Also the mobile icon it can be block by some untested plugins, please make a test and use only tagDiv Plugin to see if the problem persists.
If there is still a problem, please provide me a link to your website where I can check them.
Thank you!
Errors on my sites look very similar:
Uncaught Error: Syntax error, unrecognized expression: undefined<div class=”tdc-sidebar-separator tdc-sidebar-text-separator”><span>Flex Block 3</span></div><div class=”tdc-sidebar-element tdc-element” data-shortcode-name=”td_flex_block_3″
etc.
etc.
Calin, just remove code and I was trying to fix some stuff on robots.txt but now I have this google “Indexing request rejected” error also rich result test by google now can’t be done (Page cannot be reached
This could be because the page is unavailable or blocked by robots.txt)
my robots.txt are :
User-agent: *
Disallow:
Sitemap: https://-www.mysite-/wpms-sitemap.xml
now by default
Don’t understand ):
Hi there!
I’d also like to add to this.
I would like to add an image to some sub-categories to use is the subcategories block. However, it automatically adds that image to the background of that sub-categories page.
So to clarify I’ll add some screenshots: https://imgur.com/a/jQvjPN2. I want the images like they are shown on the first screenshot. But I don’t want the background image shown on the second screenshot.
Is there a way to achieve that?
Hello,
I am experiencing a serious problem with pages built with TD Composer. I noticed that I am not able to edit that pages anymore with the TD Composer, I guess after the last WordPress updates but I am not completely sure.
This is happening on several websites, so it is not related to a specific website. I wanted to know if someone else is experiencing this issue and how to solve it.
Thank you,
Attached some errors that I see from the browser console:
Uncaught TypeError: jQuery(…).live is not a function
at post.php:4132
at post.php:4219
jquery.js:2 Uncaught Error: Syntax error, unrecognized expression: undefined<div class=”tdc-sidebar-separator tdc-sidebar-text-separator”><span>Video Playlist</span></div><div class=”tdc-sidebar-element tdc-element” data-shortcode-name=”td_block_video_youtube” data-start-values=”W3sicGxheWxpc3RfeXQiOiJEbF9Mb1ByazMybyJ9XQ==” ><div class=”tdc-element-ico tdc-ico-template”></div><div class=”tdc-element-id”>yt – template</div><div class=”tdc-element-delete” data-type=”td_block_video_youtube” data-name=”yt”></div></div><div class=”tdc-sidebar-element tdc-element” data-shortcode-name=”td_block_video_youtube” data-start-values=”W3sicGxheWxpc3RfeXQiOiJEbF9Mb1ByazMybyJ9XQ==” ><div class=”tdc-element-ico tdc-ico-template”></div><div class=”tdc-element-id”>yt2 – template</div><div class=”tdc-element-delete” data-type=”td_block_video_youtube” data-name=”yt2″></div></div><div class=”tdc-sidebar-element tdc-element” data-shortcode-name=”td_block_video_youtube” data-start-values=”W3sicGxheWxpc3RfeXQiOiJQTHZ1aUt0M2U3aVd0YlRtQjFzNV9QeDdENktTdmw2dHdUIiwicGxheWxpc3RfdGl0bGUiOiJDaGkgc29ubyJ9XQ==” ><div class=”tdc-element-ico tdc-ico-template”></div><div class=”tdc-element-id”>yt4 – template</div><div class=”tdc-element-delete” data-type=”td_block_video_youtube” data-name=”yt4″></div></div>
at Function.ea.error (jquery.js:2)
at ea.tokenize (jquery.js:2)
at ea.select (jquery.js:2)
at Function.ea [as find] (jquery.js:2)
at n.fn.init.find (jquery.js:2)
at new n.fn.init (jquery.js:2)
at n (jquery.js:2)
at Object.updateSavedShortcodes (js_files_for_wrapper.min.js:476)
at Object.init (js_files_for_wrapper.min.js:451)
at js_files_for_wrapper.min.js:477
react-dom.min.js:227 Uncaught Error: Minified React error #200; visit https://reactjs.org/docs/error-decoder.html?invariant=200 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at render (react-dom.min.js:227)
at t.renderClassicEditorMetabox (classic-editor-1500.js:1)
at Object.t.default [as initEditorIntegration] (classic-editor-1500.js:1)
at HTMLDocument.<anonymous> (post-edit-1500.js:1)
Good Morning. My hosting provider, we would highly recommend bringing these logs onto your TD Composer plugins support to see if they could provide any fixes regarding these aspects or not.
Most of the slow logs in the server point to these:
10-Oct-2020 03:43:04] script_filename = /var/web/site/public_html/index.php; mysqli_query() /var/web/site/public_html/wp-includes/wp-db.php:2033; _do_query() /var/web/site/public_html/wp-includes/wp-db.php:1922; query() /var/web/site/public_html/wp-includes/wp-db.php:2673; get_results() /var/web/site/public_html/wp-includes/meta.php:1061; update_meta_cache() /var/web/site/public_html/wp-includes/meta.php:576; get_metadata_raw() /var/web/site/public_html/wp-includes/meta.php:506; get_metadata() /var/web/site/public_html/wp-includes/post.php:2126; get_post_meta() /var/web/site/public_html/wp-includes/post.php:499; get_attached_file() /var/web/site/public_html/wp-includes/post.php:6221; wp_attachment_is() /var/web/site/public_html/wp-includes/post.php:6272; wp_attachment_is_image() /var/web/site/public_html/wp-includes/media.php:193; image_downsize() /var/web/site/public_html/wp-includes/media.php:955; wp_get_attachment_image_src() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php:287; get_image() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/modules/td_module_flex_1.php:42; render() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_1.php:1461; inner() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_1.php:1441; render() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27; proxy_function() /var/web/site/public_html/wp-includes/shortcodes.php:343; do_shortcode_tag() /var/web/site/public_html/wp-includes/shortcodes.php:218; preg_replace_callback() /var/web/site/public_html/wp-includes/shortcodes.php:218
script_filename = /var/web/site/public_html/index.php; mysqli_query() /var/web/site/public_html/wp-includes/wp-db.php:2033; _do_query() /var/web/site/public_html/wp-includes/wp-db.php:1922; query() /var/web/site/public_html/wp-includes/wp-db.php:2338; update() /var/web/site/public_html/wp-includes/meta.php:271; update_metadata() /var/web/site/public_html/wp-includes/post.php:2158; update_post_meta() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_page_views.php:37; update_page_views() /var/web/site/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php:82
So maybe you could share these slow logs to your plugin support and see if they could help with improving these within the plugin side or not. If its a known use case with their plugin, they might also have fixes for this.
Hello Calin
Sorry for the late answer.
Let’s try one more time together.
In order to set on “SIGN IN / JOIN” button -> https://i.imgur.com/MOMLh9P.png the link you need to go on this file -> wp-content/plugins/td-standard-pack/Newspaper/parts/header/top-menu.php the file will look like this -> https://i.imgur.com/OZMeu9s.png -> https://i.imgur.com/Bge4quX.png the rest of the code is no need to be removed.
Thanks for the answer.
Just tried to do that.
But it seems that now when I try to login instead a pop in window it goes on the page page /profil.
Sorry but it is not what we need! 🙂
The pop in windows of the theme is perfect.
It is AFTER, when the member is ALREADY login.
For example here:

I am already login so my name appears.
I want that when I click on it, I don’t arrive on the articles I wrote: https://www.virtualmagie.com/author/thomas-4/
but on my Profile to see my informations and elements I bought in the shop: https://www.virtualmagie.com/profil (this URL is the same for eveyone).
On computer and mobile.
What files and code do we have to modify?
Regards
I have those options if I use Flex blocks, but shouldn’t I have those options too, when I try to edit the demo content? What is the purpose of the demo content if it can not be edited?
There is no option to edit this imported header using tagDiv composer.
Also, when I try to use Cloud templates, clicking on add new I get this Invalid reply from server endpoint.
-
This reply was modified 5 years by
proleter.
Hi Calin,
Now I am facing duplicate queries issues …
I read in the forum and made all the optimisations.
1 / The server corresponds precisely to the requests (php.ini, php functions, etc …
2 / Wp cache is set according to your specifications
3 / I deleted all the ajax drop downs and the previews / next on the blocks.
4 / I deactivated all the plugins, and …
I still have a lot of duplicate queries ( tagdiv composer)
I don’t know what to do now!
Thank you for your help.
Olivia
Hello !
The latest articles option and related posts come from WordPress not from Newspaper Theme. You can disable it from here as you can see: https://www.screencast.com/t/uzXRgXTiHlH You can disable that and replace it with a Flex block that has more editing options.
Thank you !
Hello !
You can control each block filter from here: https://www.screencast.com/t/IRltd6qEPN Also, what is your total number of posts? If you have only 3-4 posts that may be the cause.
Thank you !
Hello !
On homepage you will have to replace the BLOCK with a Flex Block and on your category page you will need to use a Cloud library template for category as you can see here: https://forum.tagdiv.com/cloud-library-category-templates/
Let me know the result !
Thank you !
Hi,
I just set you code https://i.imgur.com/q7zHNs8.png and for me is working -> https://i.imgur.com/fPgww6j.png just make sure that you have some flex blocks one your homepage and these has the option for Enable video pop-up enable -> https://i.imgur.com/OEYqJ1Q.png
let me know the results!
Thank you!
Hi,
If you are using the mobile theme plugin, then you need to enable in theme panel > block settings > thumbs the “265×198” and the “741×486” thumbnail sizes in order to show the featured images properly.
Unfortunately if you are using the mobile theme plugin, there are no possibilities to change the thumbs dimension or edit them, you can use only those settings from them panel -> https://i.imgur.com/i8ErMf2.png
Hope this will help you!
Thank you!
Hi! please help!!
I would like to use Modal image Lightbox when click on image
But when I edit image and select On in Model image. it cannot On
Hi,
So the problem was fixed by rebuilding the flex block, this is strange, normal there are not such problems. If the problem reappears, let us know!
Thank you!
Hello !
The latest articles option and related posts come from WordPress not from Newspaper Theme. You can disable it from here as you can see: https://www.screencast.com/t/uzXRgXTiHlH You can disable that and replace it with a Flex block that has more editing options.
Thank you !
I was able to make the change on the article template: http://www.wcevent.com/safety/be-ready-when-a-wildfire-ignites/
I want to change the category tags on the other pages to look like the ones on that page. However, I don’t have the same level of control over the other tags.
Within the modules on the home page, I was able to make some changes to the Flex Box 3 module and the Block 12 module, but some of the padding around the tags that still displays must be coming from somewhere else. I did try some custom css on the .td-post-category div, but again there is extra padding displaying. How do I make these category tags like the ones on the article page mentioned above?
Also on the home page, how do I make changes to the category tags in the Block 4 module?
How do I change them on the category and subcategory pages?:
http://www.wcevent.com/category/safety/
http://www.wcevent.com/category/safety/emergency-preparedness/
When I try to submit a comment in AMP I get the error message
Your submission failed. The server responded with (code ). Please contact the developer of this form processor to improve this message. Learn More
Any help, please?
My website is nobowa.com