Hi,
Can someone help me with my issues? I made my theme WP and i soft rejected because if this code (i try to load my css file php )
I have redux theme options and in this file i made css customs for theme options fields (ex in options-css.php i have more but as example $main_font = marocco_get_option(‘main_font’)
with this code
Scripts and styles should not be hardcoded anywhere in your theme or added any other way but with wp_enqueue_* hook, wp_add_inline_style or wp_add_inline_script
I add it copy paste and is not working, i got error
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘marocco_get_option_css’ not found or invalid function name in E:\wamp\marocco\wp-includes\class-wp-hook.php on line 286
What i don’t understand is that i can include that file custom-options.php or i need all from this file to add as wp_add_inline_style in file function (theme-options.php)
I’m providing paid support for these kind of issues for other authors. In case of interest, you can drop me an email and send me the theme after so I can check and fix it for you. If it’s doesn’t work, it means, there are few other things are wrong, too