• Resolved charliefishtank

    (@charliefishtank)


    Hey,

    With the dynamic rendering of content, how do I render the stylesheets in the head rather than the footer? Is this an option I can select or does it need to be manipulated by a hook?

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    The Flexible Content “Dynamic Render” enqueue Layouts scripts/styles files on-demand, when they are actually rendered on page when you use the_flexible(). Unfortunately, it’s not possible to automatically enqueue these files before the Flexible Content is actually used with get_field() or the_flexible(), in the head section.

    As a workaround, you could simply remove these files from your Flexible Content UI settings, and rather enqueue them manually using the wp_enqueue_scripts hook (see documentation).

    If you’re interested, there’s also this related thread which talk the topic.

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Block styles added to footer instead of head’ is closed to new replies.