Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi and happy holidays to you as well :).

    Can you let me know where do you see this text exactly? As far as I remember we do not have anything like that in the [adverts_list].

    Thread Starter pmmungai86

    (@pmmungai86)

    In search box!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    right, except there isn’t a “looking for” text in the search box by default https://demo.wpadverts.com/lite/adverts/, so I would need either a screenshot or even better a link to the page where you can see it so I can figure out where is it coming from?

    Thread Starter pmmungai86

    (@pmmungai86)

    Sorry I need to replace the circled text with “looking for”

    https://pasteboard.co/JHbWh0R.jpg

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    ohh ok, i though you wanted it the other way around :).

    To replace the “Keyword …” with some other text you can use either a plugin like Say What? https://ww.wp.xz.cn/plugins/say-what/ or change it using the adverts_form_load filter like this

    
    add_filter( "adverts_form_load", function( $form ) {
      if( $form["name"] != "search" ) {
        return $form;
      }
      foreach( $form["field"] as $k => $f ) {
        if( $f["name"] == "query" ) {
          $form["field"][$k]["placeholder"] = "Looking For";
        }
      }
      return $form;
    } );
    

    The code above you can paste in your theme functions.php file.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Looking For’ is closed to new replies.