Support

Account

Home Forums Front-end Issues acf_form_head() breaks my site/page

Solving

acf_form_head() breaks my site/page

  • I have recently changed my theme on wordpress from Custom Community CC to Vantage.
    The Front end post create feature was working fine previously but with the update the page with the form appears as blank. (no text or anything) Everything after the acf_form_head is not displayed.

    I have registered ‘wp-admin’
    as follows:

    function my_deregister_styles() {
    wp_deregister_style( ‘wp-admin’ );
    }
    add_action( ‘wp_print_styles’, ‘my_deregister_styles’, 100 );

    I have also gone into the acf_form_head function and fond that commenting out the line below alos functionality but no styles:

    do_action(‘acf/input/admin_enqueue_scripts’);

    I imagine its a styles register conflict How to solve please?

    Thanks

  • Hi @AVRev

    A blank screen represents a PHP error.
    Can you please turn on DEBUG_MODE in your wp-config.php file and refresh the page. What is the error shown?

    Thanks
    E

  • Hey thanks for speedy reply eliot!

    Fatal error: Call to undefined function get_current_screen() in /wp-content/themes/vantage/extras/settings/settings.php on line 550

  • Hi @AVRev

    This PHP error is coming from a file within your theme.
    Perhaps you should contact the theme developer.

    Thanks
    E

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

The topic ‘acf_form_head() breaks my site/page’ is closed to new replies.