• I added the post title to the title attribute of my “show post” links, f.e.

    <a href="https://mydomain/categoryname/my-demosearch-article" title="Show post: My Demosearch Article">Show post</a>

    When I search for “Demosearch”, the plugin highlights the word IN the title of the link which results in broken code:

    <a href="https://mydomain/categoryname/my-demosearch-article" title="Show post: My <span class=" search-everything-highlight-color"="" style="background-color:#FFFF00">Demosearch Article">Show post</a>

    I think this should be excluded from the search.

    Cheers,
    Matthias

    https://www.ads-software.com/extend/plugins/search-everything/

Viewing 1 replies (of 1 total)
  • Thread Starter Matthias

    (@digitalcult)

    Hmmm… I found the problem – it was me, what else? ;). I added the following snippet to content.php:

    I added the following snippet to content.php:
    (...) title="Show post: <?php the_title(); ?>" (...)

    …but I don’t understand exactly why it gets highlighted when I put this in the title attribute. Any ideas?

    Thanks,
    Matthias

Viewing 1 replies (of 1 total)
  • The topic ‘Highlighting not working correctly inside link title attribute’ is closed to new replies.