Hey @instawithalex,
Thank you for reaching out! I believe the following CSS code should help:
.slicewp-field-wrapper[data-type="url"],
.slicewp-field-wrapper[data-type="textarea"] { display: none !important; }
Please add it to your website and let me know how it goes.
If you’re not sure where to add this code snippet, you can add it to Appearance > Customize > Additional CSS.
Thank you and best wishes,
Mihai
That worked, thank you!
Last question – is there anyway to remove the username field and just use their email as username? I don’t even see a username field in the back end..
Thanks!
Hey @instawithalex,
This unfortunately cannot be done out of the box.
However, it can be done via this custom code:
function slicewp_custom_register_affiliate_fields_remove_username( $fields ) {
foreach ( $fields as $key => $field ) {
if ( $field['id'] == 'slicewp-user-login' ) {
unset( $fields[$key] );
}
}
return array_values( $fields );
}
add_filter( 'slicewp_register_affiliate_fields', 'slicewp_custom_register_affiliate_fields_remove_username', 20 );
Please copy the code and add it to your website. If you’re not sure how to add code snippets to your site, you can use the Code Snippets plugin (https://ww.wp.xz.cn/plugins/code-snippets/).
Please try it out and let me know how it goes.
Thank you and best wishes,
Mihai