no search page was created, can i create one manually?

Home Page Forums WP Google Search no search page was created, can i create one manually?

This topic contains 8 replies, has 2 voices, and was last updated by  rmworldwide 2 years, 7 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #933

    rmworldwide
    Participant

    I uploaded the WP Google search plugin (may have had it uploaded previousely and it somehow got removed) – anyway, there’s no search results page created and the search widget just goes to the main page without displaying any search results at all.

    Can i somehow manually create the search results page, does it require to contain the Google CSE code or what exactly needs to be in this page – and, can i name it anyway i want??

    Thanks for your info, Google CSE is setup right, got the Search ID code so i guess it’s really just a matter of creating the search results page right?

    #934

    WebshopLogic
    Keymaster

    Yes, this forum is alive.
    We will help you soon, in a day.

    #936

    WebshopLogic
    Keymaster

    The plugin create a “Search Results” page during the first activation.

    If this page does not exist during searches, the “Sorry, no such page.” notification is displayed.

    You can create the search result page manually with the following parameters:
    Page title: Search Results (or whatever you want)
    Permalink: search_gcse
    Content: [wp_google_search]

    (This page url will be http://yourdomain.com/search_gcse)

    We will issue the following version soon (in 1-2 weeks), it will have a new feature, the search result page will be re created if it does not exist during plugin re-activation (deactivation->activation).

    If you send us your email address to info@webshoplogic.com, we can send you this version via e-mail (v1.0.2 PRE), and you can try this new feature.

    #981

    WebshopLogic
    Keymaster

    The new release has just issued, the solution mentioned above is available.

    #982

    rmworldwide
    Participant

    Thanks, yes, i just checked on my site and found the update and yes, the search page was created now!
    However, something still ain’t right!
    I am right now in my Google CSE account and i can see their test example – which works right in that it displays results from my own site only – but the widget on my site displays generic search results from Google or who knows who instead – how come??
    I double and triple checked that i have the right Search Engine ID copied in.

    Also, somehow my main search box (on posts and pages) still returns the pesky WordPress default results that are hopelessly useless, i know there is a way to change this, but can not recall how.
    How can i replace the WP search function in posts and pages with yours, do i need to go into the template files and edit those (and lose it all after the next template update)???

    #983

    rmworldwide
    Participant

    Hi, the first issue is now solved, search results do again show only from within my site, somehow i guess Google CSE just needed a resave of the settings to work properly again.

    Yet, i still have to solve the replacement of the WP default search bar!!
    It’s no use to place [wp_google_searchbox]
    into my posts or pages because theTheme already displays a search bar that uses WP default search.
    Before various updates i had this setup right so the Themes search bar was replaced by the WP Search bar – unfortunately i can not recall how i managed to do this!!
    Search bar as is visible at http://www.useroo.tk/
    Theme called Tempera

    Can youpoint me to it??
    The theme has all sorts of PHP files,like a own search.php as well as searchform.php
    Hmm, the searchform.php file contains this code
    “<?php $search_text = __( ‘Search’, ‘tempera’ ); ?>
    <form method=”get” id=”searchform”
    action=”<?php echo esc_url(home_url( ‘/’ )); ?>/”>
    <input type=”text” value=”<?php echo $search_text; ?>”
    name=”s” id=”s”
    onblur=”if (this.value == ”)
    {this.value = ‘<?php echo $search_text; ?>’;}”
    onfocus=”if (this.value == ‘<?php echo $search_text; ?>’)
    {this.value = ”;}” />
    <input type=”submit” id=”searchsubmit” value=”” />
    </form>”
    Would i have to replace this with the Google CSE code perhaps??

    #984

    rmworldwide
    Participant

    Okay, issue number 2, replacing WP default search is now solved as well, i simply had to replace the default code in searchform.php of the Theme with the Google CSE code….

    #985

    WebshopLogic
    Keymaster

    Hi,

    We are glad that you managed to solve these problems.
    So, every issue is resolved now?

    Peter

    #987

    rmworldwide
    Participant

    Yes, it’s all good now, thanks.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.