Home › Forums › Themes Support › Claue › search
- This topic has 11 replies, 2 voices, and was last updated 5 years ago by shokoofe.
-
AuthorPosts
-
-
November 30, 2019 at 3:51 pm #34596shokoofeSupport Expired
Hello, I’v been using your theme quite some time and it has been really helpful.
For adding the product model number I’v used Advanced custom field plugin and for searching it I’v used ACF better search but unfortunately now when I use the main search that is integrated in theme, it doesn’t return any result in search page and it changes the mega menu style.
Can you recommend a proper search plugin that is compatible with this theme?
Thanks in advanceAttachments:
You must be logged in to view attached files. -
November 30, 2019 at 7:09 pm #34599HarrySupport Expired
Hi,
Please try this plugin https://wordpress.org/plugins/ajax-search-for-woocommerce/ and change code in claue-child > views > header > layout-3.php
<form class="header__search w__100 dn pf" role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" <?php jas_claue_schema_metadata( array( 'context' => 'search_form' ) ); ?>> <div class="pa"> <input class="w__100 jas-ajax-search" type="text" name="s" placeholder="<?php echo esc_html__( 'Search for...', 'claue' ); ?>" /> <input type="hidden" name="post_type" value="product"> </div> <a id="sf-close" class="pa" href="#"><i class="pe-7s-close"></i></a> </form><!-- #header__search -->
with new code
<div class="header__search w__100 dn pf" role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" <?php jas_claue_schema_metadata( array( 'context' => 'search_form' ) ); ?>> <div class="pa"> <?php echo do_shortcode('[wcas-search-form]'); ?> </div> <a id="sf-close" class="pa" href="#"><i class="pe-7s-close"></i></a> </div><!-- #header__search -->
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 1, 2019 at 1:16 pm #34605shokoofeSupport Expired
This plugin did not solve my problem.
If I search for the full name of a product and click on enter, it won’t work for me. -
December 1, 2019 at 1:58 pm #34606
-
December 1, 2019 at 2:06 pm #34608shokoofeSupport Expired
I found the broken plugin. This is the ELEX WooCommerce Role-based Pricing Plugin & WooCommerce Catalog Mode plugin that caused the browser to crash.
-
December 1, 2019 at 5:26 pm #34615HarrySupport Expired
Hi,
I activate child theme on your site it now error because the code you added to claue-child > functions.php. Could you send me FTP account to fix?
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 1, 2019 at 7:27 pm #34618shokoofeSupport Expired
I’ve added some lines of code to the template’s main function file that are working now. But when I copy and paste them into Child, the site gets in trouble. I will send you an example of a code in the photo.
-
December 1, 2019 at 7:28 pm #34619shokoofeSupport Expired
-
December 1, 2019 at 7:39 pm #34620shokoofeSupport Expired
I’m not allowed to give anyone ftp acsess. Sorry
-
December 1, 2019 at 7:52 pm #34621HarrySupport Expired
Hi,
I check in my local it still work well https://prnt.sc/q4le2f please try deactivate plugin ACF: Better Search
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 1, 2019 at 7:56 pm #34622HarrySupport Expired
I see you added code to main theme > functions.php
I don’t recommend override parent theme because your code will be remove when you update theme. Please move your customize code to child theme.
The error when i activate child theme because you added same code on parent theme and child theme.
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 1, 2019 at 8:27 pm #34623shokoofeSupport Expired
Thanks for your help in activating Child I have transferred my changes.
-
-
AuthorPosts
You must be logged in to reply to this topic.