WordPress.org

Ready to get started?Download WordPress

Forums

Google_hilite question (14 posts)

  1. sportbiker
    Member
    Posted 10 years ago #

    In WP 1.2 I turned on the Google_hilite plugin. Err, now what do I do to see the results?

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    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.

  3. skippy
    Member
    Posted 10 years ago #

    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; }

  4. Beel
    Member
    Posted 10 years ago #

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

  5. codergurl
    Member
    Posted 10 years ago #

    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. ;)

  6. Anonymous
    Unregistered
    Posted 10 years ago #

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

  7. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    That was me.

  8. skippy
    Member
    Posted 10 years ago #

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

  9. Beel
    Member
    Posted 10 years ago #

    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.

  10. sportbiker
    Member
    Posted 10 years ago #

    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?

  11. sportbiker
    Member
    Posted 10 years ago #

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

  12. Ocean
    Member
    Posted 10 years ago #

    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?

  13. Beel
    Member
    Posted 10 years ago #

    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.

  14. robgreeley
    Member
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.