• I’m trying to add placeholder text to the search field that gets displayed by the shortcode “pdb_search”. The shortcode works great but I want to add the placeholder text in the input field.

    I see that in /templates/pdb-list.detailed.php, there is a comment that suggests adding it there. For some reason it’s not working. I’ve cleared server/browser cache.

    Any ideas or am I doing it wrong?

    Here is what I have:

    <input placeholder="My Placeholder Text" id="participant_search_term" type="text" name="value" class="search-item" value="<?php echo $this->list_query->current_filter('search_term') ?>">

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    That certainly looks correct…when looking at issues with custom templates, the first step is to make sure the custom template is actually in use. That is two things: the location of the template and the name of the file and the corresponding name in the shortcode. I’m assuming you’ve read the documentation about setting up custom templates.

    Thread Starter gmex1292

    (@gmex1292)

    Thanks for the reply. Yes I am using a custom template. For the pdb-list-default.php I am using a custom template and it works fine calling per the documentation per below:

    [pdb_list template=default-my-custom

    File name is: pdb-list-default-my-custom.php

    However with pdb-list-detailed.php (which is where I think the search box code is called from), I did the same but it doesn’t seem to be working calling the custom template.

    [pdb_search template=detailed-my-custom

    File name is: pdb-list-detailed-my-custom.php

    But, I was able to use javascript to do the trick. That works fine for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Placeholder Text to Search Field’ is closed to new replies.