Forum Replies Created
-
Author
-
ElectroMagneticParticipant
Yeah!…Toggle own profile header (min & Max) (hide & unhide) would make the profile field easier to edit/measage etc…Great idea.
ElectroMagneticParticipantHi Laura.
OK, so if you have a javascript that can do the job I would really appreciate it 🙂
I will then put this to buddypress to include in their updates.
Thank you for all the helpElectroMagneticParticipantI know, maybe that why I couldn’t find another element in the CSS…only ( .standard-form div.checkbox label ) but that changes all the labels in the same field and all other checkbox fields.
Which file did you modify last so that I can change it back….as I dont see it in the style.css or quick css.
Do you think that perhaps there is another solution to this problem other than CSS?
ElectroMagneticParticipantHello Laura.
No… not all the labels in the checkboxes….Just the “heading/title” of All the checkboxes fields in all the profile groups. see screen shot below
http://awesomescreenshot.com/0b43wdw228
The reason I asked for this was that I can’t find the CCS that points specifically to the “heading/title” of the checkbox fields.
This .standard-form div.checkbox label changes all the labels in the checkbox fields …..I only want to change the heading/title.
Thank you for all your input and hopefully we can find a solution
ElectroMagneticParticipantHello Laura
That for the text lable field….I’m trying to change the “checkbox “label field heading.
See the resuld of the CSS here in the attached linkElectroMagneticParticipantSorry about the last post…grrrr had finger trouble…I meant this way
COPY CODEadd_filter('header_profile_dropdown', 'my_profile_link'); function my_profile_link($links) { $links[] = '<li><a href="http://mydomain.com/help" rel="nofollow">Help</a></li>'; $links[] = '<li><a href="' . bp_loggedin_user_domain().'profile/edit">Edit profile</a></li>'; return $links; }
ElectroMagneticParticipantThanks for that Abe.
Do I string it in like this?COPY CODEadd_filter('header_profile_dropdown', 'my_profile_link'); function my_profile_link($links) { $links[] = '<li><a href="http://thegiftvillage.com/help" rel="nofollow">Help</a></li>'; $links[] = '<li><a href="' . bp_loggedin_user_domain().'profile/edit">Edit profile</a></li>'; return $links; }
ElectroMagneticParticipantHi Abe, thanks for the suggestion….but it did not make any difference
Do you perhaps have any other thoughts?ElectroMagneticParticipantHi Abe
I found the jquery worked well, but did not work on the Profile > edit > submenu items…as my client has a huge profile group an field section.
I added this into you jquery #profile-edit-form ul.button-nav li a and it seems to work well, but not sure if that is the correct way to approach the problem.
Please could you check this jquery below and let us all know if its good to go or if its just a hack! and you have a better solution to this.<script>
jQuery(document).ready(function() {
jQuery(“#item-nav .item-list-tabs a, #subnav li a, #profile-edit-form ul.button-nav li a”).each(function() {
jQuery(this).attr(‘href’,jQuery(this).attr(‘href’)+”#main”);
});
});
</script>Look forward to your input.
ElectroMagneticParticipantHi there Catalin
I ended up at the wordpress forum and one of the developers of buddy press “donmik” posted a fix for this problem as a javascript solution. I have tried it in my “register.php” in the child theme…but I cant get it to work even when encased in <script>…. </script>
This is the code he gave:Question : How can I put description text below my field’s label ?
How to : For now, you can use javascript to do this. Write this javascript at the end of your template file (register.php for example).
Code:// For each description we have.
jQuery(‘p.description’).each(function() {
// Clone description.
// Looking for parent div.
// Looking for label of checkbox field or radio field first.
var desc = jQuery(this).clone(),
parent = jQuery(this).parent(),
label = parent.find(‘span.label’);
// If there is no label of checkbox field or radio field, we look for normal labels.
if (!label.length) {
label = parent.find(‘label’);
}
// If there is a label.
if (label.length) {
// Putting the description after the label.
label.after(desc);
// Removing the original description.
jQuery(this).remove();
}
});Please, Please can you help me with this…Logically, on any form the description should be before the answers you want the client to give.
I would really appreciate your help here.ElectroMagneticParticipantHi Abe & Robert.
So I have the latest 2.6.1 version and still the same problem.
I check the CSS in Chrome “inspect elements” an saw that the text for the heading justifies from the right, with a with of 160px.
I used the following changes to the Child Styles sheet and found it worked…see attached pictures.body.buddypress .profile .dl-horizontal dt {
width: 170px;
}My concern is that : if I made any other heading longer that the 170px then I would have to adjust the CSS again.
Is there maybe and “AUTO” adjustment to the right of the heading allowing for the longest heading.
I hope my question is explained correctly ( I’m not a coder in CSS or php)
Thank youAttachments:
You must be logged in to view attached files.ElectroMagneticParticipantHi Robert.
Do you mean I must install a previous version? currently my version is sweetdate 2.6.1 and buddypress 2.0.1.ElectroMagneticParticipantHi Catalin
The new CSS you provided does wrap the field title, and the next field title is displayed out of line with the answer….like airsidworld said
see the sample attachedAttachments:
You must be logged in to view attached files.ElectroMagneticParticipantHi Catalin
I tried that in both the quick CSS in styling options as well as the Styles CSS in the child theme….no change, still getting cut off.
any other suggestions? -
AuthorPosts