Tagged: child theme, date format, datepicker, enfold, functions.php
Hi folks!
You provided a solution to set the order of the datepicker to MM / DD / YY in this thread:
https://kriesi.at/support/topic/mm-dd-yy-order-in-datepicker/
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 http://www.dutchovenrestaurant.com. 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:
<?php
//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?