Jump to content


Better, More Convenient, Private Support for Your iThemes Products Is Here.


We're moving support away from the forum and in to private tickets - Log In to Get Support Here


Note: any currently open support threads in the community forum will stay open while we resolve them.

Moving wp-content directory breaks Tabber Widget


This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 Guest_Roman Edirisinghe_*

Guest_Roman Edirisinghe_*
  • Guests

Posted 14 April 2011 - 11:12 PM

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

#2 Josh

Josh

    Ithemes Developer

  • Moderators
  • Others: All Plugins, All Themes, BackupBuddy, Flexx
  • 2,927 posts

Posted 15 April 2011 - 02:14 PM

Hi Roman,

You are correct. The code for tabber-widget is hard to debbug as it was coded a long time ago. I think i have a fix and will be testing it. I will post back here when i know it works. Thanks for the heads up.

Regards

Josh
Hey if you haven't looked at the iThemes codex check it out here!
There are some plugin walkthrough videos on our youtube channel check it out!




Better, More Convenient, Private Support for Your iThemes Products Is Here.


We're moving support away from the forum and in to private tickets - Log In to Get Support Here


Note: any currently open support threads in the community forum will stay open while we resolve them.