Fixing the Team Member Description Bug

There is a minor bug in the Divi Theme which can occur when you use team member modules within a specialty section. The Divi theme incorrectly applies a 350px margin to the team member descriptions, meaning that the team member descriptions appear under the wrong people (the name of the first team member appears under the image of the second, etc.

If you create a normal section such as a (3/4, 1/4) section, Divi will add the margin so that in the 3/4 column the team member description is pushed out from under the team member image to site to the right of the image. On a (1/4, 1/4, 1/4, 1/4) section the margin isn't added. However, if you have, say, a (1/4, 1/4, 1/4, 1/4) embedded in a (3/4, 1/4) specialty section, the margin meant for the (3/4, 1/4) will be applied to the team member description inside the (1/4, 1/4, 1/4, 1/4). End result, margin is being applied to elements it shouldn't be.

We can fix this issue by overriding the incorrect CSS rule and replacing it with the correct one, like so:

.et_pb_column_4_4 .et_pb_team_member_description, 
.et_pb_column_3_4 .et_pb_team_member_description, 
.et_pb_column_2_3 .et_pb_team_member_description {
	margin-left: 0px;
}
.et_pb_column_4_4 > .et_pb_team_member_description, 
.et_pb_column_3_4 > .et_pb_team_member_description, 
.et_pb_column_2_3 > .et_pb_team_member_description {
	margin-left: 350px;
}

This post may contain referral links which may earn a commission for this site

Divi Booster

Hundreds of new features for Divi
in one easy-to-use plugin

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.