Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Problem with search in the search field
- This topic has 13 replies, 2 voices, and was last updated 10 years, 11 months ago by
Xpunto.
-
AuthorPosts
-
June 18, 2015 at 9:28 am #5044
Xpunto
ParticipantHello
I have purchase that plugin yesterday at codecanyon, the problem is, i follow the steps in documantation also the plugin is installed.
I have create a new search instance “test” <span class=”code”>enable suggested keywords</span>
You can see that on my blog this is working but i can write no search term in the search box in the frontend of my homepage?
In the backend the prieview test works if i try to search! Whats wrong?
regards
christianJune 18, 2015 at 9:34 am #5045Ernest Marcinko
KeymasterHi!
It looks like something is forcing the form inside the search bar to 0 height.
Try this custom CSS rule to fix the issue:[code]
.proinput form {
height: 100% !important;
}
[/code]June 18, 2015 at 9:55 am #5046Xpunto
ParticipantHi
thank you for fast response, where i have to implement that code? I have child theme and custom css plugin installed.
June 18, 2015 at 10:00 am #5047Xpunto
Participanti paste that in the custom css but no change
June 18, 2015 at 10:09 am #5048Xpunto
ParticipantI can give admin details if you need!
June 18, 2015 at 10:17 am #5049Xpunto
ParticipantLook likes this problem is with that theme i try a other and there it works so you are right to 100% its the custom css rule.
but if i paste that code in css custom
.proinput form {
height: 100% !important;
}nothing happen?
June 18, 2015 at 10:18 am #5050Ernest Marcinko
KeymasterHi!
I can’t see the rule on the page, maybe it’s still cached. Try to put it into the search plugin custom css: Theme Options -> Custom CSS panel
June 18, 2015 at 10:44 am #5051Xpunto
ParticipantI found this code for the main search possible to change that to Ajax Pro?
<?php
/**
* Search form template for product search.
*
*
* @package Hamburg
* @subpackage Templates/WooCommerce
*//**
* We’re counting search forms in order to
* pass them unique ID values.
*
*/
$search_count = hamburg_counter( ‘search_form’ );
?>
<div class=”site-search”>
<div class=”search-form”>
<form class=”inline-form” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” role=”search”>
<label for=”s_<?php echo $search_count; ?>”<?php
/**
* Look for search term.
*
* If the search field has a value, we pass an additional class
* to its label which we positioned *behind* the transparent field.
* Once the field gains focus or has a value we hide the label via CSS.
* Why? Well, try styling a placeholder attribute, dude.
*
*/
if( ” !== get_search_query() )
echo ‘ class=”has-value”‘;?>>
<span><?php echo _x( ‘Find products…’, ‘Search field label (ellipsis)’, ‘theme_hamburg_textdomain’ ); ?></span>
<input id=”s_<?php echo $search_count; ?>” name=”s” type=”text” class=”search-input” value=”<?php echo esc_attr( get_search_query() ); ?>” />
</label>
<div class=”search-submit”>
<input type=”submit” value=”<?php echo _x( ‘Submit’, ‘Search form submit button’, ‘theme_hamburg_textdomain’ ); ?>” />
<input type=”hidden” name=”post_type” value=”product” />
</div>
</form>
</div>
</div>June 18, 2015 at 10:47 am #5052Ernest Marcinko
KeymasterI guess, maybe.
Try to change the file contents to only the php search shortcode:
[code]<?php echo do_shortcode(‘[wpdreams_ajaxsearchpro id=1]‘); ?>[/code]
June 18, 2015 at 11:11 am #5053Xpunto
ParticipantThank you i replace the code in the File ! the good think is its now in the header but search problem is not solved
June 18, 2015 at 11:18 am #5054Ernest Marcinko
KeymasterOnce again, try to put it into the Ajax Search Pro custom css field on the Theme Options -> Custom CSS panel: http://i.imgur.com/4IkwDzQ.png
June 18, 2015 at 11:28 am #5055Xpunto
ParticipantI will 1000 Stars prefect support!!!!!! Now works!!!!!
Sorry for my time i am not a coder just end product user all is clear i have not foud first the right place for that setting try custom css from theme not in the plugin settings!
I have only 2 last questions
First search speed is there any setting to do
and second the result shows the author name i use moderator for puplic not the username what is in the moment in the search result is there a option to change that!
THANK YOU!!!!! I will give full stars on codecanyon
June 18, 2015 at 1:42 pm #5056Ernest Marcinko
KeymasterJune 18, 2015 at 3:08 pm #5060Xpunto
ParticipantThank you very much!
-
AuthorPosts
- You must be logged in to reply to this topic.