WordPress.org

Support

Support » Plugins and Hacks » Search Everything » Highlighting not working correctly inside link title attribute

Highlighting not working correctly inside link title attribute

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

    <a href="http://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="http://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

    http://wordpress.org/extend/plugins/search-everything/

Viewing 1 replies (of 1 total)
  • 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.
Skip to toolbar