Support

Account

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

Solving

acf_form_head() breaks my site/page

    • AVRev

    • February 7, 2014 at 3:17 am

    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

    • Elliot

    • February 7, 2014 at 2:17 pm

    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

    • AVRev

    • February 7, 2014 at 10:11 pm

    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

    • Elliot

    • February 9, 2014 at 1:04 pm

    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)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.