WordPress.org

Support

Support » How-To and Troubleshooting » Google_hilite question

Google_hilite question

Viewing 13 replies - 1 through 13 (of 13 total)
  • Copy something from your blog, go to google, search for it, then get to your blog from a google link.
    Or
    Use the search box on your blog to find something you have written.

    I enabled the google_hilite plugin, went to google.com, searched on terms that I knew would display my site in the results, and then followed one such link to my site. Nothing was highlighted.
    Looking through the plugin source, I see that the terms are highlighted by use of a span ( <span class="hilite">) which was missing from my wp-layout.css. Might help if the plugin specifically made mention of this.
    Sportbiker: create a class definition in your wp-layout.css called “hilite”:
    .hilite { background: #FF0; }

    Check your source, the plugin should add the style in the head so there is no need to specifically mention it 😉

    It doesn’t hilite the search terms for me either. The <span class=”hilite”> doesn’t even appear in the source. I don’t really need it anyways though…just thought i’d test it out. 😉

    You need to have <?php wp_head(); ?> in the head of your index.php. Check the default template.

    That was me.

    That’s it. An artifact of using a WordPress 1.02 index.php after upgrading to WordPress 1.2.

    Thanks for letting us know you got it, I was dinking around your site without the search bar when the highlighting just “appeared” – glad you got it working.

    OIC. I got it to work but it’s not what I was expecting. I thought it would show me a list of all the search terms people have used to get to my site.
    Is there a way to accomplish that?

    That looks more like it. I’ll have to install it (but not today) and give you an update. Thanks.

    According to the plugin description, it should also highlight terms when typing the term into WordPress’s own search box. I see the Google refer works, but it doesn’t work when I search for something using the search box on my site. Any ideas?

    A link might help, but it may be that a limitation of Google hilite has been a search which returns only “1” post does not highlight the word.

    I ran a search which returned only one result – pointing to the complete version of a post ie after the “more” link. When linking from google, this page returns only the following error (in place of the post)
    Warning: Unknown modifier ‘/’ in /home/pimjou2/public_html/pim-journal/wordpress/wp-content/plugins/google-hilite.php on line 107
    Warning: Unknown modifier ‘2’ in /home/pimjou2/public_html/pim-journal/wordpress/wp-content/plugins/google-hilite.php on line 105
    Not sure what to do about this.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Google_hilite question’ is closed to new replies.
Skip to toolbar