Viewing 7 replies - 46 through 52 (of 52 total)
  • Thread Starter Rafael Fischmann

    (@rfischmann)

    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?

    Plugin Author Epsiloncool

    (@epsiloncool)

    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

    Thread Starter Rafael Fischmann

    (@rfischmann)

    Nope, there’s isn’t any tag for bold in the excerpts: https://d.pr/i/oJ3K4k

    Plugin Author Epsiloncool

    (@epsiloncool)

    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.

    Thread Starter Rafael Fischmann

    (@rfischmann)

    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

    Plugin Author Epsiloncool

    (@epsiloncool)

    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.

    Thread Starter Rafael Fischmann

    (@rfischmann)

    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!

Viewing 7 replies - 46 through 52 (of 52 total)
  • The topic ‘Post missing, search results’ order’ is closed to new replies.