- 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
Hello Brigitta,
Can you please provide more details about what page cache option you say? Do you use the option for cache on the blocks?
Thank you!
Hi,
my flex block with sort order popular last 48 hours was working fine until I started using a page cache. Now the count is wrong, possibly counting only once for every cached page. Is there a setting to include cached pages in the count?
Kind regards,
Brigitta
Hi,
So how do I use the JOURNAL Header templates?
how do I fix the fact that the JOURNAL homepage templates you mentioned are a block and can’t be imported?
Please check: https://prnt.sc/t9UKeovUkGBW
Thanks.
Hello,
This demo doesn’t have a header template in the cloud, but has a homepage, single, footer, author, category -> https://i.imgur.com/dse9OVj.png The homepage is in the section blocks -> https://cloud.tagdiv.com/#/load/Blocks
Thank you!
Hello,
I recommend using Big Grid Flex and Flex Block. This color is the accent color -> https://i.imgur.com/aAOsLSZ.png
Thank you!
Hello,
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/
Also, pagespeed is not covered by support -> https://forum.tagdiv.com/newspaper-theme-support/
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
To be able to optimize and to remove CLS and LCP please check these guide => https://developers.google.com/web/tools/lighthouse/ -> https://www.sqlpac.com/en/documents/google-pagespeeds-lighthouse-6-new-features-lcp-cls.html -> https://web.dev/lighthouse-whats-new-6.0/ -> https://web.dev/lcp/ -> https://web.dev/cls/
Thank you!
While updating from 12.2 to newer versions we got error resulting mobile theme homepage showing only posts you call grid (Grids & Latest Articles Settings). After those grid posts the error comes up. Reverting to 12.2 using your time machine everything works as usual.
The error that shows up is this one:
wp_booster error:
td_res_context->get_att(vertical_align) Internal error: The atts are not set yet(AKA: the render template method was called without atts)
/home/oruzje/public_html/oruzjeonline.com/wp-content/plugins/td-composer/legacy/common/wp_booster/td_css_res_compiler.php
Display backtrace
Array
(
[0] => Array
(
[file] => /home/oruzje/public_html/oruzjeonline.com/wp-content/plugins/td-composer/legacy/common/wp_booster/td_css_res_compiler.php
[line] => 406
[function] => error
[class] => td_util
[type] => ::
[args] => Array
(
[0] => /home/oruzje/public_html/oruzjeonline.com/wp-content/plugins/td-composer/legacy/common/wp_booster/td_css_res_compiler.php
[1] => td_res_context->get_att(vertical_align) Internal error: The atts are not set yet(AKA: the render template method was called without atts)
)
)
[1] => Array
(
[file] => /home/oruzje/public_html/oruzjeonline.com/wp-content/plugins/td-composer/legacy/common/wp_booster/td_css_res_compiler.php
[line] => 383
[function] => get_att
[class] => td_res_context
[object] => td_res_context Object
(
[settings:td_res_context:private] => Array
(
[all] => Array
(
[vertical_align] => baseline
[column_height] =>
[flex_auto_height] => 1
[flex_display] => block
[flex_width] => 30%
)
)
[current_media:td_res_context:private] => phone
[atts:td_res_context:private] => Array
(
)
[index_style] =>
[responsive_atts:td_res_context:private] => Array
(
[0] => flex_width
)
[fonts_to_load:td_res_context:private] => Array
(
)
)
[type] => ->
[args] => Array
(
[0] => vertical_align
[1] =>
[2] =>
)
)
[2] => Array
(
[file] => /home/oruzje/public_html/oruzjeonline.com/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php
[line] => 109
[function] => get_shortcode_att
[class] => td_res_context
[object] => td_res_context Object
(
[settings:td_res_context:private] => Array
(
[all] => Array
(
[vertical_align] => baseline
[column_height] =>
[flex_auto_height] => 1
[flex_display] => block
[flex_width] => 30%
)
)
[current_media:td_res_context:private] => phone
[atts:td_res_context:private] => Array
(
)
[index_style] =>
[responsive_atts:td_res_context:private] => Array
(
[0] => flex_width
)
[fonts_to_load:td_res_context:private] => Array
(
)
)
[type] => ->
[args] => Array
(
[0] => vertical_align
)
)
[3] => Array
(
[file] => /home/oruzje/public_html/oruzjeonline.com/wp-content/plugins/td-composer/legacy/common/wp_booster/td_css_res_compiler.php
[line] => 208
[function] => cssMedia
[class] => vc_column
[type] => ::
[args] => Array
(
[0] => td_res_context Object
(
[settings:td_res_context:private] => Array
(
[all] => Array
(
[vertical_align] => baseline
[column_height] =>
[flex_auto_height] => 1
[flex_display] => block
[flex_width] => 30%
)
)
[current_media:td_res_context:private] => phone
[atts:td_res_context:private] => Array
(
)
[index_style] =>
[responsive_atts:td_res_context:private] => Array
(
[0] => flex_width
)
[fonts_to_load:td_res_context:private] => Array
(
)
)
)
)
[4] => Array
(
[file] => /home/oruzje/public_html/oruzjeonline.com/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php
[line] => 100
[function] => load_settings
[class] => td_css_res_compiler
[object] => td_css_res_compiler Object
(
[raw_css:td_css_res_compiler:private] =>
[callback:td_css_res_compiler:private] => vc_column::cssMedia
[settings:td_css_res_compiler:private] =>
[responsive_context:td_css_res_compiler:private] => td_res_context Object
(
[settings:td_res_context:private] => Array
(
[all] => Array
(
[vertical_align] => baseline
[column_height] =>
[flex_auto_height] => 1
[flex_display] => block
[flex_width] => 30%
)
)
[current_media:td_res_context:private] => phone
[atts:td_res_context:private] => Array
(
)
[index_style] =>
[responsive_atts:td_res_context:private] => Array
(
[0] => flex_width
)
[fonts_to_load:td_res_context:private] => Array
(
)
)
)
[type] => ->
[args] => Array
(
[0] => vc_column::cssMedia
[1] => Array
(
[width] => 1/3
[is_sticky] =>
[sticky_offset] =>
[vertical_align] =>
[column_height] =>
[flex_layout] => block
[flex_layout_reverse] =>
[flex_wrap] =>
[flex_horiz_align] => flex-start
[flex_vert_align] => flex-start
[flex_order] =>
[flex_width] => eyJhbGwiOiIzMCUiLCJwaG9uZSI6IjEwMCUifQ==
[flex_grow] =>
[hide_for_user_type] =>
[logged_plan_id] =>
[author_plan_id] =>
)
)
)
[5] => Array
(
[file] => /home/oruzje/public_html/oruzjeonline.com/wp-content/plugins/td-composer/includes/tdc_composer_block.php
[line] => 137
[function] => get_custom_css
[class] => vc_column
[object] => vc_column Object
(
[atts:vc_column:private] => Array
(
[width] => 1/3
[is_sticky] =>
[sticky_offset] =>
[vertical_align] =>
[column_height] =>
[flex_layout] => block
[flex_layout_reverse] =>
[flex_wrap] =>
[flex_horiz_align] => flex-start
[flex_vert_align] => flex-start
[flex_order] =>
[flex_width] => eyJhbGwiOiIzMCUiLCJwaG9uZSI6IjEwMCUifQ==
[flex_grow] =>
[hide_for_user_type] =>
[logged_plan_id] =>
[author_plan_id] =>
)
[block_uid] => tdi_6
[td_query] =>
[td_block_template_data:protected] =>
[td_block_template_instance:td_block:private] =>
[is_loop_block:td_block:private] => 1
[is_products_block:td_block:private] =>
[atts:tdc_composer_block:private] => Array
(
[el_class] =>
[el_id] =>
[class] => tdi_7
[css] =>
[tdc_css] => eyJwaG9uZSI6eyJtYXJnaW4tYm90dG9tIjoiMzIiLCJkaXNwbGF5IjoiIn0sInBob25lX21heF93aWR0aCI6NzY3fQ==
[tdc_css_class] => tdi_7
[tdc_css_class_style] => tdi_6_rand_style
[row_bg_gradient] =>
[row_bg_gradient_s] =>
[gap] =>
)
[atts:td_block:private] => Array
(
)
)
[type] => ->
[args] => Array
(
)
)
[6] => Array
(
[file] => /home/oruzje/public_html/oruzjeonline.com/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php
[line] => 313
[function] => get_block_css
[class] => tdc_composer_block
[object] => vc_column Object
(
[atts:vc_column:private] => Array
(
[width] => 1/3
[is_sticky] =>
[sticky_offset] =>
[vertical_align] =>
[column_height] =>
[flex_layout] => block
[flex_layout_reverse] =>
[flex_wrap] =>
[flex_horiz_align] => flex-start
[flex_vert_align] => flex-start
[flex_order] =>
[flex_width] => eyJhbGwiOiIzMCUiLCJwaG9uZSI6IjEwMCUifQ==
[flex_grow] =>
[hide_for_user_type] =>
[logged_plan_id] =>
[author_plan_id] =>
)
[block_uid] => tdi_6
[td_query] =>
[td_block_template_data:protected] =>
[td_block_template_instance:td_block:private] =>
[is_loop_block:td_block:private] => 1
[is_products_block:td_block:private] =>
[atts:tdc_composer_block:private] => Array
(
[el_class] =>
[el_id] =>
[class] => tdi_7
[css] =>
[tdc_css] => eyJwaG9uZSI6eyJtYXJnaW4tYm90dG9tIjoiMzIiLCJkaXNwbGF5IjoiIn0sInBob25lX21heF93aWR0aCI6NzY3fQ==
[tdc_css_class] => tdi_7
[tdc_css_class_style] => tdi_6_rand_style
[row_bg_gradient] =>
[row_bg_gradient_s] =>
[gap] =>
)
[atts:td_block:private] => Array
(
)
)
[type] => ->
[args] => Array
(
)
)
)
Hello Anamaria,
Thank you for your response, i tried the flex block 1 as well and the image ratio is fine but the LCP still very high.
Please advise
Thank you
Hello @kwita !
No, because that element has no filter feature. You can filter the posts by using a flex block instead: https://forum.tagdiv.com/flex-block-settings-guide/
Thank you!
Hello,
Using Flex Blocks or Big Grid Flex blocks you can’t do it.
You can use only the element for images or a plugin to do it.
Thank you for your understanding!
Hi,
Hoping this is possible in some way. For my site https://thonglor.bangkoklocal.info/ and the section on Going Out.
/ https://www.dropbox.com/s/837gmgeo5baodiv/Thonglor%20Site.png?dl=0
I would like it for if someone clicks on image/article there a taken to a different website. Newspaper Theme can do this?
Hello George!
If the problem has already been announced, then we will wait so this problem can also be solved. But I think this is more about the browser. Please make sure you do not have any extra extensions that can block this procedure.
Thank you!
Hi,
You can try to use Flex Block 1 -> https://i.imgur.com/NYEtlDG.jpg The elements that you tried don’t show posts.
Thank you!
Hi,
You can enable it from here https://i.imgur.com/nkKTnrK.png or you can use on a page the flex block and sort it -> https://i.imgur.com/5ubE5HL.png
Thank you!
Hello,
Each thumb that you have enabled, will create a copy of that images. II recommended using the Flex blocks, instead of blocks 1-25; those are from the tagDiv standard pack and can’t be customized as a Flex Block; this plugin loads all the styles even if it is not used;
So, our theme make thumbs which are enabled in Theme Panel -> Block Settings => https://www.screencast.com/t/ZvDvpiBFKY3 -> https://forum.tagdiv.com/theme-thumbs/
Also, WordPress creates thumbs => https://www.screencast.com/t/AMVBOZWto
Our suggestion is to take a look at what blocks you use and make sure that the thumbs are active only for that=> https://forum.tagdiv.com/theme-thumbs/
Thank you!
Hello,
Please try to edit them with Tagdiv Composer, if you can’t then there are more options to do
1. https://i.imgur.com/j0sbNF1.png For the posts loop, please edit the page set the page template to default, and you can add the Posts Loop block in the page -> https://www.screencast.com/t/3jyBPefS0m8u
2.Footer -> if you a Pro Prebuilt Website you can edit with tagDiv Composer => https://www.screencast.com/t/UeBGkaYuundl, go to the footer and select the element you want to edit => https://www.screencast.com/t/3vhZ5v4k or
If you have a Standard Prebuilt Website you can edit the footer in Theme Panel -> Footer -> Footer info content => https://www.screencast.com/t/1mUchAid or in sub footer settings => https://www.screencast.com/t/Rrn6KKxt please make sure you have the tagdiv standard pack activate.
3. Sidebar ->
If you want to create the sidebar in Appearance -> Widgets and set the sidebar on pages, or using the tagDiv Composer; using the element from tagDiv Composer, Widget sidebar https://i.imgur.com/e1FPdYU.png -> https://i.imgur.com/q20UCZf.png -> https://forum.tagdiv.com/sidebars-tutorial/
Thank you!
Hello,
For the tag template, if you have set a posts loop then will display all posts in this tag or you can use Flex Block/Big Grid Flex and set the filter to “Tag -Current tag ” => https://i.imgur.com/1xEPyYd.png and this is why the block will display posts for each tag. So, please check the settings.
Thank you!
Howdy!
I know this is an old topic; and we tweaked this for 3.xx back in the day; so need to do same for 5xx.
Basically don’t want any thumbnails when seeing results from the search box in the menu bar.
I thought maybe there would be setting for this as toggle in a block someplace (‘search block’) or perhaps under the header section for search box (which seems like might be good place for this option).
Don’t want to hide with CSS as that still generates thumbs and loads them. Want to disable the function for thumbs.
I seem to recall maybe a function over-ride for this.
The old 3xx stuff we have running was so hacked up for speed years back, that trying to pull out mods to re-use is like punching myself. Some simple stuff like making footer full width to match top menu, I had handy so was simple.
Few other things I’m re-learning, as it’s been several years (like what, 2017?) 🙂
THANKS FOLKS!! 🙂
Hi Anamaria. Sorry that I haven’t replied sooner … not sure why I’m not getting email updates on this thread, but I’ll look into that. 🙂
Here is the code … thanks again for the help!
[td_flex_block_1 modules_on_row="" limit="1" hide_audio="yes" category_id="1362" image_floated="eyJhbGwiOiJmbG9hdF9yaWdodCIsInBvcnRyYWl0IjoiaGlkZGVuIiwicGhvbmUiOiJoaWRkZW4iLCJsYW5kc2NhcGUiOiJmbG9hdF9yaWdodCJ9" custom_title="LBM Resources" block_template_id="td_block_template_2" tdc_css="eyJhbGwiOnsiYm9yZGVyLXRvcC13aWR0aCI6IjEiLCJib3JkZXItcmlnaHQtd2lkdGgiOiIxIiwiYm9yZGVyLWJvdHRvbS13aWR0aCI6IjEiLCJib3JkZXItbGVmdC13aWR0aCI6IjEiLCJwYWRkaW5nLXRvcCI6IjEwIiwicGFkZGluZy1yaWdodCI6IjIwIiwicGFkZGluZy1ib3R0b20iOiIyMCIsInBhZGRpbmctbGVmdCI6IjIwIiwiYm9yZGVyLWNvbG9yIjoiI2NjY2NjYyIsImJvcmRlci1yYWRpdXMiOiI0IiwiYmFja2dyb3VuZC1jb2xvciI6IiNmZmZmZmYiLCJkaXNwbGF5IjoiIn19" title_tag="div" mc1_title_tag="p" f_header_font_family="948" f_header_font_size="13" f_header_font_spacing="-0.2" f_header_font_transform="none" header_text_color="#777777" modules_gap="0" all_modules_space="0" video_popup="" autoplay_vid="" show_author="none" show_cat="none" show_date="none" show_com="none" show_review="none" show_audio="none" meta_padding="0" f_title_font_family="948" f_title_font_size="21" f_title_font_weight="700" f_title_font_line_height="1.3" f_title_font_spacing="-.2" f_ex_font_family="948" ex_txt="#000000" title_txt="#000000" title_txt_hover="var(--chained-news-blue)" f_meta_font_weight="" f_ex_font_weight="300" f_ex_font_size="15" f_btn_font_family="948" f_btn_font_size="13" f_btn_font_weight="600" btn_bg_hover="var(--chained-news-blue)" btn_bg="var(--chained-news-separator)" sort="random_posts" f_ex_font_spacing="-.2" m_padding="0 10px 0 0" image_width="25" btn_radius="4"]
Hello Team,
Now i use big grid flex 1 to show 4 images at the same row, works fine and it keeps the aspect ratio of the image without cropping.
The problem with big grid flex 1 or any other block is making my LCP (large Content Paint ) very high ( 3 seconds), this is because of the code base of the block ( specially the <span> tag ).
Now i tried different elements like image box, single image, title over image and so on, the lcp is 580ms but the problem is non of them maintained the aspect ratio of the image meaning the images are cropped when i tried to resize using chrome dev tool.
Please advise.
Thank you
I have the same problem. Counting page views takes up too much server resources when the page has a lot of readers. I’m using a single post template. Single post view count element is deleted. Unfortunately, post views are still being counted.
How to block/disable it.
-
This reply was modified 3 years by
kubick.
Can you tell how I can temporarily disable a (flex)block?
Would be a great functionality to (de)activate now and then to create even a more dynamic page layout.
Thnx, Jos
Hi Anamaria, thanks for your reply.
At [kinzigtal dot de] I use at the Newspaper Theme Panel “per category settings” .
For instance, have a look to “Polizeiticker”: I want to disable comments there. This section is displayed by “Block 9” with category filter “Polizeiticker”.
I am looking for a switch to disable comments for the category “Polizeiticker”. I don’t want to disable comments in every single article. However, actually I disabled comments in the articles but the small black icon (comment counter) is still visible. This is unwanted.
Thanks for your appreciated support.
Best regards
Hello!
You need to have the slider revolution installed and build your own slider: https://forum.tagdiv.com/import-revolution-sliders-on-demos-prebuilt-websites/ -> https://forum.tagdiv.com/how-to-install-revolution-slider-v5/
If you import an entire page, then of course the content will be overwritten. You can import only a section or page, but on different new pages created previously. You can import 3 pages from Cloud Library onto the 3 new pages created. After that, you can mix the sections and create one page that you like. You can save an element or row: https://www.screencast.com/t/kVxpDT9SV in the tagdiv composer, so you can add it on every other page. The saved elements can be seen at the end of the other blocks when you add an element in the TagDiv Composer.
Thank you!