Placeholder Text in Title Box as SEO Guidance for an SEO friendly title

Hi there,

When I add a title in the back end, it populates up with ‘Auto Draft’ within the box.

I was wondering is there a snippet that could populate 'placeholder text in the title with SEO guidance so that users using the self serve and adding their own listings in the front end will see this placeholder text. (If this comes through in the back end too - happy days, as it will serve as a reminder back end and front end if possible. But front end is the priority.)

My categories are too varied to work with attributes for an auto generated title. So leaving it flexible but with placeholder guidance would be ideal.

Can you help please?

I have seen this snippet code. But I don’t know what this field is called to amend?

add_filter(
‘hivepress/v1/forms/listing_update’,
function( $form ) {
$form[‘fields’][‘description’][‘placeholder’] = ‘custom text here’;
$form[‘fields’][‘title’][‘placeholder’] = ‘custom text here’;
return $form;
},
1000
);

I created a code snippet which has worked well, pastings here for others:


add_filter(
    'hivepress/v1/forms/listing_update',
    function( $form ) {
        $form['fields']['title']['placeholder'] = 'Search-Friendly: Include service, location, and details like audience, ages, capacity, condition, brand or company name etc';
        return $form;
    },
    1000
);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.