- 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,
For the category template, if you have set a posts loop then will display all posts in this category or you can use Flex Block/Big Grid Flex and set the filter to “Category -Current category” => https://i.imgur.com/7P99qx0.png and this is why the block will display posts for each category. So, pleased check the settings.
Thank you!
muslimskeptic.com is the affected website.
I checked the statistics and do see the increase in CPU seconds usage compared to the script executions and after checking through the access logs with live traffic, I noticed that the current theme of the website is generating spontaneous bursts of requests towards the admin-ajax.php script specifically on the home page of the website from various visitors and this immediately spikes the CPU and RAM usage of the server, here is one example from a few minutes ago of such a burst with 20 requests within a couple of seconds:
https://snipboard.io/yCvqfw.jpg
While all of these requests are being processed by the server, other ones get queued for execution, which leads to database queries that generally run in parts of a second to run for several seconds instead and resulting in the very regular slow loading of the website.
I tried looking around the web for a similar problem, however I could not find any additional information and this is likely some bug with the theme version and I would recommend checking this with the theme developers and how these requests can be controlled to avoid such bursts that use up the server resources. I tried to switch the theme version from 12.4 to 12.3.1 but there was no change. There are no conflicts with plugin too. I tried turning on cache as well for each block on tagdiv composer.
Please refer me to the technical team as soon as possible.
Hey Friends,
Our Newspaper theme just went sideways. No updates made. Just reverted to some kind of basic layout, blocks showing all code, and posts delivering the error:
“wp_booster error: td_api_base::mark_used_on_page : a component with the ID: single_template_10 is not set.
/home/customer/www/thevalley.life/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php”
Any ideas what is going on?
Hi Team and Community,
I am utterly confused about the image sizes and best practices. I’ve read ALL of the documentation and links on TagDiv, so please don’t simply refer me to a broad link, as some things aren’t clear to us as customers.
I hope this thread will be useful to a lot of people struggling with this:
Site layout (max width):
– Row stretch up to 1400px
Home page:
– Headlines: 3 images in 3 columns , roughly 1400/3 so width 450px [900px on Retina]
Article page
– Featured image: width 1080px [2160px Retina]
– Sidebar (related): 3 images floated vertically, width 320px [640px on Retina]
– Bottom bar (popular): 4 images floated horizontally, so roughly 1400/4 = width 350px [700px on Retina]
I work on a Mac, and having good image quality is important, so images should be served as x2 resolution (Retina) on devices that support it.
Based on this I have selected these thumbnails in the Theme Settings:
a) Headlines (>450px) => 696×0 + Retina
b) Featured image (>1080px) => 1920×0 + Retina
c) Sidebar related (>320px) => 696×0 + Retina
d) Bottom bar popular (>350px) => 696×0 + Retina
I noticed some images were not sharp, and I briefly installed Jetpack Boost to check why that was.
It gave me warnings that the images shown on my Retina screen were not big enough.
All of the images that I upload are 1920px wide, so it has enough pixel data to work with.
We are using responsive design, not AMP because AMP almost completely removes recognizable branding and it’s a hassle to create 2 versions of each page, instead of a simple responsive layout.
So 4 questions:
1) What happens exactly when we select, for example, the thumbnail 696×0 + Retina?
In our case of a) Headlines, the image shown on the display should be 450px on old displays, and 900px on retina displays.
So should I select 696×0 or should I select a 1068×0 (bigger than the retina resolution)?
2) What about case d). I need at least 350px on old displays, and roughly 700px on retina displays.
696×0 is only 4 pixels short of 700px. What should I select? in TagDiv Composer as width, and should I for that resolution enable [] Retina as well or not in the Theme Panel?
These 2 questions are most important first. If we don’t know how resolution is handled by the theme, then all attempts to optimize the page for speed breaks down from there.
3) It seems that we cannot set different resolutions per device type in Flex Block. How can we make sure that smaller devices don’t load images that are 4x bigger?
4) I’ve been testing different plugins, with mixed results in terms of Google PageSpeed Index scores.
Which image optimization plugins have been tested and give the best results with NewsPaper theme, preferably that does all of what it needs to do in the background.
Any other suggestions that can be helpful?
I have enabled caching on the flex blocks so it’s fixed on the home page.
The single article pages are still generating admin-ajax calls to count page views. It might be good in a future version to only trigger that call after maybe like 50ms or so after the page has fully loaded?
How could we do this?
Ah! Unfortunately what I’m trying to build is not going to work with custom fields; is there going to be a way to set Flex Blocks with filters like in the Momentum template. It has arrows : < > but I noticed one can keep swiping to view other columns.
Thanks for your help though!
I’m having the same problem (Instagram Gallery Block Render Failed – Tried accessing nonexisting field (comments_count) on node type (Media)
I also don’t use the Instagram in the footer.
Hi,
Ok, but I need more information, like if you use the Instagram from footer template or block Instagram from tagDiv Composer, personal account, or business account.
Thank you!
Hi,
I believe it is referring to some buttons that are on blocks, like those – https://i.imgur.com/5DgWWHc.png – https://i.imgur.com/vO5G0c7.png please change the text on them by using a text that is more descriptive for each button.
I hope this will help you!
Hi,
To have those labels, you need to use extra plugins. there are many plugins that do this, so we cannot make them compatible with all of them. You can try to use a custom field element -> https://forum.tagdiv.com/custom-fields-support/ for each product, but not for the block.
Thank you!
Hello,
If you using the Flex Block or Big Grid Flex in the layout is the option “Show date” and you can choose to hide => https://www.screencast.com/t/6UPXQbiTO2
This will apply to all categories which use the same template.
Thank you!
Hi,
Normally, f you create a page, you can’t assign that page template to another page. You can save the elements/blocks https://i.imgur.com/BTdbQoM.png and use it for other pages, also, if you create a new template, depends on what type of template, posts/author/category. You can assign the template for a specific type.
Also, you can hide the author using the option on the blocks, edit the page and select the block you want to edit and in the tab called “Layout” you can hide the author => https://www.screencast.com/t/fjrVaQm5IX
Thank you!
Hi,
Please provide more details about what blocks are not working with screenshots.
Thank you!
Instagram Gallery Block Render Failed – Tried accessing nonexisting field (comments_count) on node type (Media)
Hi, e need the block to https://destaquerural.com.br/ as https://back.wupi.site/ but they aro not avaible on the block list. how to fix it?
Hi everyone, Testing my website TVBlackbox.com.au using Pagespeed Insights and in the SEO section I am getting 12 errors because “Links do not have descriptive text” in some of my blocks. I have experimented with a few things to fix this without success, any suggestions??
Hello @hiepmtr !
There you have 2 choices: Flex block and Posts Loop: https://forum.tagdiv.com/posts-loop/
For flex block, you should choose the current author special filter: https://forum.tagdiv.com/flex-block-settings-guide/
Thank you!
Hi,
This plugin is not tested with the theme, so it can block the request made by the wp editor.
It is about several files, php as well as js, what I can suggest is to disable the security plugin when you want to make changes in wp editor.
Thank you!
Hi Anamaria,
I checked all and I don’t have the deny statements in the .htaccess, nor the other conditions, but I found the reason, which may help other users as well.
I am using iThemes Security for the site, likely one of the best security plugins.
When I disable it, the WP Editor works, likely due to this setting:
-
Disable PHP in Plugins
Disable PHP execution in the plugins directory. This blocks requests to PHP files inside plugin directories that can be exploited directly.
I don’t really want to reduce the security of my website, so what sort of .htaccess override settings should I place in which folder exactly?
it fixed the link but now i have one more issue regarding post type, it does not show post type “jobs” in post loop blocks. what post types should i use to show these jobs like this page : https://demo.tagdiv.com/newspaper_job_hunt_pro/tdtax_job_skills/front-end-development/
Hello!
It seems that the problem is because of some conflicts with Cloudways and blocks the WP Editor to load. Please check the settings and also our requirements: https://forum.tagdiv.com/requirements-for-newspaper/
In .htaccess file, this is a problem: https://prnt.sc/Pzq85SpQwT7v
Please check this article too: https://www.cloudways.com/blog/wordpress-500-internal-server-error/
Thank you!
Hi,
Please see footer at https://homes.scot/
I’ve set Footer > Instagram Settings and succesfully getting the link to my Instagram. But for admin logged in users I’m getting this error message: https://imgur.com/a/5PiNiZM (“Instagram GalleryBlock Render Failed – Tried accessing nonexisting field (comments_count) on node type (Media)”)
Can you help please?
Hello @volvano!
Did you cleared the cache? Try in an incognito window as well. Make sure you do not have the ad block extension.
Thank you!
Hi,
I understand the cases that are possible are the following: some AdBlock extension on the browser, or restriction for those ads on the respective region, if it is the second option, then it is best to contact those from where you received the ads code.
Thank you!
We bought the Newspaper theme and we think it is amazing. We need just a couple of clarifications
1.In this page (https://aihubsphere.com/discover/) we want to filter the products with different filters. For example product that are both free and in the category productivity. The idea ìis to use the filter loop and taxonomy slug but it is not clear how to create a taxonomy slug
2. We want to promote some posts for a certain time (in the block featured) and then automatically be not featured. Is it possible?
3. We want the visitors to click a button on a product and have it marked as favorites. Then the user if register and logs in will find all the products that they have as favorite in their own user profile. Is that possible?