Placeholder Text for Title

This topic contains 7 replies, has 3 voices, and was last updated by  Paolo 5 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #302967

    Diane Kelm
    Buyer
    Post count: 49

    Am I amble the change the placeholder text for the title field?

    #303010

    Diane Kelm
    Buyer
    Post count: 49

    I tried this and it doesn’t work
    $(“#post_tile”).attr(“placeholder”, “New Value”);

    #303012

    Diane Kelm
    Buyer
    Post count: 49

    It would be nice to have the ability to set placeholders to fields
    also set an input mask.

    #303232

    Kor
    Moderator
    Post count: 16516

    Hi Diane,

    I’ve consulted a developer and I’d like you to try using the code below and see if it works. Please double check the ID and see if it’s #post_title or #post_tile

    
    
    jQuery(function($){
       $("#post_title").attr("placeholder", "New Value");
    });

    Thanks!

    #303246

    Diane Kelm
    Buyer
    Post count: 49

    That worked.
    When I put it in document ready it did not work.

    Thank you!!

    #303247

    Diane Kelm
    Buyer
    Post count: 49

    Oh no…

    It worked but now the selection boxes have disappeared…

    #303249

    Diane Kelm
    Buyer
    Post count: 49

    should be this…

    #303393

    Paolo
    Site Admin
    Post count: 31205

    Hi,

    please use the translation files to modify placeholders, overwriting it with JS is not the correct way.

    https://wpgeodirectory.com/docs/translate-core/
    https://wpgeodirectory.com/docs/translating-addons/

    Thanks

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket