Support » Plugin: Enjoy Social Feed plugin for WordPress website » Activate Plugin on Certain Page Only

  • Resolved wireframe74


    Hi I need to activate this plugin only on a certain page only as it is breaking another instances of an owl carousel I set up myself throughout site.

    I have tried this but it doesn’t work at this stage:

    add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );
    function my_deregister_javascript() {
    if ( !is_page('connect') ) {
    wp_deregister_script( 'aggiungi_script_instafeed_owl' );

    Help Appreciated

Viewing 1 replies (of 1 total)
  • Plugin Author mediabeta


    Dear Wireframe74,
    we are sorry for the delay in the answer but we are busy with the premium version to release a new feature.

    If you want to deregister only owl.carousel.js you need to add to the functions.php file of your theme this snippet:

    add_action( ‘wp_print_scripts’, ‘my_deregister_javascript’, 100 );
    function my_deregister_javascript() {
    global $post;
    if ( !has_shortcode( $post->content, ‘enjoyinstagram_mb’ ) && !has_shortcode( $post->content, ‘enjoyinstagram_mb_grid’ ) ) {
    wp_deregister_script( ‘owl’ );

    If you want to deregister more js or css files, you have to deregister them one by one. You can find the handle of each js and css in enjoyinstagram.php, line codes 458-470

    We hope to help you!

Viewing 1 replies (of 1 total)
  • The topic ‘Activate Plugin on Certain Page Only’ is closed to new replies.