• Resolved ajouve

    (@ajouve)


    Hi,

    I would like to use the plugin with 100% php and no javascript directly in my template but I can not found any documentation.

    Thanks for the help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Smash Balloon Mike

    (@smashballoonmike)

    Hey @ajouve,

    Thank you for reaching out to us. You can remove the JavaScript from our plugin by adding the following to your themes functions.php file:

    add_action( 'wp_enqueue_scripts', 'sbi_remove_scripts', 20 );
    function sbi_remove_scripts() {
       wp_deregister_script('sb_instagram_scripts');
    }

    Please note, some features may be unavailable using this method.

    Many thanks, hope you are having a great day!

    Thread Starter ajouve

    (@ajouve)

    Thanks

    But do you have a documentation about php function I can use

    I would like for example to get the 5 last posts in a php array

    Thanks

    Plugin Support Smash Balloon Mike

    (@smashballoonmike)

    Hey @ajouve,

    You can embed the shortcode directly into the page template using the code shown in this FAQ. You can then customize the item.php template to change how the data is displayed. This FAQ will explain more about our templating system.

    Many thanks, hope you are having a great night!

    Thread Starter ajouve

    (@ajouve)

    Great,

    Thanks a lot !

    Plugin Support Smash Balloon Mike

    (@smashballoonmike)

    Hey @ajouve,

    You’re welcome!

    Let us know if you need anything else in the future. Hope you have a great week!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Use plugin pragmatically’ is closed to new replies.