• Hello,

    So the problem is after I place the plugin inside a widget container save it and then leave the page (the widgets page), the plugin works fine; although, if I go back to the widgets page and open the widget container for some reason the plugin is no longer there… I also have to reset whatever parameters I have set when first initializing the plugin.

    Currently I use this code in my functions.php file:

    register_sidebar( array(
        'name' => __( 'Social Media'),
        'id' => 'socialMedia',
        'before_widget' => '',
        'after_widget' => '',
        'before_title' => '',
        'after_title' => '',
    ) );

    Then I place this code where I want the widget to go in my WordPress theme files…

    <div id="socialMedia">
    <?php
    if ( !dynamic_sidebar( 'Social Media' )) {
    dynamic_sidebar( 'Social Media' );
    }
    ?>
    </div>

    Any ideas???

    Thanks,
    Sam

    [Please post code snippets between backticks or use the code button.]

  • The topic ‘Plugins disappearing after being placed in widget’ is closed to new replies.