- NewspapertagDiv Composer Tutorial
- NewspaperCredit System
- NewspaperCreate a frontend submission form
- NewspaperHow to Use the Tabbed Content shortcode
- NewspaperCreate a form contact page
- NewspaperFilters and sorting for taxonomies
- NewspaperUser review system
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperSocial Sharing
- NewspaperSingle Post Shortcodes
- NewspaperInfinite Loading for Single Posts
- NewspaperThe Newspaper Mobile Theme: Introduction
- NewspaperHow to Add a Logo in Newspaper
- NewspaperCustom Post Type Support
- NewspaperCloud Library Templates
- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperHeader Builder
- NewspapertagDiv Cloud Library Plugin
- NewspaperAd Box Element and Ads Overview
Hello!
You can find the code for flex blocks here:
1. To add an option for sort that appears in td composer, you need to go to td-composer/legacy/Newspaper/includes/td_config.php, starting with 39233 line (get_map_filter_array function)
2. To add the functionality for the new function, you need to go to td-composer/legacy/common/wp_booster/td_data_source.php and edit the shortcode_to_args function
Hope that helps you!
Thank you!
Hi Hpro7, the google-analytics code in our theme do not need to be set in heander.php file (our theme have more heander.php and it need to be set in this one wp-content/plugins/td-composer/legacy/Newsmag/header.php but when you’ll update the theme, the code will be removed), that it is way this code need to be set in Newsmag > analytics/js codes -> https://i.imgur.com/4Hjiv94.png but it is possible that the google-analytics to not provide the results instant.
Also there can be other problems, for this you can check this guide https://holini.com/google-analytics-isnt-working/
I hope this will help you!
Ok, nvm, I found it here td-composer/legacy/Newspaper/header.php
Can you please allow us designers to pick different row columns for each device views with the TD Composer row components? Please!!!! We love you guys and so happy with all the TD Composer updates!!!!
Hi robgomes,
Yes, it is normal that the view counts to be reset, because those are usually custom implemented in each theme that have this option and most possible do not have the same structure in code and database.
Now our theme allow you to set the number of views manually,, go in posts and enable the custom fields -> https://i.imgur.com/NavHTFn.png after that down in post will appear the the custom field options -> https://i.imgur.com/waKZBHe.png change it -> https://i.imgur.com/NAFEi9p.png and check the results. Now this can be done only on each post in part, and I think that you want to doo it for all posts, for this use this function – https://pastebin.com/pKcWYFUt (wp-content/plugins/td-composer/legacy/Newspaper/functions.php)
The value can be changed, I set it to 1000. Enter it in the theme functions file. Refresh a post page and check if the views were updated. Then remove the function and the view should increase from the set value.
I hope this will help you!
I installed WP Job Manager. When i created job and click on the view to check the job post,,,I am facing the following error,
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: tdb_template_12113 is not set.
/home/u895096313/domains/hseblog.com/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Display backtrace
Everything is perfect and installed
Hello,
I just want to notify that it seemes that there is JS problem that can brake Jquery function. I identify that because I’m using a CMP that gives warning on their dashboard for everything that can cause problem with their plugin (that needs Jquery to run correctly).
Can you check it from your side please?
the error is : Uncaught_TypeError:_fbq_getState_is_not_a_fucntion on line 6 of https://www_mondedestoutous_com/wpcontent/plugins/td_composer/legacy/Newspaper/js/tagdiv_theme_min_js
Hi,
To display the width and height on header style 7, 8 and 10 please replace the code from this file wp-content/plugins/td-composer/legacy/Newsmag/parts/header/logo-text.php with the one from here -> https://pastebin.com/FDjJD3Lb
After that when you use one of those headers the height and width for logo should be set.
Let me know the results!
Hi there,
If we are logging in as an administrator on our site (https://magazine.rca.asn.au) we get the following errors when trying to view a post:
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: single_template_2 is not set.
/home/customer/www/magazine.rca.asn.au/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
wp_booster error:
td_api_base::get_key : a component with the ID: single_template_2 Key: file is not set.
/home/customer/www/magazine.rca.asn.au/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
wp_booster error:
The path of the single_template_2 template not found. Did you disable a tagDiv plugin?
/home/customer/www/magazine.rca.asn.au/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
wp_booster error:
td_api_base::get_key : a component with the ID: single_template_2 Key: bg_use_featured_image_as_background is not set.
/home/customer/www/magazine.rca.asn.au/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Hi,
Unfortunately, the tagline on Newsmag can be set only on Header style 10 and this will be display only if you use a text logo and not an image logo -> https://i.imgur.com/vDGLRHu.png
The only way to set the tagline on header default it is to edit the theme files, for this, you need to go on wp-content/plugins/td-composer/legacy/Newsmag/parts/header and there you need to get the code from header style 10 and set it in header style 1 -> https://i.imgur.com/TBt4C8j.png -> https://i.imgur.com/6BtJQjt.png or you can replace only this part https://i.imgur.com/m12RKQY.png to keep the layout, after that you need to set a lower font size for text logo -> https://i.imgur.com/tTZB5dS.png the results will look like this -> https://i.imgur.com/2IVLTlx.png -> https://i.imgur.com/HAHsaGw.png -> https://i.imgur.com/MFleoRq.jpg
To not lose those changes when you make a theme update it is indicate to use a child theme -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
I hope this will help you!
2021/08/25 02:36:58 [error] 33765#33765: *5 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php:386
Stack trace:
#0 /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php(360): TwitterApiClient::http_request()
#1 /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php(250): TwitterApiClient->rest_request()
#2 /var/www/grandnews/wp-content/plugins/td-social-counter/td_social_api.php(151): TwitterApiClient->call()
#3 /var/www/grandnews/wp-content/plugins/td-social-counter/td_social_api.php(50): td_social_api->get_service_data()
#4 /var/www/grandnews/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(1163): td_social_api->get_social_counter()
#5 /var/www/grandnews/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(1094): td_block_social_counter->get_social_network_meta()
#6 /var/www/grandnews/wp-content/plugins/td-composer/legacy/common/wp_booster/” while reading response header from upstream, client: 157.34.152.175, server: grandnews.in, request: “POST /wp-json/td-composer/do_job?tmp_jobId=0&tmp_blockUid=undefined&post_id=116123&tdbTemplateType=page&uuid=6661f838-b6be-760e-1249-f2f7f63c7ac3 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.4-fpm.sock:”, host: “grandnews.in”, referrer: “https://grandnews.in/wp-admin/post.php?post_id=116123&td_action=tdc&tdbTemplateType=page&prev_url=https%3A%2F%2Fgrandnews.in%2Fwp-admin%2Fedit.php%3Fpost_type%3Dpage%26orderby%3Ddate%26order%3Ddesc&”
2021/08/25 02:36:59 [error] 33765#33765: *86 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php:386
Stack trace:
#0 /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php(360): TwitterApiClient::http_request()
#1 /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php(250): TwitterApiClient->rest_request()
#2 /var/www/grandnews/wp-content/plugins/td-social-counter/td_social_api.php(151): TwitterApiClient->call()
#3 /var/www/grandnews/wp-content/plugins/td-social-counter/td_social_api.php(50): td_social_api->get_service_data()
#4 /var/www/grandnews/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(1163): td_social_api->get_social_counter()
#5 /var/www/grandnews/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(1094): td_block_social_counter->get_social_network_meta()
#6 /var/www/grandnews/wp-content/plugins/td-composer/legacy/common/wp_booster/” while reading response header from upstream, client: 157.34.152.175, server: grandnews.in, request: “POST /wp-json/td-composer/save_post?uuid=7b9a0408-3ddb-19b2-2398-c78cd48fbedd HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.4-fpm.sock:”, host: “grandnews.in”, referrer: “https://grandnews.in/wp-admin/post.php?post_id=116123&td_action=tdc&tdbTemplateType=page&prev_url=https%3A%2F%2Fgrandnews.in%2Fwp-admin%2Fedit.php%3Fpost_type%3Dpage%26orderby%3Ddate%26order%3Ddesc&”
2021/08/25 02:37:03 [error] 33765#33765: *5 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php:386
Stack trace:
#0 /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php(360): TwitterApiClient::http_request()
#1 /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php(250): TwitterApiClient->rest_request()
#2 /var/www/grandnews/wp-content/plugins/td-social-counter/td_social_api.php(151): TwitterApiClient->call()
#3 /var/www/grandnews/wp-content/plugins/td-social-counter/td_social_api.php(50): td_social_api->get_service_data()
#4 /var/www/grandnews/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(1163): td_social_api->get_social_counter()
#5 /var/www/grandnews/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(1094): td_block_social_counter->get_social_network_meta()
#6 /var/www/grandnews/wp-content/plugins/td-composer/legacy/common/wp_booster/” while reading response header from upstream, client: 157.34.152.175, server: grandnews.in, request: “POST /wp-json/td-composer/do_job?tmp_jobId=1&tmp_blockUid=undefined&post_id=116123&tdbTemplateType=page&uuid=85df4371-1163-6c45-70f4-968dbcf26f88 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.4-fpm.sock:”, host: “grandnews.in”, referrer: “https://grandnews.in/wp-admin/post.php?post_id=116123&td_action=tdc&tdbTemplateType=page&prev_url=https%3A%2F%2Fgrandnews.in%2Fwp-admin%2Fedit.php%3Fpost_type%3Dpage%26orderby%3Ddate%26order%3Ddesc&”
2021/08/25 00:23:44 [error] 23775#23775: *44279 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php:386
Stack trace:
#0 /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php(360): TwitterApiClient::http_request()
#1 /var/www/grandnews/wp-content/plugins/td-social-counter/twitter-client.php(250): TwitterApiClient->rest_request()
#2 /var/www/grandnews/wp-content/plugins/td-social-counter/td_social_api.php(151): TwitterApiClient->call()
#3 /var/www/grandnews/wp-content/plugins/td-social-counter/td_social_api.php(50): td_social_api->get_service_data()
#4 /var/www/grandnews/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(1163): td_social_api->get_social_counter()
#5 /var/www/grandnews/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(1094): td_block_social_counter->get_social_network_meta()
#6 /var/www/grandnews/wp-content/plugins/td-composer/legacy/common/wp_booster/” while reading response header from upstream, client: 59.153.98.54, server: grandnews.in, request: “POST /wp-json/td-composer/do_job?tmp_jobId=1&tmp_blockUid=undefined&post_id=115926&tdbTemplateType=page&uuid=adc71d6b-4868-f642-6d46-df8bd44c5237 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.4-fpm.sock:”, host: “grandnews.in”, referrer: “https://grandnews.in/wp-admin/post.php?post_id=115926&td_action=tdc&tdbTemplateType=page&prev_url=https%3A%2F%2Fgrandnews.in%2Fwp-admin%2Fedit.php%3Fpost_type%3Dpage%26orderby%3Ddate%26order%3Ddesc&”
Hi turma99, if I understand correctly, you have an image that you want to be set as top bar for your amp version. Now the easiest way it is to set it in one of the ads files like Vlad suggested or in this places https://i.imgur.com/zYxTAsO.png this is the only solution to set the code in theme settings, if this is not what you want, then you need to set it in theme files (please notice that when the theme will be updated those changes from theme files will be removed). The file path it is wp-content/plugins/td-composer/mobile/header-amp.php
Thank you!
https://www.screencast.com/t/SAb633yRVd3
When i upload td-composer.zip file the page crash.
I want to display the latest post but only the image and title on my homepage. Now the whole post with content is showing on my homepage.
-
This reply was modified 4 years by
pawan.
Hello,
I’m not sure I fully understand what you want to achieve. If you use a single post template and you want to have the author box like this you can set it with tagDiv Composer => https://www.screencast.com/t/KLWtgrEpCplfor mobile theme you need to make changes in the theme files => wp-content/plugins/td-composer/mobile/single.php like in this video https://www.screencast.com/t/AC8vbFw4
Thank you!
PHP message: PHP Warning: Illegal string offset ‘td-default’ in /public/wp-content/plugins/td-composer/legacy/common/wp_booster/wp-admin/panel/td_demo_util.php on line 1677
Hello
Column text’s -> Edit Content function are not responding during editing the page.
Here is what I have been doing:
clear cache ->
uninstall td composer plugin ->
clear cache ->
reinstall td composer plugin ->
clear cache again ->
reactivate td composer plugin again
here is the link: https://www.screencast.com/t/eMrAWKAgbNdh
not working on safari and chrome (both browser have all the extension deactivated)
please help….
I am trying to edit my home page but when I Edit with TD Composer it gets stuck on a spinning circle indefinitely. I have disabled all plugins except the Tagdiv plugins (Composer, Cloud, Mobile). Tried on several different browsers after clearing cache with no luck. Need some help.
Hello, I am noticing that on some of my content the first image is being duplicated by the theme.
In other words, when I’m editing the content in WordPress I see one image, but when I’m looking at the published article on Chrome I see two of the same first images…
See example here:
https://www.chaindlk.com/interviews/martina-bertoni__/
Also on Safari the images are not displayed AT ALL.
When I load the page and I am logged into the admin section I also get a bunch of wp_booster error messages:
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: single_template_6 is not set.
/home/chaindlk/public_html/wp/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Display backtrace
wp_booster error:
td_api_base::get_key : a component with the ID: single_template_6 Key: file is not set.
/home/chaindlk/public_html/wp/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Display backtrace
wp_booster error:
The path of the single_template_6 template not found. Did you disable a tagDiv plugin?
/home/chaindlk/public_html/wp/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Display backtrace
wp_booster error:
td_api_base::get_key : a component with the ID: single_template_6 Key: bg_use_featured_image_as_background is not set.
/home/chaindlk/public_html/wp/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Display backtrace
wp_booster error:
td_api_base::get_key : a component with the ID: single_template_6 Key: bg_disable_background is not set.
/home/chaindlk/public_html/wp/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Display backtrace
wp_booster error:
td_api_base::get_key : a component with the ID: single_template_6 Key: bg_box_layout_config is not set.
/home/chaindlk/public_html/wp/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Display backtrace
How can I trouble shoot?
I have a problem with the page insights of google wher the get impact. The first thing that shows me that has most of the size is the js file of td composer:
file: tagdiv_theme.min.js
How to reduce this file?
I can’t set the actual path (wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php) because the “plugins” folder is outside the “themes” folder.
Can you be more specific?
I suppose I have to create a new folder structure in the child-theme folder.
Maybe something like this: wp-content/themes/child_theme_name/td-composer/legacy/common/wp_booster/td_module.php?
Or how should I structure it?
Hello!
You can edit the flex block using tagDiv Composer as you can see here: https://www.screencast.com/t/uTXGG3tDJ9
Thank you!
Hi,
i changed the code in wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php file and now everything works. But i have a doubt: if I update the theme and the composer, I lose the changes made to the file td_module.php? Can I overwrite the module file with my child theme to avoid losing the changes?
I found your tutorial about child theme (https://forum.tagdiv.com/the-child-theme-support-tutorial/) and it said that I can overwrite modules files of the wp-content\plugins\td-standard-pack\Newspaper\includes\modules folder by copying them into the child theme under this folder structure (…\child_theme_name\includes\modules\).
But the module file I’ve changed is located in a different folder. What folder structure should I create in the child theme to overwrite the td_module.php file?
Thanks
I remove the “?” on this code $personal_connected_account = $td_instagram_personal_account[‘connected_account’] ?? array(); from line 32652 of the code but still and error shows.
this is the new error now Parse error: syntax error, unexpected ‘;’ in /home3/q1tjlywd/doughstream.com/wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php on line 32652
Hello!
You can edit that using tagDiv composer as you can see here: https://www.screencast.com/t/zQG1F6EHAFTD You can choose the viewport and edit them.
Thank you!