Flex Block 5 | Excerpt length

Posted in: Newspaper
Post count: 11

Hi,
I did the last update v.12.6.6 on the theme Newspaper
The element “Flex Block 5” from “tagDiv Composer” is the only one when option: “Excerpt length” seem’s not working. I can hide it using option but not changing the amount of length, I got the full texte anyway. I tried with an other element and it’s working. Can you give me a patch or something to make it works on the element ?
thank you by advance
Regards

Post count: 21065

Hello!

I’ve tested on my end, and it is working as expected for Flex Block 5 too.
Documentation here: https://forum.tagdiv.com/excerpts-introduction/
Try with the same post once again.

Thank you!

Post count: 11

Hi,
Well, I’m missing something then.
I took 2 screenshots here and highlighted where I work
https://postimg.cc/gallery/XVs8F8v
1: Flex Block 5 > Excerpt length: 1 (type theme panel parameters: “On letters” / but “On words” do the same result)
2: Article presented with excerpt used

Can you guid me where is,in TagDiv Composer, the file who is used for this flex block. I will try to test with php the output

thank you
Regards

Post count: 21065

Hello!

Sure. If you set an excerpt for that article, then the excerpt length value you set has no effect. The excerpt should be automatically selected from the front of your article, and you shouldn’t add any other excerpt manually to your article. It is written in the guide here too: https://app.screencast.com/U10CMf8Soyl5T.

Thank you!

Post count: 11

Right, that the part I missing in the blue box, thank you.
Problem for me now is historical the Excerpt field is used for SEO purpose in head meta page. So I need a way to shrink it for displaying in elements on the homepage. Is there way to make a Hook to change the behavior without modified the TagDiv Composer plugin ? it will be nice

Post count: 21065

Hello!

This will require custom work, which is not covered by the support team because it’s a complex task to achieve.
For customization and other services, you can contact our custom work team here: https://tagdiv.com/premium-customization-services/.

Thank you!

Post count: 11

For those who are interested in a solution
The function that manages it is called get_excerpt() line 795 of the file
plugins/td-composer/legacy/common/wp_booster/td_module.php
if ($this->post->post_excerpt != '') {
return $this->post->post_excerpt." foobar";
}

It remains to manage the problem during the update. But one thing at a time.
Regards

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.