Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pollardd

    (@pollardd)

    OK I have made some progress.
    I figured out I need to edit the file named functions.php
    And I should probably create a child theme which I have done.
    I know my functions.php is being read from the child theme as without it my style was all messed up, with it the rest of my page looks normal again.

    I now have the following code in my child functions.php but nothing has changed in the form. It still says city. Have I picked the wrong function to insert?

    <?php
    
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
    
    function enqueue_parent_styles() {
       wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    
    function my_gwolle_gb_author_origin_label( $label ) {
    	// $label is a string
    	$label = 'Mobile Number';
    	return $label;
    }
    Thread Starter pollardd

    (@pollardd)

    Silly Me,
    I missed a bit from the example. That works. ??

    function my_gwolle_gb_author_origin_label( $label ) {
    	// $label is a string
    	$label = 'test';
    	return $label;
    }
    add_filter( 'gwolle_gb_author_origin_label', 'my_gwolle_gb_author_origin_label', 10, 1 );
    Thread Starter pollardd

    (@pollardd)

    Marked as resolved

    Plugin Author Marcel Pol

    (@mpol)

    Hi Pollard,
    Glad that you got it sorted ??
    Have a good weekend,
    Marcel

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change/Add a field name’ is closed to new replies.