Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #685299

    Hi,

    I have setup WooCommerce – have it working fine. The only issue is that on the shop page, there is a search bar. Right above the search bar it says “Nothing Found – Sorry, the post you are looking for is not available. Maybe you want to perform a search?”

    Below that it states “Feel like Browsing some posts instead?”

    I would like to remove the search bar, and disable whatever is causing it to show up. I also want to get rid of the “Feel like browsing some posts”.

    I assume there is a setting for this, but I can not find it anywhere.

    I created an admin user and password for you for the site. Added it in the Private Content

    #686999

    Hey Chad,

    Please copy enfold/search.php file and enfold/includes/loop-search.php file to your child theme and modify the files as needed

    Best regards,
    Yigit

    #687049

    Hey Yigit,

    Thanks. I will do that. I hope it’s not beyond the scope of your support, but I’m not very good with PHP. Could you tell me which sections of code to comment out (I would rather comment it out, than modify or delete it, just in case I want to add that feature back later).

    I will definitely do this in a child theme as I learned the hard way a long time ago to NEVER modify the parent theme! :)

    Thanks in advance for your help.

    Regards,
    Chad

    #687446

    Hi,

    Sorry, i wrote the wrong files. Please copy enfold/includes/error404.php file to your child theme in the same path and comment out following lines

    <?php
    
    		if(isset($_GET['post_type']) && $_GET['post_type'] == 'product' && function_exists('get_product_search_form'))
    		{
    			get_product_search_form();
    		}
    		else
    		{
    			get_search_form();
    		}
    
    ?>
    <div class='hr_invisible'></div>
    <section class="404_recommendation"><?php _e('For best search results, mind the following suggestions:', 'avia_framework'); ?>
    <ul class='borderlist-not'>
     	<li><?php _e('Always double check your spelling.', 'avia_framework'); ?></li>
     	<li><?php _e('Try similar keywords, for example: tablet instead of laptop.', 'avia_framework'); ?></li>
     	<li><?php _e('Try using more than one keyword.', 'avia_framework'); ?></li>
    </ul>
    <div class='hr_invisible'></div>
    <h3 class=''><?php _e('Feel like browsing some posts instead?', 'avia_framework'); ?></h3>
    <?php
        the_widget('avia_combo_widget', 'error404widget', array('widget_id'=>'404',
                'before_widget' => '
    <div class="widget avia_combo_widget">',
                'after_widget' => '</div>
    ',
                'before_title' => '
    <h3 class="widgettitle">',
                'after_title' => '</h3>
    '
            ));
    
        do_action('ava_after_content', '', 'error404');
        ?>
    </section>

    Best regards,
    Yigit

    #687755

    Hi Yigit,

    Thank you for that. It removed the search bar.

    I am however still receiving the message
    “Nothing Found
    Sorry, the post you are looking for is not available. Maybe you want to perform a search?”

    Please see : http://gypsydriftingadventures.com/shop/

    Regards,
    Chad

    #689264

    Hi,

    add this css code to your Quick CSS field:

    p.entry-content {
    display: none;
    }
    

    Best regards,
    Andy

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.