Home Support General HivePress My Accounts > Settings > Customized Field

My Accounts > Settings > Customized Field

  • Author
    Posts
  • Homerson

    Hi team!

    In My Account Settings, I want to do some modifications.

    1. Can I remove the “Last Name” field? How?
    2. I want to re-arrange the fields like moving the “Profile Info” Field on top of the Attributes I added.
    3. I want to remove the term “Optional” on the fields: Profile Image, First Name and Profile Info.

    And in addition, In the listing page, can I change the word in the button that says “BUY NOW”?

    Thank you and have a great day ahead!

    ihor developer

    Hi,

    All the changes you listed can be made via this code snippet:

    add_filter(
    	'hivepress/v1/forms/user_update',
    	function( $form ) {
    		unset( $form['fields']['last_name'] );
    
    		$form['fields']['description']['_order'] = 123;
    		
    		$form['fields']['image']['required'] = true;
    		$form['fields']['first_name']['required'] = true;
    		$form['fields']['description']['required'] = true;
    
    		return $form;
    	},
    	1000
    );

    Please try changing the Buy Now text via the Loco Translate plugin https://www.youtube.com/watch?v=BeaYWYUHvHI You can do so in Loco Translate/Plugins/HivePress Markeplace section.

    Homerson

    Hi Thor,
    Can I use this code snippet without having a child theme? Also, I don’t have an idea where can I attach that code, I am a total newbie in modifying a theme. Thanks.

    ihor developer

    Sure, you can add and manage custom PHP snippets using this plugin https://wordpress.org/plugins/code-snippets/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.