Support

Account

Home Forums Front-end Issues Move ACF script to footer

Helping

Move ACF script to footer

  • Hi!

    I have an ACF PRO (Developer license).

    Only a simple question: how I can move this part of ACF generated code to footer?

    <script type="text/javascript">
    jQuery(document).ready(function(){
       jQuery('form.acf-form').append('<input type="hidden" name="acf[post_ID]" value="351"/>');
       jQuery('form.acf-form').append('<input type="hidden" name="acf[frontend]" value="true"/>');
    });
    </script>

    someone has already solved this problem?

    Regards.

  • For anyone interested:

    Solution:
    The code is not generated by ACF but by “Advanced Custom Fields: Validated Field” (https://www.doublesharp.com/plugins/validated-field-acf/) plugin.

    This plugin needs to be modified.

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

The topic ‘Move ACF script to footer’ is closed to new replies.