Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Form Changes Image Display When Added to Page
Tagged: css, registration form
- This topic has 1 reply, 2 voices, and was last updated 2 weeks, 4 days ago by
admin.
-
AuthorPosts
-
October 26, 2026 at 11:57 pm #85268
Pianosaurus
ParticipantHi there
As soon as I add the WP eMember registration form to a page it affects the padding or margins of all the images on that page so that they appear smaller.
Is there a CSS tweak I can apply to fix this?
Here’s a link to a page with the registration form with one image that has been effected:
When editing the page with WPBakery Page Builder I can see that the image has more padding/margin (it looks like an extra 10px 20px at a guess). This extra padding/margin disappears as soon as the registration form is deleted from the page.
I’ve currently added the following to WP Custom CSS Settings to modify the appearance of the button:
.eMember_button {
background: #f2c649;
color: white;
font-size: 16px;
font-family: Open Sans, serif;
vertical-align: middle;
cursor: pointer;
}
.pure-button {
font-family: inherit;
font-size: 100%;
color: #ffffff !important;
padding: 1em 2em !important;
border: 0px solid !important;
border: none !important;
background-color: #f2c649 !important;
text-decoration: none;
border-radius: 0px !important;
transition: none !important;
}.pure-button-active {
box-shadow: none !important;
border: none !important;
transition: none !important;
background: #f2c649 !important;
}#wp_emember_loginForm .register_link{
display: none;
}#wp_emember_regoForm #wp_emember_member_level {
display: none;
}Thanks for your help
October 28, 2026 at 11:28 pm #85269admin
KeymasterHi, The registration form loads a small CSS framework (Pure CSS) for its layout. Pure includes a standard reset stylesheet, and one of its rules adds a margin of 1em top and bottom and 40px left and right to every
figureelement on the page. WPBakery wraps its images in afigureelement, so they pick up that margin and appear smaller. That is why the spacing goes away when the form is removed.Add the following to your Custom CSS, along with your existing rules:
.vc_figure { margin: 0; }This resets the margin on WPBakery image elements only and won’t affect the registration form. Clear any caching plugin or server cache after saving, then reload the page.
Thank you.
-
AuthorPosts
- You must be logged in to reply to this topic.