WordPress.org

Ready to get started?Download WordPress

Forums

Custom Admin Branding
WP Content Directory URL (1 post)

  1. webjunkie
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic