• jouti

    (@jouti)


    In “Add new event” page is first the new “event name” text field. I want to write here, just after “event name label” and before text field, an instruction for writers how to fill the form. What is the php file and where I should write my own text? I hope you understand what I mean, but maybe not…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Yes, this is possible. If you use the filter ‘mc_insert_custom_fields’, you could insert a paragraph of instructions below the event title field, e.g.:

    add_filter( 'mc_insert_custom_fields', 'my_custom_instructions', 10, 3 );
    function my_custom_instructions( $values, $has_data, $data ) {
        $instructions = 'Your text here';
    
        return $instructions . $values;
    }

    Place that in your theme’s functions.php file or in a custom plug-in.

    Thread Starter jouti

    (@jouti)

    Hei, I copied this to my theme’s functions.php file, but I didn’t find any changed in “Add new event” page. Then I copied this to empty page, named it .php file, and then I placed it to “Plugin” folder, but nothing changed. What I did wrong?

    Plugin Author Joe Dolson

    (@joedolson)

    As a plug-in, did you activate it?

    Thread Starter jouti

    (@jouti)

    Yes, but not any changed… But bigger problem is “Open calendar links to event details” check box, if I check it, it becomes unchecked after I save it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modifying Add new form page.’ is closed to new replies.