You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be able to update the content as the fields do not pertain to the home page template.
Actual Behavior
You are unable to update the home page content, as the Update button is greyed and and cannot be clicked.
Container definition
Container::make('post_meta', 'State Details')
->where('post_template', '=', 'page-landing.php')
->add_fields([
Field::make('text', 'state_phone', __('State Phone Number', $this->text_domain))
->set_width(50)
->set_required(true)
->set_attribute('placeholder', '2222 2222')
->set_help_text('The phone number label for the hero meta box.'),
Field::make('image', 'state_logo', __('State Logo', $this->text_domain))
->set_width(100)
->set_required(true)
->set_help_text('The logo to show in the hero meta box.'),
]);
Steps to Reproduce the Problem
Edit a page that doesn't use the template 'page-landing.php'
Update button will be greyed out.
Steps to Temporarily resolve the Problem
Select "Screen Options" on the top of the page editor.
Tick the "State Details" option.
Fill in the required "State Details" fields.
The Update button will now be active.
Comments
When editing the home page template, or any other page that isn't using the 'page-landing.php' template, the Update button is greyed out, the fix is to show the "State details" fields in the "Screen Options" section and fill in the required fields.
The text was updated successfully, but these errors were encountered:
Version
Expected Behavior
Should be able to update the content as the fields do not pertain to the home page template.
Actual Behavior
You are unable to update the home page content, as the Update button is greyed and and cannot be clicked.
Container definition
Steps to Reproduce the Problem
Steps to Temporarily resolve the Problem
Comments
When editing the home page template, or any other page that isn't using the 'page-landing.php' template, the Update button is greyed out, the fix is to show the "State details" fields in the "Screen Options" section and fill in the required fields.
The text was updated successfully, but these errors were encountered: