[buddypress-trac] [BuddyPress Trac] #5586: Add ID to editfield DIV
buddypress-trac
noreply at wordpress.org
Fri Apr 25 15:14:48 UTC 2014
#5586: Add ID to editfield DIV
-------------------------------------------------+-------------------------
Reporter: sooskriszta | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Template Pack | Review
Severity: normal | Version:
Keywords: needs-patch reporter-feedback close | Resolution:
-------------------------------------------------+-------------------------
Comment (by sooskriszta):
@DJPaul The fields themselves do have fieldname e.g. {{{field-1}}} as id,
but the divs don't have any ids. The div class is {{{editfield}}}. All
field divs are of the class editfield. This works fine if I want to format
ALL fields in the same way, but not if I want to apply specific formatting
to specific fields. (I am trying this on BuddyPress 2.0 so if things have
changed since then then I take all this back).
This is the output I am getting at the moment:
{{{
<div class="editfield">
<label for="field_14">Derék (cm)</label>
<input id="field_14" name="field_14" type="number" value=""/>
<p class="field-visibility-settings-notoggle" id="field-visibility-
settings-toggle-14">
This field can be seen by:
<span class="current-visibility-level">Everyone</span>
</p>
<p class="description"/>
</div>
}}}
I want to change the {{{<div class="editfield">}}} above to {{{<div
class="editfield" id="field_14">}}}
The issue is at what level the identifier is inserted. e.g. my extension
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=6500
for OpenCart is decently popular because when people want to format
categories, it makes a difference whether the ID is attached to the <li>
or the content inside it.
e.g. I consider myself fairly proficient in CSS but I don't know how I
would, in BuddyPress, put 2 fields in the same horizontal line short of
ugly hacks which may not work well on all screens.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5586#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list