• Resolved charlesgodwin

    (@charlesgodwin)


    I know I read this somewhere but my searching hasn’t found it.

    How can I alter / suppress he placeholder text of the prefix word “Search”?

    One problem with this input field is the placeholder text can force an artifically wide column. The data may be one character wide in the column but the placeholder is wider so it influences auto sizing.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Charles,

    You cannot completely remove the placeholder. You can only remove the placeholder prefix. Here is the link to the documentation:
    https://wpdataaccess.com/docs/documentation/advanced-search-premium/individual-column-search/

    Maybe I should add a possibility to completely remove the placeholders? Or change them? Add an array of placeholders?

    What do you think?

    Thanks,
    Peter

    Thread Starter charlesgodwin

    (@charlesgodwin)

    I did some experimenting

    If I use “wpda_search_placeholder_prefix”: “icon” then I get what seems to be an image of a magnifying glass to the left of the inpt field. this also shifts the input right, sometimes outside of the column and hides the sort icon.

    “wpda_search_placeholder_prefix”: “”, I do get less text but the meaning / purpose of the input field is no longer obvious.

    I then changed the prefix to the emoji for left magnifying glass. This works best as it only consumes one character on the page and disappears when you type.

    I’m not sure how this will come out in this comment but you can find the value you need here.

    "wpda_search_placeholder_prefix": "🔍"

    How about a new setting wpda_search_placeholder with allowed values of true, false or icon. If it’s icon generate just the emoji

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Charles,

    Thank you for the magnifying glass icon example! Super cool! I didn’t know this is possible. I removed the large icon and added your unicode character. Looks much better! ??

    I also implemented the wpda_search_placeholder parameter with icon, true and false. I’m going to try to release the next version today. It contains a number of changes you asked for.

    Thank you very much your constructive input! ??
    Peter

    Thread Starter charlesgodwin

    (@charlesgodwin)

    Thanks for the kind words. I only learned about the magnifier emoji 2 days ago.

    But…. Knowing the mindset of my users I wonder what is involved adding this placeholder capability to the main search input fields something like :mag: Search as placeholder.

    I suspect I can do it with code-manager and some JS. I guess I’m going to have to learn more about JS.

    Thread Starter charlesgodwin

    (@charlesgodwin)

    I found how to add a placeholder in the main search window. Add this to the advanced options to create a placeholder of ‘Search …” and eliminate the external word ‘Search’

    "language": {
        "search": "_INPUT_",
        "searchPlaceholder": "Search ..."
     }
    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Great! ?? I added it to the example on the plugin website.

    Thanks,
    Peter

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Suppress / alter ‘Search ” in column search’ is closed to new replies.