Chung Meng

Advance Search Placeholder

Hi, I would like to change the blank default field to Optional/Any to Advance Search Widget & Pagebuilder. I am using Real Estate Theme v8.9. I have tried some suggestions by adding in General Setup=>Custom CSS/Javascript like below, but none worked. <script> jQuery('.AdvanceSearchBox select option:first').text('–Click Here To See The Categories–'); jQuery('.AdvanceSearchBox input').attr("placeholder", "my text here"); </script> Thanks, Evan

Created: March 23, 2016 at 5:08 am
  • In: General Discussion
  • Started by: Chung Meng
  • 2 members left 5 comments
  • Last reply from: Josh


  • Josh
    March 23, 2016 at 2:11 pm

    Hello Chung,
    First get the field you want to add text class using your browser inspect Attached replace your class with my class in the below code

    <script>
    jQuery(".fg-listtype select option:first").text('–Click Here To See The Categories–');
    jQuery(".propertytype select option:first").text('–Click Here To See The Categories–');
    </script>

    How to use browser inspect element tool: >>

    Attachments:
    You must be logged in to view attached files.

  • Chung Meng
    March 23, 2016 at 4:01 pm

    @Josh You are my hero!

    It works for drop down list, but not for Keyword and price. Any ideas?

    You can view it at

    From inspect element,
    class for keyword : fg-
    class for price : fg-price

    Attachments:
    You must be logged in to view attached files.

  • Josh
    March 23, 2016 at 4:08 pm

    Try this

    <script>
    jQuery(".fg-listtype select option:first").text('–Click Here To See The Categories–');
    jQuery(".propertytype select option:first").text('–Click Here To See The Categories–');
    jQuery('.fg- input').attr("placeholder", "my text here");
    jQuery('.fg-price input').attr("placeholder", "my text here");
    </script>


  • Chung Meng
    March 23, 2016 at 4:38 pm

    Josh,

    Works like a charm! Super Guru indeed! Thank you very much!

    Chung


  • Josh
    March 23, 2016 at 4:44 pm

    You’re welcome a great day 🙂


Viewing 6 posts - 1 through 6 (of 6 total)