- 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
Shows: [tdb_header_logo align_vert=”content-vert-center” align_horiz=”content-horiz-center” image_width=”eyJwb3J0cmFpdCI6IjIyMCJ9″ media_size_image_height=”99″ media_size_image_width=”300″ image=”766″ image_retina=”766″]
[tdb_header_menu mc1_title_tag=”p” main_sub_tdicon=”td-icon-down” sub_tdicon=”td-icon-right-arrow” mm_align_horiz=”content-horiz-center” modules_on_row_regular=”20%” modules_on_row_cats=”25%” image_size=”td_324x400″ modules_category=”image” show_excerpt=”none” show_com=”none” show_date=”” show_author=”none” mm_sub_align_horiz=”content-horiz-right” mm_elem_align_horiz=”content-horiz-right” inline=”yes” menu_id=”66″ mm_align_screen=”yes” f_elem_font_family=”” f_elem_font_size=”eyJwb3J0cmFpdCI6IjExIn0=” mm_width=”1300″ mm_subcats_bg=”#ffffff” mm_elem_border_a=”0 1px 0 0″ mm_elem_padd=”eyJhbGwiOiIycHggMjJweCIsInBvcnRyYWl0IjoiMCAxNHB4In0=” mm_sub_padd=”eyJhbGwiOiIxNnB4IDAiLCJwb3J0cmFpdCI6IjE0cHggMCJ9″ f_title_font_size=”eyJhbGwiOiIxNSIsImxhbmRzY2FwZSI6IjE0IiwicG9ydHJhaXQiOiIxMyJ9″ f_title_font_line_height=”1.2″ art_title=”3px 0″ f_mm_sub_font_size=”eyJhbGwiOiIxMyIsInBvcnRyYWl0IjoiMTEifQ==” mm_child_cats=”10″ mm_elem_border=”0 1px 0 0″ mm_height=”eyJhbGwiOiIzNDUiLCJsYW5kc2NhcGUiOiIzMDAiLCJwb3J0cmFpdCI6IjI0MCJ9″ mm_sub_width=”eyJsYW5kc2NhcGUiOiIxNjAiLCJwb3J0cmFpdCI6IjE0MCJ9″ mm_padd=”eyJwb3J0cmFpdCI6IjE0In0=” modules_gap=”eyJwb3J0cmFpdCI6IjE0In0=” elem_padd=”eyJwb3J0cmFpdCI6IjAgMTJweCJ9″ f_elem_font_line_height=”eyJwb3J0cmFpdCI6IjQ4cHgifQ==” video_icon=”eyJwb3J0cmFpdCI6IjI0In0=” all_modules_space=”26″ tds_menu_sub_active=”tds_menu_sub_active1″ tds_menu_sub_active2-line_color=”” tds_menu_active=”tds_menu_active1″][tdb_header_search inline=”yes” toggle_txt_pos=”after” form_align=”content-horiz-right” results_msg_align=”content-horiz-center” image_floated=”float_left” image_width=”30″ image_size=”td_324x400″ show_cat=”none” show_btn=”none” show_date=”” show_review=”” show_com=”none” show_excerpt=”none” show_author=”none” art_title=”0 0 2px 0″ all_modules_space=”20″ tdicon=”td-icon-magnifier-big-rounded” icon_size=”eyJhbGwiOiIyMCIsInBvcnRyYWl0IjoiMTgifQ==” tdc_css=”eyJhbGwiOnsiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tdG9wIjoiMSIsImRpc3BsYXkiOiIifSwicG9ydHJhaXRfbWF4X3dpZHRoIjoxMDE4LCJwb3J0cmFpdF9taW5fd2lkdGgiOjc2OH0=” modules_on_row=”eyJhbGwiOiI1MCUiLCJwb3J0cmFpdCI6IjUwJSIsImxhbmRzY2FwZSI6IjUwJSJ9″ meta_info_horiz=”content-horiz-left” form_width=”600″ input_border=”0 0 1px 0″ modules_divider=”” form_padding=”eyJwb3J0cmFpdCI6IjIwcHggMjBweCAyMHB4IiwiYWxsIjoiMzBweCJ9″ arrow_color=”#ffffff” btn_bg_h=”rgba(0,0,0,0)” btn_tdicon=”td-icon-menu-right” btn_icon_pos=”after” btn_icon_size=”7″ btn_icon_space=”8″ f_title_font_family=”” f_cat_font_family=”” f_cat_font_transform=”uppercase” f_title_font_weight=”” f_title_font_transform=”” f_title_font_size=”13″ title_txt_hover=”#4db2ec” results_limit=”6″ float_block=”yes” icon_color=”#000000″ results_border=”0 0 1px 0″ f_title_font_line_height=”1.4″ btn_color=”#000000″ btn_color_h=”#4db2ec” all_underline_color=”” results_msg_color_h=”#4db2ec” image_height=”100″ meta_padding=”3px 0 0 16px” modules_gap=”20″ mc1_tl=”12″ show_form=”yes” f_meta_font_weight=”” h_effect=”” results_msg_padding=”10px 0″ f_results_msg_font_style=”normal” video_icon=”24″ modules_divider_color=”” modules_border_color=”” btn_padding=”0″ form_border=”0″ form_shadow_shadow_offset_vertical=”3″ results_padding=”0 30px 30px” btn_bg=”rgba(0,0,0,0)” icon_padding=”eyJhbGwiOjIuNCwicG9ydHJhaXQiOiIyLjYifQ==”]
Hello!
On the pages where I use the “block header 17” option as a “header template”, I don’t know how to explain the reason, the default color, which was white (#ffffff), changed to red (#d90000). https://imgur.com/a/S2vOcc3
I verified that this adjustment is “inline”. https://imgur.com/mACJykE
Could you help me by telling me where I can fix this problem so that the default returns to white?
Example: https://vanderloubet.com.br/deputado/realizacoes/emendas-parlamentares/
The tutorial I followed (https://www.theblogmarket.co/how-to-customize-the-jetpack-subscribe-opt-in-form/) was aiming for this look that i liked and i copied the code exactly how it was here, but it didn’t completely changed.

So i actually got that exact code as a start… but it doesn’t change… it still looks like the default widget that i added before the custom code. 
I don’t use a shortcode, it’s just the jetpack widget. I tried one found online but it looked horrible so i deleted it. I usually use Shortcodes Ultimate as a plugin for basic shortcodes I need on posts.
I tried browsing the cloud, but it doesn’t actually fit the estetic I wanted for the website so I worked with what I could actually edit as I wanted to look, i wanted the custom blocks that have only 16/9 images, because i’m not interested in mixed image dimensions as I don’t want to worry about them being cut or stretched and this format almost fit my old website featured image dimension. I only use Flex Blocks. I really don’t get why are you asking to make my website like other website, with those not movies related templates. I bought a theme so I can make it custom, If i wanted predefined designs I would’ve stuck to wordpress.com themes. When I got the theme I uploaded a custom design from cloud (as it was suggested) that I edited to fit my needs. Every time I imported something from the cloud all my global settings, content and colours went all over the place and I had to redo everything and lost a lot of time deleting and recolour things. I still find things that I’m pretty sure I fixed before and now they are wrong again. I’m not anymore on the staging website, I’m on the live one so I cannot remake everything again from scratch. Please explain why are you suggesting this. What have I done wrong by working with these settings that I choose?
You are quite confusing and it seems you merged two separate questions in one answer and I don’t really understand what do you ask me. You mean that my website can be slow because I placed the widget with the jetpack subscription box? Or you mean the column text block is making the website slow? Or you mean other part is doing that?
I only used column text block in only three places. The Popcorn section and with the two sliders because the two kind of sliders the theme provided were useless for what I wanted (actually one was useless and other too complex to handle). The one I’m using is called MetaSlider and it is really simple and it has a shortcode that i added in the text box… so that is who i find it quite lite.
The Popcorn section is the one with the shortcodes that is worrying me in the future. I initially wanted to make a separate page with it but the content to be shown on the homepage as it can be seen now… but to keep the whole code on the page, not on the homepage, and just load it the homepage. But it didn’t work so I uploaded the whole content on a column text block

(that might affect the page speed in the FUTURE if it will get full of images in all of the days, even if those pictures are not shown – I now clean slots while I’m updating it with new ones). I made the separate page with the shortcodes here: https://www.cinefilia.ro/10963-2/ but I want to show the content of the page on the homepage, as you can see on the homepage (but with some kind of a display shortcode so it wouldn’t have all the code on the homepage as now). I tried to do that with a block that shows the meta of the page, but it only gets the code that should not be seen. 
So the questions is if there is a way to display other page shown content in a box on the homepage so I would not worry about adding too much content on the homepage at least with this big text. I don’t want to keep all this content on the homepage, but i can’t display it automatically on homepage from a separate page. Maybe it would’ve been just easier to explain in Romanian…
Thank you for the optimisations resources. I will check them to see what I can make better.
Have a nice day!
-
This reply was modified 2 years by
Cinefilia.ro.
Hello,
Please let me know how you want to look at the button.
Please let me know what plugin you use to have that shortcode. Yes, if you have set more of this type of block in the sidebar, this can cause the website to be slow. I notice that you use the tagdiv standard pack plugin, I recommend replacing all templates with cloud templates and blocks 1-25 or big grid blocks with flex blocks and big grid flex.
The page loading speed can depend on many factors, and each website is unique from this point of view. Let me explain some of these factors, and maybe they give you some starting points for optimizing your website. A good choice for the page speed could be the mobile layout, which contains fewer elements because it can improve a bit your page speed https://forum.tagdiv.com/topic/website-optimization/
We offer services for page speed; if you want, you can request a quote here -> https://tagdiv.com/submit-a-request/
Thank you!
Hello,
We’ve been trying to find the field api name of the CPT block, especially the gallery field?
https://prnt.sc/Aaq-N8-iewtl
We’re creating/updating posts from external sources via API and we can’t find the name of the fields.
Where can we look for them?
Thank you
On Flex Block 2 , I can’t get the next / previous swipe buttons to appear on desktop – they are there on mobile however. Have ticked the Next / Prev swipe under extra and New Prev Ajax etc . Please advise, thank you
Hello @fogliam !
I can see that you have only one post: https://prnt.sc/tx6fSEoHqjj3
I think you should add it in the menu from Appearance -> Menus.
Make sure you have no offset value or space in that block results: https://prnt.sc/26SoUFv7QzxG in this page: https://dragonanalytics.com.au/2022/
Thank you!
Hi,
I suggest that if you want to redesign the page, you can import some new blocks or sections from the cloud to make a better first impression. The background image set looks blurry; I don’t know now if when you added the image, it was clear. If yes, please make sure that you have uploaded a full-size image.
Also, you do not need to set the links to the checkout and my account pages in the menu; the flow will be to register, and after, you will be redirected to the checkout page and then to my account.
Thank you!
Hello @cbisha !
The block is on the right side of your pages.
“Does a missing product key affect this?” What do you mean? Don’t you have the theme activated?
Check also in the theme panel settings -> Categories -> Per category settings, if you assign the correct and the same template for your categories.
Thank you!
Hi,
Please use this code, you can change the width
.tdb-block-inner .wp-block-table {
white-space:pre;
overflow:auto;
width:500px;
padding:10px;
}
Set the css in the theme panel > custom code > advance CSS > phones (this code will be applied only on the responsive version).
Thank you!
I’ve been having some issues that seem to be different versions of the single post page.
Even though I have only one single post template configured in the theme panel (as can be seen here), some posts display features I’ve deactivated and don’t show the ads I added through theme blocks (the post view count is there, and shouldn’t, and the ad isn’t).
It’s like the theme is using an older version of the single post theme (before I edited it with TagDiv Composer) for some posts and the correct version for others.
Example of a post with the correct template/features here
Website URL: https://igormiranda.com.br/
One of the posts with old/wrong template: https://igormiranda.com.br/2023/09/beatles-integrantes-encaixariam-rolling-stones-keith-richards/
One of the posts with the right template: https://igormiranda.com.br/2023/09/bruce-willis-pode-nao-saber-demencia-esposa/
How can we solve this problem?
Thanks for getting back: And how can i deliver webP-Images in the block “Single Post Bg Featured Image” you offer?
All the best,
Daniel
Hi,
Please let me know if you have a cpt in the directory, if not, then please edit the search template, select the posts loop block, and delete the post type -> https://imgur.com/5OGNAVh and check after.
Thank you!
Apparently is colliding with Adblock Plus extension and not doing scroll down. That’s all. It has to be disabled.
Additional Information
The button does not work from the product category page
The button WORKS from the product single page, while when adding the product itself, the page reloads, as if the Ajax mode was not enabled
On the Woo Product Block in the product single page (with a related products filter) the buttons WORK perfectly
Hello,
For the moment this can be achieved using an extra plugin.
As an workaround, you can use a shortcode from a flex block that can be set in ads section, for this you can check this guide – https://forum.tagdiv.com/set-block-inside-post-content/
Thank you!
Hi,
In the latest version, we added some new options to minify inline css and AGGREGATE INLINE CSS in the Theme Panel -> Block Settings. If you use WP Rocket can cause some problems so don’t use it.
Thank you!
Hello @alicestudio !
It’s possible to be from the firewall or security module which blocks the admin-ajax.php request, which usually 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 that blocks this.
If you use a plugin like Wordfence please set it in learning mode.
Also, if you are using Cloudflare, please make sure that is set as in our guide https://forum.tagdiv.com/cloudflare-cdn/, you need to disable the Rocket Loader.
Examine some other potential interfering factors: https://forum.tagdiv.com/general-options-may-interfere-newspaper-theme/
Thank you!
Hi my website is running with this theme and due to anonymous attack i am not able to use it. something is blocking in my website, how to fix that ?
Mon Sep 18 06:13:05.769955 2023] [access_compat:error] [pid 32098:tid 47251336562432] [client 103.139.0.84:33258] AH01797: client denied by server configuration: /cloudsin/kavimaalai/public_html/xmlrpc.php
[Mon Sep 18 06:11:13.826399 2023] [security2:error] [pid 31291:tid 47251185977088] [remote 39.109.216.9:2164] [client 39.109.216.9] ModSecurity: Access denied with code 403 (phase 2). Matched phrase “anonymousfox” at ARGS:log. [file “/etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-apache/006_i360_4_custom.conf”] [line “273”] [id “77142102”] [msg “IM360 WAF: Block URI containing malicious URLs||T:APACHE||SC:/cloudsin/kavimaalai/public_html/wp-login.php||”] [severity “CRITICAL”] [tag “service_i360custom”] [hostname “kavimaalai.com”] [uri “/wp-login.php”] [unique_id “ZQecqbpXxGuirS4-RFqoUgAATAk”], referer: https://kavimaalai.com/wp-login.php
[Mon Sep 18 06:08:20.296547 2023] [security2:error] [pid 8187:tid 47251192280832] [remote 39.109.216.9:2101] [client 39.109.216.9] ModSecurity: Access denied with code 403 (phase 2). Matched phrase “anonymousfox” at ARGS:log. [file “/etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-apache/006_i360_4_custom.conf”] [line “273”] [id “77142102”] [msg “IM360 WAF: Block URI containing malicious URLs||T:APACHE||SC:/cloudsin/kavimaalai/public_html/wp-login.php||”] [severity “CRITICAL”] [tag “service_i360custom”] [hostname “kavimaalai.com”] [uri “/wp-login.php”] [unique_id “ZQeb_NzdDzz1zF1Wm6xz1AAAgAw”], referer: https://kavimaalai.com/wp-login.php
Thanks for the response, but I am looking to sort by custom field not filter. Specifically what I am trying to accomplish is I have a custom post type called “industry events”, within the events is the “event date”, I want to display the events using the Flex Block Builder and have the events sorted in order of the “event date” so upcoming events show first.
Hi
I am trying to create a Gutenberg block and insert a shortcode in the single template but I cant open the wordpress editor for that template. Does anyone know how to edit a template in wordpress.
Thank you in advance
Hello Bettina,
I can see the article now.
The ads are still not displaying.
What file do we need to access to modify the post content block code please?
We’d like to take care of this issue ourself.
Thank you
Gunther
This is not about page speed. This is about tagdiv standpack and tagdiv composer plugin. If you check my site, I have not used many blocks. But still there is a rendering delay and if I use mobile theme there is no delay. In desktop also no issue. It means that some problem in theme for mobile devices.
Hi,
I just checked the website and I see that the hamburger menu is ok on mobile – https://i.imgur.com/f2zoXkk.png – https://i.imgur.com/amJn36z.png
Maybe you are referring the arrows for dropdown menus are not displayed, for this please try this css
.td-mobile-content .td-icon-menu-right {
display: inline-block;
}
This code can be set in the theme panel > custom code> advance css> mobile section.
I hope it will help you!