• Resolved Rappadappa77

    (@rappadappa77)


    Hello Guys,

    Thank you for a great plugin, very nice.

    I’m trying to edit the Titles, Labels and Placeholders on the Job Submission Form, I have an idea how to do 1 from following the instructions, but to add another, that is where I get errors. See below how I changed the placeholder for Location

    function custom_submit_job_form_fields( $fields ) {

    $fields[‘job’][‘job_location’][‘placeholder’] = “e.g. Kingston”;
    return $fields;
    }

    How would I add a placeholder for Phone or change the Label for Title, I tried combining it and adding it separately, all I get is errors?

    Howard

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter Rappadappa77

    (@rappadappa77)

    No one to help me out with this please?

    Howard

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    This guide shows you how to do that:

    https://wpjobmanager.com/document/editing-job-submission-fields/

    Specifically, this example shows you exactly how to change the label:

    https://wpjobmanager.com/document/editing-job-submission-fields/#section-1

    Use $fields['job']['job_title']['label'] = "Custom Label";

    You just need to make sure you replace job_title with whatever field you want to modify and label with whatever value you’re trying to change.

    Thanks!

    Thread Starter Rappadappa77

    (@rappadappa77)

    Hello Adam,

    Thank you for the information, but I already used the code to change the Location placeholder, but I want to change another placeholder or Label and I don’t know how to combine it or should I add it separately, I tried both and I get PHP errors.

    Howard

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Add additional ones like so:

    https://gist.github.com/64672d8a408941a051c1

    What errors are you getting when you try this? You may just have some PHP syntax incorrect.

    Thread Starter Rappadappa77

    (@rappadappa77)

    That is how I combined them, but the error I get I don’t remember, but it says something on line 26 and these codes are higher in the functions file.

    Howard

    Thread Starter Rappadappa77

    (@rappadappa77)

    This is the error I get on my website.
    P.s, I just use xxxxxx to hide my login and web address.

    Warning: include(/home/xxxxx/public_html/xxxxxxx.co/wp-content/themes/listify/inc/integrations/wp-job-manager/templates/form-fields/-field.php): failed to open stream: No such file or directory in /home/xxxxxx/public_html/xxxxxxx.co/wp-content/plugins/wp-job-manager/wp-job-manager-template.php on line 26

    Warning: include(): Failed opening ‘/home/xxxxxxx/public_html/xxxxxxxx.co/wp-content/themes/listify/inc/integrations/wp-job-manager/templates/form-fields/-field.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/xxxxxxx/public_html/xxxxxxxx.co/wp-content/plugins/wp-job-manager/wp-job-manager-template.php on line 26

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Hmm, that error seems to be coming from Listify.

    Can you make sure that Listify (and all of your plugins too!) are fully updated? The latest version of Listify is 1.0.7 as shown here:

    https://themeforest.net/item/wordpress-directory-theme-listify/9602611

    Thanks!

    Thread Starter Rappadappa77

    (@rappadappa77)

    Yeah everything is up to date.
    But funny enough the errors went away after a little while, what I noticed is when I try to change the placeholder for “phone”, the errors return.

    Howard

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Can you link me to your site so I can take a look? Also, can you make sure you have the latest version of Field Editor if you are using it?

    Thanks!

    Thread Starter Rappadappa77

    (@rappadappa77)

    I removed it since there is an error, but searchjamaica.co, no field editor, just php editing.

    Howard

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Hmm, looking at this some more, I can’t even get to the Submit Listing page in the first place. When I go to here:

    https://www.searchjamaica.co/submit-listing/

    … I get redirected to here:

    https://www.searchjamaica.co/?redirect_to=/submit-listing/

    … which is just your homepage it seems like.

    How do you even get to the submit listing page on your site?

    Thread Starter Rappadappa77

    (@rappadappa77)

    Sorry about that, I blocked it for Registered users, can I create a login and send the details to you? or should I temporarily remove it?

    Howard

    Thread Starter Rappadappa77

    (@rappadappa77)

    I have updated you account, so you can see the link now.

    Howard

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    I was just able to submit a listing without seeing any errors. Do you have the fields customized right now, or did you remove that?

    Thread Starter Rappadappa77

    (@rappadappa77)

    I had removed the phone fields as there was an error, but I can add it back.

    It has nothing to do with submitting form data, just I can’t add a placeholder in the phone section.

    Howard

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Editing Submission Form Fields (Titles and Placeholder)’ is closed to new replies.