- TutorialsDefault Block Settings Guide
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
Hello,
These are the paths => wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php => https://i.imgur.com/bQpMgSf.png and this for flex block 1wp-content/plugins/td-composer/legacy/Newspaper/includes/modules/td_module_flex_1.php
but if you want only to change the height and width for image, you can do it like this => https://www.screencast.com/t/BKlPEkNwfj8
Also, please check this topic https://forum.tagdiv.com/topic/how-to-change-the-size-of-thumbs-on-moduleblock/
Thank you!
Hi Bettina,
We’re a little concerned doing this so close to launch of our new site (Tomorrow AM). If I change the category to another we’ve created then the posts randomise, it’s just this one category we have that seems broken. Would there be any settings in the category that might impact this? We have 7 categories and 6 are fine. I can add a content block for the others and it behaves as expected when changing the filter options, but if I select ‘Buying’ it doesn’t work at all (just always shows the latest I believe).
Thanks
Richard
We would like to create custom call to action blocks for specific post pages, however these will differ from one to another, so we’d like to be able to ensure the change isn’t made universal across all post pages. Is this possible?
Hello,
If you want to set it for flex block 5, here is the block path wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_5.php and use module 5 in the path above, sorry, but I don’t know exactly where that code should be added because I’m not a developer.
Thank you for your understanding!
Hi!
We’re adding a store to our site Wise Living Magazine and I wanted to get support on two small customisations to the WooCommerce Product Page please.
An example product page is: https://wiselivingmagazine.co.uk/product/nutri-ninja-blender-smoothie-maker-900w-bl450uk-silver/
There are two changes I want to make:
1. Add space between the Header menu and the page itself to give it more space (currently, the breadcrumb and ‘Latest Articles’ header is too close to the menu.
2. Change the Block Header style (eg, change the solid black ‘Related Products’ to the same Block Header style of ‘Latest Offers’).
I have attached a screengrab which hopefully helps.
Any ideas and advice are welcome – hopefully, these are small(ish) code changes.
Thanks!
Matt
No, it works with cloud templets too.
HTML BLOCK and Javascript for the comments counter.
Creat an account and set up manually.
I needed to limit the number of authors to display and sort them randomly. It would be nice if it was included as a feature.
I share the code modifications I have made in case they serve as a starting point or serve for someone with the same need.
Enabling order by rand to functions.php
td-composer/legacy/Newspaper/includes/shortcodes/td_block_authors.php
@@ -175,7 +175,8 @@ class td_block_authors extends td_block {
'roles' => '',
'sort' => '',
'exclude' => '',
- 'include' => ''
+ 'include' => '',
+ 'number' => '',
), $atts));
@@ -200,7 +201,7 @@ class td_block_authors extends td_block {
$get_users_array['orderby'] = 'display_name';
//$td_authors = get_users(array('orderby' => 'display_name'));
} else {
- $get_users_array['orderby'] = 'post_count';
+ $get_users_array['orderby'] = $sort;
$get_users_array['order'] = 'DESC';
//$td_authors = get_users(array('orderby' => 'post_count', 'order' => 'DESC'));
}
@@ -216,6 +217,10 @@ class td_block_authors extends td_block {
$get_users_array['role__in'] = $roles_in;
}
+ if (!empty($number)) {
+ $get_users_array['number'] = $number;
+ }
+
$td_authors = get_users($get_users_array);
td-composer/legacy/Newspaper/includes/td_config.php
@@ -30387,7 +30387,7 @@ class td_config {
array(
"param_name" => "sort",
"type" => "dropdown",
- "value" => array('- Sort by name -' => '', 'Sort by post count' => 'post_count'),
+ "value" => array('- Sort by name -' => '', 'Sort by post count' => 'post_count', 'Random' => 'rand'),
"heading" => 'Sort authors by:',
"description" => "",
"holder" => "div",
@@ -30411,6 +30411,15 @@ class td_config {
"holder" => "div",
"class" => "tdc-textfield-big",
),
+ array(
+ "param_name" => "number",
+ "type" => "textfield",
+ "value" => '',
+ "heading" => "Number of users to limit",
+ "description" => "",
+ "holder" => "div",
+ "class" => "tdc-textfield-big",
+ ),
array(
"param_name" => "separator",
"type" => "horizontal_separator",
Hi,
I see lots of errors with theme in Apache error log:
[Mon Apr 26 00:18:13.914739 2021] [proxy_fcgi:error] [pid 20394:tid 139993376810752] [client 144.76.60.198:54860] AH01071: Got error 'PHP message: PHP Warning: Undefined variable $prev_class in /home/546626.cloudwaysapps.com/muxfghuehd/public_html/w..............d-cloud-library/state/date/tdb_state_date.php on line 120PHP message: PHP Warning: Undefined variable $next_class in /home/546626.cloudwaysapps.com/muxfghuehd/public_html/wp-content/plugins/td-cloud-library/state/date/tdb_state_date.php on line 121'
[Mon Apr 26 00:18:37.844803 2021] [proxy_fcgi:error] [pid 20394:tid 139993334847232] [client 207.46.13.87:54888] AH01071: Got error 'PHP message: PHP Warning: Attempt to read property "slug" on null in /home/546626.cloudwaysapps.com/muxfghuehd/publi..............block.php on line 202PHP message: PHP Warning: Attempt to read property "ID" on null in /home/546626.cloudwaysapps.com/muxfghuehd/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php on line 202PHP message: PHP Warning: Attemp
[Mon Apr 26 00:18:38.072243 2021] [proxy_fcgi:error] [pid 20394:tid 139993334847232] [client 207.46.13.87:54888] AH01071: Got error 's/tdc_composer_block.php on line 202PHP message: PHP Warning: Attempt to read property "ID" on null in /home/546626...............cy/common/wp_booster/td_block.php on line 1554PHP message: PHP Warning: Attempt to read property "ID" on null in /home/546626.cloudwaysapps.com/muxfghuehd/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 1554'
[Mon Apr 26 00:18:44.843007 2021] [proxy_fcgi:error] [pid 20394:tid 139993460737792] [client 40.77.167.107:54888] AH01071: Got error 'PHP message: PHP Warning: Attempt to read property "slug" on null in /home/546626.cloudwaysapps.com/muxfghuehd/publ.............._block.php on line 202PHP message: PHP Warning: Attempt to read property "ID" on null in /home/546626.cloudwaysapps.com/muxfghuehd/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php on line 202PHP message: PHP Warning: Attem
[Mon Apr 26 00:18:45.068332 2021] [proxy_fcgi:error] [pid 20394:tid 139993460737792] [client 40.77.167.107:54888] AH01071: Got error 's/tdc_composer_block.php on line 202PHP message: PHP Warning: Attempt to read property "ID" on null in /home/546626..............cy/common/wp_booster/td_block.php on line 1554PHP message: PHP Warning: Attempt to read property "ID" on null in /home/546626.cloudwaysapps.com/muxfghuehd/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 1554'
[Mon Apr 26 00:18:47.924295 2021] [proxy_fcgi:error] [pid 20394:tid 139993410381568] [client 40.77.167.74:54888] AH01071: Got error 'PHP message: PHP Warning: Attempt to read property "slug" on null in /home/546626.cloudwaysapps.com/muxfghuehd/publi..............block.php on line 202PHP message: PHP Warning: Attempt to read property "ID" on null in /home/546626.cloudwaysapps.com/muxfghuehd/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php on line 202PHP message: PHP Warning: Attemp
[Mon Apr 26 00:18:48.143685 2021] [proxy_fcgi:error] [pid 20394:tid 139993410381568] [client 40.77.167.74:54888] AH01071: Got error 's/tdc_composer_block.php on line 202PHP message: PHP Warning: Attempt to read property "ID" on null in /home/546626...............cy/common/wp_booster/td_block.php on line 1554PHP message: PHP Warning: Attempt to read property "ID" on null in /home/546626.cloudwaysapps.com/muxfghuehd/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 1554'
Could help me in investigation?
Thank you,
Michal
Hello!
First of all this is the website: https://www.villachimfokus.at/
I have some different topics:
1. Can I place the sidebar ads on the home page under the top 5 postings on mobile devices?
On desktop I’d like to keep it as it is under the category list.
For better visualisation: https://www.villachimfokus.at/wp-content/uploads/2021/04/ad.jpg
2. Can I put ads to selected categories?
So, if I want an (non AdSense) ad only to be shown in three selected categories, is that possible?
3. I deleted the comments section by mistake, put it back somehow, but it’s only shown in the backend under the postings.
The button “Enable comments on posts” is activated in theme panel > post settings.
4. How to keep the 5 top postings on home “on top”?
I’m using WordPress in German, so I unfortunately don’t know the English term for “keep on top”. Maybe “fix post”?
If I hook that it’s still not working – it’s sorted by date and it’s quite tedious to always check the date.
5. On home page I copied the blocks for the different categories – Flex block 3 with 1 big + 4 small post previews.
The last two blocks (Motorfokus & Frauenpower) only show one post alghough there are two posts of each category available.
I hope you know what I mean & can help me, thanks in advance 🙂
Hello,
I saw that you are using flex block 5, and to add that extra parameter you have to edit this file from this path => wp-content/plugins/td-composer/legacy/Newspaper/includes/modules/td_module_flex_5.php => https://www.screencast.com/t/g2Y4ODAemAt
Thank you!
Found line that breaks the menu in my custom td_block_template_1.php:
https://www.screenpresso.com/=hu8V
The function works OK on every single block, but it is the menu that broken when I try to return something but a simple string
Hello, my site is on https://au.thefinder.life/ . I was wondering if there is any way that a flex block articles component filter only from primary categories.
For example, on my site you see the article “Learn What Foods CAUSE Breakouts (And 4 That PREVENT Pimples)
” (https://au.thefinder.life/skin-hair-body/foods-cause-breakouts/) is actually on “Skin, Hair + Body” PRIMARY category, but it also has the “Food Shopping” category (not primary).
In home page, I have a food flexbox. I want this article not to show up there (since the primary is on “Skin, Hair + Body”). I want that box only to filter from PRIMARY category. Is it possible?
This line in my td_api_plugin is the issue
td_api_block_template::update_key('td_block_template_1', 'file', $this->plugin_path . '/includes/block_templates/td_block_template_1.php');
Please tell me how td_block_template_1 is connected to mobile menu display?
Website is new.agronom.com.ua
Hello,
So, I understand that you added a custom image size, right?
The image size which you added will not appear in the Image size option for flex block.
In order to be able to add it, several changes must be made in the theme files and require more knowledge (developer skills).
Thank you for understanding!
We’re having lots of problems with Newspaper theme.
Particularly after wordpress updates. Actual version of wp brokes the tagdiv editor. It keeps loading without come to work. In console we have some error. Here only some of them:
Uncaught Error: Syntax error, unrecognized expression: undefined<div class=”tdc-sidebar-separator tdc-sidebar-text-separator”><span>Flex Block 5<
Uncaught TypeError: jQuery(…).live is not a function
<anonymous> http://valdarnopost.it/wp-admin/post.php?post_id=72989&td_action=tdc&tdbTemplateType=single&prev_url=//valdarnopost.it/wp-admin/edit.php?post_type=tdb_templates:4528
Now this problem is getting really frustrating cause this is only the last of a long series of bad behaviors. Another example? Global header can’t be updated or saved no more! Why is this happening?
Another issue? We can’t find widget similiar to a simple message form so we’ve installed contact form 7. So even in this case we have error results after cf7 was activated…
We have disabled all plugins, unistalled and after reinstalled them but with no clue.
In this situation it’s impossible to work. We need to restore theme and tagdiv-composer functionalities, as fast as possible. We really need your help. The situation is a totally mess now.
Hi, we have set the Left hand content block on this page – https://firstcardev.wpengine.com/buying/ to sort posts ‘random posts’, however this isn’t working and it’s mirroring the content block at the top of the page, which is set to ‘most popular’. We have plenty of posts in that category and other pages seem to work fine.
Hello Bettina,
I add my code in Newspaper -> Theme panel -> Ads, as i said above.
I found that the .js is loading through this file: plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_ad_box.php in line 910.
There the javascript code is genareted and served via php, why this is done? Can we disable it and just run the code i give in the theme panel?
Otherwise is there a way to override this file the right way, so that i wont have a problem with updates?
Kind Regards
Carlos
Hello,
Unfortunately, the block of ” related articles “no longer exists, but you can add a flex block and filter it => https://www.screencast.com/t/SEmxo13Fo2X if you have a Single Post Template from Cloud Library.
If this is not what you mean, please provide more information.
Thank you!
Thank you!
Hello,
You can’t achieve that with block 7, but you can use Flex Block 1, where you can hide the date/author/category/comments etc => https://www.screencast.com/t/U1beZjkEsWz set the excerpt to 0 => https://www.screencast.com/t/OY1GEMKrfILv set the limit post and modules per row and set the value for Modules gap to 10 and Modules bottom space to -10 and the Image height (percent) to 80 => https://www.screencast.com/t/rFgLzaLUyzM
Also, please do a test using only tagDiv plugins and see if the problem with caption persists, also, please send me some screenshots with the steps done.
Thank you!
Hi its just a normal widget function in wordpress. I didnt install any widget plugin or css plugins. the item below is table of contents plugin but the header is still using the original wordpress widget header.
Theres a css code “:before”
.td_block_template_7 .td-block-title:before {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAIAQMAAAALP6d4AAAABlBMVEUAAABmZmZ+SwYRAAAAAnRSTlMAOF6RdaYAAAAVSURBVAjXY1BgcGBoAEIHIEuAQQAAEdAB4b4poC8AAAAASUVORK5CYII=) repeat top left;
How do i remove that?
I sent the requested info, but I also see one of your folks sent me an email with the following custom CSS for the mobile theme, and it worked to solve the issue:
.wp-block-image .aligncenter>figcaption {
display: block;
}
I did that already but i have another question, i want to make the header and site appear mobile exactly the same as the site on a laptop or computer but it seems i cant do that,
First i made the site from a pre-installed site (the covid -19 site with yello blocks) but then the small introduction text appeard everywhere so also under other subjects on the header but the mobile site was exactly the same with a white header, so i deleted it and made it with only the covid 19 header but now it’s impossible to change the header from black to white? So whats the best way to do this ( editing with tagdiv composer doesn’t work)
Thanks in advance.
Hello!
If you don’t use a security plugin, please ask your host about this, maybe you have a security module which blocks this.
If you use a plugin like Wordfence please set it in learning mode.
Also make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv plugins, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.
All the requirements for database are made on admin-ajax.php ( all the settings from theme panel, posts, pages, etc.), therefore you can not remove these from your website, if you want you can remove the pagination, from the website, loading more, the search and the number of admin-ajax.php requests will be smaller.
https://forum.tagdiv.com/what-is-ajax-preloading/
Thank you!
This is the Block 7 element chosen from the tag div composer:
This is what I mean by lines between elements:
How can I add those lines in the Block 7 element – you see the block on the sidebar of our website: https://bagtotag.com/
Also, how can we make the photos in this block 7 element, the same size and square shape as the ones in the Instagram element above:
For number three… We are adding captions beloow the featured images of each post. The problem is when I chance the caption in one single post – it authomatically changes to that caption in each post 🙁
now Andree Martis is under each photo on each post.
Thank you in advance!
Hello,
@PRIKAZNA,
From the screenshot, I saw that you have an admin-ajax error => https://prnt.sc/11zrivk, so the issue is possible to be from the firewall or security module which blocks the admin-ajax.php request.
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.
@cakvalasc and @ivkoit79
please create other topics where you can tell us exactly what problems you are facing, send us screenshots and the link to your site.
This issue related to error zones has already been discussed here => https://forum.tagdiv.com/topic/errors-at-columns-elements-5/
Thank you!