Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #641622

    Hi folks!

    You provided a solution to set the order of the datepicker to MM / DD / YY in this thread:

    That worked brilliantly at the time, and it still does. However, I’m attempting to apply that same fix to a different site running Enfold, and I see this error:
    Parse error: syntax error, unexpected T_FUNCTION in /homepages/17/d136927890/htdocs/DutchOven_WP/wp-content/themes/dutchoven/functions.php on line 10

    The site I’m working on is It’s a simple one-page site plus one other page with a contact form (their Catering Quote Request page).

    This is what my child theme functions.php looks like that produces the syntax error:

    //set builder mode to debug
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    	return "debug";
    add_filter( 'avf_datepicker_dateformat', function(){ return 'mm / dd / yy'; } );
    add_filter( 'avf_datepicker_date_placeholder', function(){ return 'MM / DD / YY'; } );
    //Remove Portfolio post type
    add_action('after_setup_theme', 'remove_portfolio');
    function remove_portfolio() {
    remove_action('init', 'portfolio_register');

    Any ideas? What am I missing?


    Hey AJDesignCo,

    It does work fine on my local installation. Do you mind creating a temporary admin login and FTP logins and posting them here privately so we can look into it?

    Best regards,

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

You must be logged in to reply to this topic.