WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Custom Admin Branding] WP Content Directory URL

[Plugin: Custom Admin Branding] WP Content Directory URL

  • Instead of using hard-coded references to the WP Content directory you should be using the WP_PLUGIN_URL constant.

    $options['login_logo'] = WP_PLUGIN_URL . '/custom-admin-branding/images/login-logo.png';
    $options['login_button_background'] = WP_PLUGIN_URL . '/custom-admin-branding/images/button-grad.png';
    $options['admin_header_logo'] = WP_PLUGIN_URL . '/custom-admin-branding/images/header-logo.png';
    $options['admin_footer_logo'] = WP_PLUGIN_URL . '/custom-admin-branding/images/footer-logo.png';

    <script type="text/javascript" src="<?php echo WP_PLUGIN_URL; ?>/custom-admin-branding/js/ColorPicker.js"></script>

    http://wordpress.org/extend/plugins/custom-admin-branding/

  • The topic ‘[Plugin: Custom Admin Branding] WP Content Directory URL’ is closed to new replies.