Make WordPress Core

Opened 16 months ago

#44408 new enhancement

Add classes to .post-attributes-label-wrapper paragraphs to make them unique

Reported by: garrett-eclipse Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.6
Component: Editor Keywords:
Focuses: Cc:
PR Number:



Currently the Post Attributes meta box markup for the individual post attributes doesn't allow for easy targetting for either css or js.

<div class="inside">
<p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="parent_id">Parent</label></p>
<select name="parent_id" id="parent_id"></select>
<p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="page_template">Template</label></p>
<select name="page_template" id="page_template"></select>
<p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="menu_order">Order</label></p>
<input name="menu_order" type="text" size="4" id="menu_order" value="0">
<p>Need help? Use the Help tab above the screen title.</p>

Could each attribute either be wrapped in a div with ID or class on it. Otherwise can an ID or unique class be added to the post-attributes-label-wrapper paragraphs in order to target them.

Personally I prefer an entire div wrapping to allow better targetting the attribute as a whole to hide or style it or update it.

Thank you

Change History (0)

Note: See TracTickets for help on using tickets.