WP Custom Fields Search
Adding placeholder text to text field (2 posts)

  1. jeffreyeric
    Posted 2 years ago #

    HI, is there a way to add a placeholder text to a text field via the shortcode or PHP? or, should i edit the actual plugin files? I'd rather avoid doing that so when an update comes out it doesn't get over written.



  2. Abu Bakar
    Posted 2 years ago #

    I have found a small solution for this.

    We can make Label to appear as Placeholder and then using CSS to hide label.

    Go to PLugin directory and look for the file "extra_search_fields"

    At line number 399, add $placeholder = $this->params['label']; below this.

    And modify the line number 401 to add placeholder='$placeholder'

    Thats all.

    Hope it will help you :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Custom Fields Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic