• Resolved datschge

    (@datschge)


    Hello,

    we don’t put the [ngsurvey id="123"] shortcode in the page content but call it using do_shortcode(). The current (version 1.0.5) result is that NgSurvey’s styles and scripts are not enqueued for inclusion in the page header. Can that be enforced programmatically? Or does this need fixing in the plugin? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author NgIdeas

    (@ngideas)

    To avoid the styles loaded on pages other than surveys, ngsurvey strictly checks the post type or the shortcode availability. So you cannot render styles by doing do_shortcode from a custom plugin.

    To help you overcome this problem, I am adding a new filter “ngsurvey_render_styles” and “ngsurvey_render_scripts” which can be used to hint the plugin to load them forcibly. Should be available in 1.0.6.

    Thread Starter datschge

    (@datschge)

    Thank you, looking forward to the new version then!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Loading NgSurvey styles and scripts when using do_shortcode?’ is closed to new replies.