• Resolved helloknox

    (@helloknox)


    I have used the shortcode without any problems on standard WordPress content pages, however when I try to use it in a WYSIWYG box (from ACF) the styling looks broken, but the toggle still opens the content.
    Do you know of any reason why this could cause a problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andy Feliciotti

    (@someguy9)

    Hey @helloknox, for the best performance the plugin scans your content if the shortcode is used then embeds the correct stylesheet. This scan doesn’t happen on ACF content.

    Using this code snippet should fix your issue!

    add_filter('lightweight_accordion_include_frontend_stylesheet', '__return_true' )

    Let me know if this helps.

    Thread Starter helloknox

    (@helloknox)

    Hi Andy, Thanks for the prompt reply. I needed to add the word always:

    add_filter(‘lightweight_accordion_always_include_frontend_stylesheet’, ‘__return_true’ );

    But it worked perfectly – thanks

    Plugin Author Andy Feliciotti

    (@someguy9)

    Good catch! glad it’s working, if you’re enjoying the plugin I always appreciate a review.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does the short code work in any WYSIWYG element’ is closed to new replies.