WordPress.org

Ready to get started?Download WordPress

Forums

Tabber Widget
Moving wp-content folder breaks Tabber Widget (1 post)

  1. rediris
    Member
    Posted 3 years ago #

    Hello,
    I've noticed that changing the location of the wp-content folder breaks this plugin because it's not specifically coded to dynamically pull from WP_PLUGIN_DIR or WP_PLUGIN_URL in the database. It seems you've hard-coded the wp-content url into your plugin, rather than using global constants that are available. Is there some way of working around this? Ordinarily, I would be able to use the following type of example, but for some reason, I can't seem to find the proper handle for your scripts and css.

    function deregister_tabber_js(){
    wp_deregister_script('tabber_widget-idtabs');
    wp_enqueue_script('tabber_widget-idtabs', WP_PLUGIN_URL . '/tabber-widget/js/jquery.idTabs.min.js', array('jquery'),'3.1.1', false );
    }
    function deregister_tabber_css(){
    wp_deregister_style('tabber_widget-tabber-widget-rounded-light');
    wp_register_style('tabber_widget-tabber-widget-rounded-light', WP_PLUGIN_URL . '/tabber-widget/templates/rounded-light.css',array(), '3.1.1', false);
    wp_enqueue_style('tabber_widget-tabber-widget-rounded-light');
    }
    add_action( 'wp_print_scripts', 'deregister_tabber_js');
    add_action( 'wp_print_styles', 'deregister_tabber_css');

    Please see here:
    WordPress Codex: Editing wp-config.php and moving wp-content

    and

    How To Protect The wp-content Folder of WordPress

    http://wordpress.org/extend/plugins/tabber-widget/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic