Home » Wordpress » CSS missing while using ACF form in frontend

CSS missing while using ACF form in frontend

Posted by: admin November 30, 2017 Leave a comment

Questions:

I am using ACF and wants to create a form in frontend for user profile. i get all the data but there is some problem with css. i have tried this

<?php
acf_form_head();
wp_head();
?>
<div id="primary">
    <div id="content" role="main" class="content-area">
        <?php
        $options = array(
            'post_id' => 'user_' . get_current_user_id(),
            'field_groups' => array(18),
            'form' => true,
            'return' => add_query_arg('updated', 'true', get_permalink()),
            'html_before_fields' => '',
            'html_after_fields' => '',
            'submit_value' => 'Update'
        );
        acf_form($options);
        ?>
    </div>
</div>
<?php wp_footer(); ?>

here is my screenshot

enter image description here

Answers: