latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Hiding the "Display Name" field

Home Forums Community Forum Hiding the "Display Name" field

This topic contains 0 replies, has 1 voice. Last updated by  Phillip Bryan 3 years, 3 months ago.

Topic Author Topic
Posted: Sunday Sep 15th, 2013 at 6:39 pm #59598
Phillip Bryan
Username: damron

This topic was brought up in a earlier thread.

Hi,

I wanted to share my solution for hiding the Display Name on the profile form.

This bit of javascript does the trick:

<!-- Hide the "Display name" field -->
	
		jQuery(document).ready(function($) {
			$('#ws-plugin--s2member-profile-display-name').parent().parent().parent().hide();
		});
	

I added it right before the get_footer() call on the page where the form is embedded. It finds the display_name form field, and climbs the DOM to find the table row containing the field. Then it simply hides that row.

Hope others find this useful,
Phillip

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.