• Resolved durhamm1

    (@durhamm1)


    Hi Robin

    In v3.0.1 I could use the [scriptless] shortcode in a post or in a template via
    echo do_shortcode("[scriptless]");.

    Since upgrading to v3.1.0 the formatting of the resulting buttons is broken when called via the template (but still works when the shortcode is used in a post).

    I have rolled back to v3.0.1 for now.

    Can you help?

    Thanks

    Martin

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

    (@littlerchicken)

    If you are displaying the buttons via code in a template, you need to check the Manual Placement setting for all content types where you are using the code, per the instructions: “Checking manual placement will allow the plugin styles to load as needed, if you are adding the buttons using code.”

    3.1.0 fixed an error which caused the plugin to erroneously always load the plugin assets on singular posts, even if they were not needed. The manual placement setting was intended to allow the assets to load, even if the plugin could not detect the presence of the buttons.

    Thread Starter durhamm1

    (@durhamm1)

    Thanks – all working again ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode not working when called via a template in v3.1.0’ is closed to new replies.