[wp-trac] [WordPress Trac] #44408: Add classes to .post-attributes-label-wrapper paragraphs to make them unique

WordPress Trac noreply at wordpress.org
Wed Jun 20 06:05:16 UTC 2018


#44408: Add classes to .post-attributes-label-wrapper paragraphs to make them
unique
-----------------------------+-----------------------------
 Reporter:  garrett-eclipse  |      Owner:  (none)
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Editor           |    Version:  4.9.6
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Hello,

 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>
 </div>
 }}}

 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44408>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list