• Resolved instawithalex

    (@instawithalex)


    Can you please share code that will hide the Website and ‘how will you promote us’ field?

    In another support answer you provided the following code but it did not work for me:

    .slicewp-field-wrapper[data-type=”url”] { display: none; }

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author iova.mihai

    (@iovamihai)

    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

    Thread Starter instawithalex

    (@instawithalex)

    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!

    Plugin Author iova.mihai

    (@iovamihai)

    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://www.ads-software.com/plugins/code-snippets/).

    Please try it out and let me know how it goes.

    Thank you and best wishes,

    Mihai

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide Website Field’ is closed to new replies.