- 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
Ok.
Which element / module can I use to pull in the latest posts using a different style of pagination?
I am currently using Flex Block 1 and i dont see an option for non-ajax pagination
Interesting. I have been breaking my head for the last 16 hours trying to solve exactly this problem. Finally, I logged into the forum to find this being discussed.
What you said works perfectly for all mobile templates such as home, tag, search, and page templates. It does not work only in the category mobile template. So I don’t think I am doing anything wrong.
I tried deleting all category templates for desktop as well as mobile and recreate them.
Even then, it simply refuses to apply the mobile theme. Actually, it applies some parts (such as limit post numbers in the post loop) but refuses to remove the flex blocks inserted earlier in the template. Looks like some shortcodes, once created, do not get deleted in category mobile template.
I used Magazine PRO templates to start with and modified them for my website, if that helps.
Hello @meri!
Unfortunately, there is no option for the hover color. Also, we did not test any extra plugin in order to change the hover color easily.
A workaround there could be to add a custom CSS code in the Newspaper -> Theme panel -> Custom code -> Custom CSS, Save changes:
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
background-color: red!important;}
You need to change only the color from the code above.
Let me know the results!
Thank you!
Hi,
That seems to be related to flex block 1, and mainly this field from the block settings where the size for the review stars is set https://i.imgur.com/j0KWGZU.png
Maybe there was an invalid value set there somehow, in the homepage or where flex block 1 was used throughout the website. Normally there is a numeric value there, if something else is entered there it could be a problem. Perhaps that is the case here.
If you want we will take a look at this, we can check the website if you can provide access to it via email, and to a file manager so we can add the line of code again. Let us know.
Thank you!
Hi Simon
I display the via name and via url fields in a news loop.
for example flex block 1.
To achieve this I have modified
td-composer/legacy/common/wp_booster/td_module_single_base.php
line 894 i comment
/* if (!$this->is_single) {
return; } /*
td-composer/legacy/Newspaper/includes/modules/td_module_flex_1.php
line 147 I have added
php $td_mod_single->show_source_and_via()
Hi Simion and thanks for your reply.
But in older theme versions this system was not yet implemented I believe, like the version you are using on the main website.
Actually, as I mentioned, the two sites are running the same older theme version…that’s why I was wondering how come they are behaving so differently, even in the HTML code loading the pics.
Also, I’m totally sure that nobody changed anything in the settings nor disconnected the account from the LIVE env site (before the issue happened). Anyways I did again the connection with the Instagram profile, but this didn’t make it work.
Furthermore, reading other users comments it seems that updating the theme would not solve the problem.
So basically, known that they’re running the same theme versions, why the LIVE site is loading pics from remote (forbidden) URL and the DEV one is loading them from local directory, and apparently working ok?
(I wrote “apparently” because maybe we should try to post a new pic on the Instagram profile, to check if the DEV website will load it correctly).
Hi Calin
I found PHP Warning: A non-numeric value encountered in /srv/htdocs/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_1.php on line 439
That’s the error appearing millions of times in the log today. Looks like its an issue with the td-composer plugin and Newspaper theme.
I delete this line $res_ctx->load_settings_raw( ‘review_size’, 10 + $review_size/0.5 . ‘px’ ); anbd now all working perfect whit php 8.1
We using Prebuilt Website Installed:
Kattmar
thanks
What would you suggest for “Or replace that block with a post loop element and use numbered pagination?”
However, I do think you should acknowledge that the way the tagdiv elements that query the database are doing so in an inefficient manner.
I am using Flex Block 4 and adding markup for italics to one word in the article title. But in the live title, the italics don’t appear. Can this be fixed?
Here is the page using Flex Block 4 – https://jazzjournal.co.uk. The relevant article title is “JJ 08/62: Giuffre date – the making of Thesis” and italics don’t appear.
Here is the article page, where the italics do appear: https://jazzjournal.co.uk/2022/08/24/jj-08-62-giuffre-date-the-making-of-thesis/
I have tried both JJ 08/62: Giuffre date – the making of Thesis and JJ 08/62: Giuffre date – the making of <i>Thesis</i>. Neither work in Flex Block 4.
Thanks
Mark Gilbert
Hi,
On large websites with lots of content and high traffic most themes will struggle. In a way it is expected, a traffic spike for example can cause problems for the duration. Deactivating the composer is practically deactivating the theme, the composer is the theme basically.
To try and see if there is an improvement in the matter, I suggest reducing or removing temporarily the number of ajax pagination used.
For example https://i.imgur.com/ImkD7Qz.png Or replace that block with a post loop element and use numbered pagination.
Or here in the post page https://i.imgur.com/DTBWoxi.png Or anywhere else where ajax pagination is used. Try it as a test if possible.
Also maybe consider using either the cloud library plugin, or the standard pack plugin. Use one or the other, and deactivate the one you are not using. This is why we separated the theme options in 2 plugins, to try and improve the performance, assuming only one of them is used.
Cleaning the database periodically/regularly if possible does wonders as well. There are plugins that can be do this on a schedule even, like this one I believe https://wordpress.org/plugins/advanced-database-cleaner/
Also if possible, and you haven’t already, I suggest using PHP 8. There should be quite a difference in performance between for example PHP 7.4 and 8.
Our developer team have improved the composer drastically since it was introduced a few years ago. Maybe not every update contains improvements, but the next in line surely will. They will try to optimize it further.
Thank you!
Hi,
That is most likely not coming from the theme, unless maybe code was entered in the theme panel or in the theme files.
I checked the website you mention, without an adblocker to see if such an ad or whatever that is appears, but I don’t see it anywhere at this time https://i.imgur.com/mjJ6JRS.png
Does it still appear? And where exactly does it appear in the website? Let me know.
Thank you!
Hi,
You need to create a new page and set in that page only the flex block that you want to set in inline ads, then copy the shortcode between the [vc_column] … [/vc_column] -> https://prnt.sc/2V9ULVsOdhoy
I hope this will help you!
Hi,
When you say missing articles, you are referring that only the articles from blocks are missing, or the blocks are missing?
If you want we can take a look at this problem, for this you need to do a full backup for the website and contact us via email at contact@tagdiv.com, provide wp-admin access and we’ll try to check it as soon as we can.
Thank you!
Hi,
Unfortunately, there is no option for this in the theme, but it can be done using this custom css:
.td_block_related_posts .td-related-right {
display: none;
}
You need to set the css in the theme panel > custom code> custom css -> https://i.imgur.com/AXbqI97.png
Thanks
Thansk for the reply. I know know how to setup a flex blocka nd where to place it (in the ad area)
The only problem is that I dont know where to copy the code for the Flex block from so that I can paste it on Inline ad spot.
Please send me a screen shot of where to find the code.
Hi, i have problems of visualization on tagDiv Composer, classic composer(i can’t see the blocks only code) and in page settings.
Hello,
Unfortunately, there is no option to show only a category, but if you want to show only a category, you can use the option “Custom Label” https://i.imgur.com/qhDjo0A.png but this option is only for blocks, inside the Single Post Template is not available.
Thank you!
Hi
Please help me check what is this error
1. When double logged in with administrator account, Flex Block 1 still displays correctly https://ibb.co/SnYR5GM
2. But when I watch in incognito location Flex Block 1 shows error https://ibb.co/Pgkg40r
3. apart from the categories template i also have a problem with the post template where on mobile the text can’t be displayed as it should be https://ibb.co/jZPv3jS
Please check and suggest how to fix the above errors
OK I have resolved it.
Wordpress org hasn’t listed my video host on their service called oEmbed to “pull” the media from the page of the link I provide.
I’ve installed a plugin from Spotlightr.com that allows me to successfully use the html block
I’ve been using wordpress for 25 yrs almost and WordPress.org are always a little behind on things.. They haven’t yet listed screencast-o-matic either.
Hi
I cannot find how to adjust this image block to full size (no padding)
Website – https://hkct.asia/
Screen capture in backend
https://www.awesomescreenshot.com/image/31530412?key=bf9b457f4c3cf34dac0dbebf09e88e26
Hi,
It is possible to be need to regenerate the image thumb, for this you can use this guide -> https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
I hope this will help you!
Thank you!
Hi,
Unfortunately, we do not have a dev documentation for the flex blocks. We have only a general one -> https://forum.tagdiv.com/api-blocks-introduction/
The files path for the flex block 1 are here -> wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_1.php in this file you can add what you’ll like to display on flex block 1.
Thank you!
This is what fixed it for me –
goodnews
Mar 15, 2019 at 3:54 am
I figured it out now. I can’t remove the row unless it’s populated with a block. Then the option appears to discard the whole section. It’s an odd workaround, but I have to drag in a dummy element and then carefully highlight the “row” tab at the top left to drag the whole thing to the delete button at the bottom right of the screen.
Hi, that didn’t work. I found an explanation for this issue on an other site:
“Hi, thunbnails are generated on instagrams side and it looks like they clear out the cdn so the thumbnail_url becomes invalid. If you want an all ways up to-date thumbnail to appear on your site i would recommend using the “embed_url” property to form query to instagrams oembed api. const…”
However, there are regular content updates, and even a 15hour old post comes back with a 403 error, and “url timestamp expired” message.
Hi, Anamaria.
I would like to replace the base comments with comments from VK. To do this, I need to find the block code with basic comments and replace it with my own. Can you tell me where is the comment output code?
VK support gives me a code: <!-- Put this div tag to the place, where the Comments block will be -->
But I can’t find a place where it must be placed.
Change this: https://imgur.com/a/ShPLSOD
for this: https://imgur.com/a/xLxBE0H
Thanks!