• Resolved solutioinc

    (@solutioinc)


    Which file contains the placeholder text for the car submission form? Specifically the ‘Price (optional)’ field. Currently, it’s $29,0000. I’d like to remove the dollar sign, since I don’t want people adding it to the field. I’ve noticed this causes some issues.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter solutioinc

    (@solutioinc)

    To anyone else that needs to edit the placeholder text, it can be found in wp-car-manager/src/Vehicle/Data.php

    Plugin Author Barry Kooij

    (@barrykooij)

    Hey @solutioinc,

    Sorry for not getting back to you sooner. Please do not directly change that file as all changes on plugin files will be lost on update. Ypi can update this placeholder text by adding the following code to your theme’s functions.php:

    add_filter('wpcm_vehicle_fields', 'wpcm_custom_change_fields', 10, 1);
    function wpcm_custom_change_fields($fields) {
    	$fields['price']['placeholder'] = "29,000";
    	return $fields;
    }

    Kind Regards,

    Barry Kooij

    Thread Starter solutioinc

    (@solutioinc)

    Thanks, this worked for me.

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