- 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
I need to work with Block 7 (td_module_6.php) in Home, take a look here https://ibb.co/0tXvC1w – https://ibb.co/Ln4QDVz
I need to print the_field(“type”) under date of the specific post, but it show no value because in Home, where the block is present type value is not present.
Hello,
The tdc_dirty_content and _wpb_vc_js_status are some post meta -> https://i.imgur.com/3BU1HN8.png those are for the post view count you will have to activate the Ajax counter as you can see here: https://i.imgur.com/SQpaCUj.png
If you do not need the view post count and you do not have it on your website then you can remove those.
tdc_content is used for the content -> https://i.imgur.com/CbeSbnL.png this is not indicated to be removed.
Related to block 7, I don’t think I understood exactly what you want to display if this is an article or a CPT? We also recommend using flex blocks, they have options to be set to your liking.
Thank you!
Hello,
Once you’ve hidden the authors’ names, they shouldn’t appear on any block, but make sure it’s on all the modules; now you can try this option from Theme Panel -> Block Settings -> Meta https://i.imgur.com/VyWK93q.png
Thank you!
Hi!
I have another question about the author of posts…
We don’t want to have authors anywhere on the page and I deleted this info from Post template and from the Layout tab (of the News ticker, Flex Blocks…).
Now other people have started to write new posts and the names started
appearing again 🙁
I don’t want them to edit with TagDiv Composer (and they do not want to). Is there a solution so I don’t have to correct the page every day?
And I still have two flex blocks where I can not delete the authors info (bottom of the page – WRC RACING and HEALTH INFO)
Our page is: https://antiaging.si/
Best regards,
Metka
Hello,
You have set an offset on the block -> https://i.imgur.com/VSF8IGw.png, let that field empty.
Thank you!
One more question:
I use Block 7 (td_module_6.php) in Home, I can’t print the contents of the “type” field
The code is as follows:
echo the_field(“type”)
Hi,
“my account page” is returning this error:
Fatal error: Uncaught ValueError: Unknown format specifier ” ” in C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-subscription\includes\shortcodes\tds_dashboard.php:77 Stack trace: #0 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-subscription\includes\shortcodes\tds_dashboard.php(77): sprintf() #1 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\legacy\common\wp_booster\td_global_blocks.php(27): tds_dashboard->render() #2 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(355): td_global_blocks::proxy_function() #3 [internal function]: do_shortcode_tag() #4 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(227): preg_replace_callback() #5 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-subscription\includes\shortcodes\tds_my_account.php(1261): do_shortcode() #6 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\legacy\common\wp_booster\td_global_blocks.php(27): tds_my_account->render() #7 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(355): td_global_blocks::proxy_function() #8 [internal function]: do_shortcode_tag() #9 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(227): preg_replace_callback() #10 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\includes\tdc_composer_block.php(278): do_shortcode() #11 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\includes\shortcodes\vc_column.php(316): tdc_composer_block->do_shortcode() #12 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\legacy\common\wp_booster\td_global_blocks.php(27): vc_column->render() #13 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(355): td_global_blocks::proxy_function() #14 [internal function]: do_shortcode_tag() #15 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(227): preg_replace_callback() #16 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\includes\tdc_composer_block.php(278): do_shortcode() #17 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\includes\shortcodes\vc_row.php(1145): tdc_composer_block->do_shortcode() #18 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\legacy\common\wp_booster\td_global_blocks.php(27): vc_row->render() #19 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(355): td_global_blocks::proxy_function() #20 [internal function]: do_shortcode_tag() #21 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(227): preg_replace_callback() #22 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\includes\tdc_composer_block.php(278): do_shortcode() #23 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\includes\shortcodes\tdc_zone.php(591): tdc_composer_block->do_shortcode() #24 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-composer\legacy\common\wp_booster\td_global_blocks.php(27): tdc_zone->render() #25 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(355): td_global_blocks::proxy_function() #26 [internal function]: do_shortcode_tag() #27 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\shortcodes.php(227): preg_replace_callback() #28 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\class-wp-hook.php(308): do_shortcode() #29 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\plugin.php(205): WP_Hook->apply_filters() #30 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\post-template.php(255): apply_filters() #31 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-standard-pack\Newspaper\page.php(51): the_content() #32 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-includes\template-loader.php(106): include(‘…’) #33 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-blog-header.php(19): require_once(‘…’) #34 C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\index.php(17): require(‘…’) #35 {main} thrown in C:\Inetpub\vhosts\webmais.pt\arktekscience.com\httpdocs\wp-content\plugins\td-subscription\includes\shortcodes\tds_dashboard.php on line 77
Ocorreu um erro crítico neste site.
When opening it with the tagDiv Composer
Error at zones: 6(models) : 5(dom). The model does not match the content Current state has involved an issue. You could try an UNDO operation (CTRL+Z / CTRL+SHIFT+Z)
Please advise. Thanks
Hi Calin,
Unfortunately this CSS isn’t working – this is exactly what I mentioned while re-starting this thread on March 30, but Anamaria took the lead trying to point me to the Gutenberg block toggle. So frankly, since March 30th, am just trying to get your attention to this CSS not working (via Theme Panel / Live CSS). I’d really appreciate if you can take a look.
Hi,
You need to set the number of paragraphs -> https://i.imgur.com/KgA2O6B.png
Also, you can create a new page where you can add the block, style it, and after copy it -> https://i.imgur.com/NMXN7Uw.png and set it in the ad section.
Thank you!
Hi,
Can you please provide a video with your blocks and the code that you made? I will want to do some tests.
Thank you!
Hi,
There are many optimization guides provided by our users here in the forum, some made by us; you could check some of them
– https://forum.tagdiv.com/cache-plugin-install-and-configure/
– https://forum.tagdiv.com/how-to-make-the-site-faster/
– https://forum.tagdiv.com/topic/high-number-of-ajax-request/
– https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/score-100100-pagespeed-with-newspaper-wordpress-theme/
– https://www.andraware.com/wp-rocket-for-newspaper-theme/
– https://spraythemes.com/newspaper-theme/how-to-speed-up-the-newspaper-wordpress-theme-using-wp-rocket/
– https://forum.tagdiv.com/topic/page-speed-guide-for-2023-beginners-and-advanced/
– https://forum.tagdiv.com/topic/newspaper-theme-speedify-your-website/
– https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/
– https://forum.tagdiv.com/cloudflare-cdn/
– https://forum.tagdiv.com/topic/theme-causing-high-cpu-usage-2/
– https://forum.tagdiv.com/topic/sql-querys-high-cpu/
– https://forum.tagdiv.com/topic/newspaper-theme-slow-to-respond/
– https://premium.wpmudev.org/blog/optimizing-your-wordpress-database-a-complete-guide/
– https://underconstructionpage.com/optimize-wordpress-database/
– https://crunchify.com/better-optimize-wordpress-database-all-in-one-guide/
If you use Wp Rocket, you can try to exclude the following files
/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js
tdBlocksArray
Thank you!
How do I make indention in left margin in a text block?
I tried to do like the video but nothing. Save the new translation (in the admin panel) but it always shows the word “tag”.
Can they address the CSS changes made so far?
The changes have always been provided to me on this forum (and they work great).
I am attaching them for safety:
@media (min-width: 768px){ .single .td-post-template-8 .td-post-header { height: 200px; } }
.td-page-title {
display: none;
}
.page-id-7096 .td-crumb-container{
display:none;
}
.td-related-title .td-related-right {
display: none;
}
.pagination {
clear:both;
padding:20px 0;
position:relative;
font-size:11px;
line-height:13px;
}
.pagination span, .pagination a {
display:block;
float:left;
margin: 2px 2px 2px 0;
padding:6px 9px 5px 9px;
text-decoration:none;
width:auto;
color:#fff;
background: #555;
}
.pagination a:hover{
color:#fff;
background: #3279BB;
}
.pagination .current{
padding:6px 9px 5px 9px;
background: #3279BB;
color:#fff;
}
.td-what .td_block_template_1 .td-related-title {
text-align: center;
}
Hello,
I would like to go back to filtering attributes with Woo Attribute Filters.
2. Woo Attribute Filters – set the order
How to set the order of filters and move categories to the top and others to the bottom?
Because your suggestion below doesn’t work.
1. You can’t drag and drop because there is only one element there. You can write them in another order; this is what I meant.
I added 3 different filters as suggested to set the order. So I copied the shortcode 3 times.
this setting causes that all attribute filters are counted separately and should only be displayed on top above the attributes.
https://ibb.co/JybF8XQ
So you can’t duplicate the Woo Attribute Filters shortcode because then each one is counted separately.
How do I set the filtering order?
Hi I’m still using the Post #7 template from the original theme with custom sidebars in appearance/widgets – and have many different sidebars. The latest update broke all the Blocks in the widgets. Do I have to convert all my posts to a new template? Is there an easy way to do this that won’t take hours? TY
Hello!
That element is a slide and not a block, which have different thumbs.
You should adjust the image as I did: https://prnt.sc/rVWUtq8kBEen -> https://prnt.sc/iU_DGAceyMEk
The problem is that you use custom code from the yellow pencil, which is in conflict with our theme settings.
Thank you!
Hello,
Please check this guide -> https://forum.tagdiv.com/set-block-inside-post-content/
Thank you!
I want to add flex block inside the content in a post to show related articles.
How do I go about it?
https://i.is.cc/3TDsbBF.png
Thanks
Hello @Sudhin!
You need to add the post ID, not category: https://forum.tagdiv.com/flex-block-settings-guide/
Thank you!
Well, it’s like copying the code referring to the block and pasting it elsewhere, but I don’t think it’s the solution, they should provide the option to import and export for the next update, I think that for a professional theme it’s the most correct and competitive.
Thanks again Bettina, but it’s not what the editors have asked for.
The reason I’m asking in a tagDiv forum instead of a forum about Gutenberg is that there’s supposed to be a way to enable floating text blocks in the theme. Can’t get it to work though.
Hi,
If you want to manually set them, then you can set it in the theme files, for this you can edit the post template (an example for post template 1 path – wp-content/plugins/td-composer/legacy/Newsmag/parts/single/loop-single-1.php) or the related articles block (path – wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php -https://i.imgur.com/0vVjTMR.png).
Thank you!
Thank you for the help. There’s another issue I’m facing while using flex block 1.
I want the green box on the side to look like the one on the left in red. The titles should be arranged neatly one by one towards the bottom. I don’t want it to look side by side like in the green one. The left side one is Flex loop and the right side one is flex box 1.
Hi,
I am using Newspaper theme on a couple of websites but I keep hitting errors either with Jetpack, or TagDiv mobile or AMP plugins on two of them.
This is the message that displays when I try to activate the plugin on “maverickfoundation.ca” and then AMP also fails to work.
Plugin could not be activated because it triggered a fatal error
Warning: require_once(/var/www/wp-content/plugins/td-composer/mobile/includes/td_block_editor_assets_mob.php): Failed to open stream: No such file or directory in /var/www/wp-content/plugins/td-mobile-plugin/td-mobile-plugin.php on line 490
I have deleted the plugins and then uploaded them again from the theme downloads, but no it doesn’t work.
I manage to activate AMP, but the website throws up issues in appearance and image sharing (my social shares of posts fail to grab the Featured Image).
Is there anything that I am doing is not right? I can’t figure that out.
Please help.
TIA
Hello,
To display some posts from a category, you need to use Flex Block 1 and set the posts ids -> https://i.imgur.com/cgTx6uh.png
Thank you!