Reply To: Price notation and height of navigation field

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Price notation and height of navigation field Reply To: Price notation and height of navigation field



Since the price is parsed from the database (I assume as a custom field), the best option in this case is to find and replace the dot “.” with a comma “,” that’s between 2 digits.
To do that, you will need to create a filter function. Based on this knowledge base article:

I would add the following code to my themes functions.php file:

add_filter( 'asp_results', 'asp_fix_comma_results', 1, 1 );
function asp_fix_comma_results( $results ) {
  foreach ($results as $k=>$v) {
    $results[$k]->title  = preg_replace('/(\d)(\.)(\d)/', '$1,$3', $results[$k]->title);
  return $results;

If the price is in the title field, this should solve that.

As for the second request: Yes it is possible, by adding a few lines of custom CSS code. You can add custom css code on the search options Theme Options -> Custom CSS panel:

.isotopic nav.asp_navigation ul li span {
  line-height: 28px !important;

.isotopic nav.asp_navigation ul li {
  height: 28px !important;

.isotopic nav.asp_navigation a.asp_prev, 
.isotopic nav.asp_navigation a.asp_next {
  height: 28px !important;

As you can see, this will change the navigation height to 28 pixels, so don’t forget to change the number accordingly in all 3 cases to match the search height.

Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)