New Landing How can we help? Atelier Additional search back to fall back on, when hitting the 0 result page

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Atelier
  • #214696
    peter4576
    Member
    Post count: 168

    Hi guys

    An easy feature which would be worth gold, would be a fallback search-bar on top of the no result-page. Where it is easier to refine the search result + have the search bar pre-selected for easy and fast typing/ searching.

    Also, it would be nice if I could decide WHICH sidepanel to display on no-result-pages.

    Attachments:
    You must be logged in to view attached files.
    #215035
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    1)

    Our default search does have this: http://swiftideas.com/?s=404-trigger – What search are you using?

    2)

    You can set this here: Theme Options => Archive/Category Options => Sidebar Config

    Thanks,
    David.

    #215045
    peter4576
    Member
    Post count: 168

    Hi again

    I think you dont understand what I mean. What I mean is an on-page searchbox in the body..?

    #215047
    peter4576
    Member
    Post count: 168

    Ah ok I didnt see the searchfield before now! It was really hard to find. But this is a 404 page. What I displayed was a product-search = 0 results.

    #215049
    David Martin – Support
    Moderator
    Post count: 20834

    This is not a 404 page, it is a page with 0 results. Another example: http://swiftideas.com/?s=zero-results.

    – David.

    #215058
    peter4576
    Member
    Post count: 168

    But why is mine displaying different? You search for posts though… I search for products…

    #215420
    David Martin – Support
    Moderator
    Post count: 20834

    Hey,

    You can do this, if you open the file woocommerce/archive-product.php find line 256 and add below that:

    	    <div class="no-results-text">
                <p><?php _e( "Please use the form below to search again.", "swiftframework" ); ?></p>
        
                <form method="get" class="search-form" action="<?php echo home_url(); ?>/">
                    <input type="text" placeholder="<?php _e( "Search", "swiftframework" ); ?>" name="s"/>
                </form>
                <p><?php _e( "Alternatively, you can browse the sitemap below.", "swiftframework" ); ?></p>
            </div>

    Thanks,
    David.

    #215424
    peter4576
    Member
    Post count: 168

    Thanks! Ill try!

    #215425
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    ok.
    -Rui

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register