That does seem to work, thanks a lot @epsiloncool! https://d.pr/i/sreaOA
It just doesn’t make the search terms bold. Is that also something from our theme itself?
Hi @rfischmann
I would propose to check the HTML code of excerpts, in case there is <b> tags, then your theme simple removes font-weight value from this tag so text looks not bold. It can be fixed by adding “font-weight: bold !important” for <b> style (you can do it at the WPFTS Settings / Search & Output / Display tab also.
https://e-wm.org/i/E20240526-174426-001.png
Hi @rfischmann
It looks like the_excerpt() does not work, theme’s excerpt generator is used instead. Very strange, because in your previous screenshot it was working definitely (but it was screened).
Could you show me the code where you set up the_excerpt() ?
Thanks.
It seems the same to me. The previous screenshot was from this query: https://macmagazine.com.br/?s=apple+computer
As per your instructions, I duplicated Caards’ /template-parts/archive/content.php file to my child’s folder and edited this part: https://d.pr/i/3GFkPa
Hi @rfischmann
Remember, in this post you wrote:
Hum, just ran a quick test with it and there is some HTML code showing up, don’t know why: https://d.pr/i/5EjLah
In this post we saw the HTML, but it was screened. I think csco_get_post_excerpt() function may return the content with HTML, but it will be incorrectly terminated.
What we should try is to use theme’s internal implementation without screen functionality.
Let’s try to replace <?php echo the_excerpt(); ?>
by <?php echo csco_get_the_excerpt(2000); ?>
and let’s see what happen.
Thanks.
That worked, @epsiloncool! We’re almost there. 😊
However, the excerpts are very short as you can see in this example: https://macmagazine.com.br/?s=adobe+photoshop
I’ve already changed from 300 to 2000, here, but it didn’t make any difference: https://d.pr/i/hwUslQ
Any idea why? Thank you!