WordPress.org

Ready to get started?Download WordPress

Forums

Cross browser dashboard customization (7 posts)

  1. jimaek
    Member
    Posted 3 years ago #

    I have this code in my functions

    add_action('admin_head', 'my_custom_css');
    
    function my_custom_css() {
       echo '<style type="text/css">
             #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/logo.jpg) !important; }
           #wphead h1 a  {color:white;}
           #wphead {background: -moz-linear-gradient(center bottom , #464646, #464646) repeat scroll 0 0 transparent;}
           #user_info a:link, #user_info a:visited, #footer a:link, #footer a:visited { color: white;  text-decoration: none;}
           #user_info p {color: #f1f1f1;}
           #footer {background: -moz-linear-gradient(center bottom , #464646, #464646) repeat scroll 0 0 transparent;}
           #footer-left {color:#e2e2e2;}
           </style>';
    }

    Everything is great on firefox but the background doesn't work on chrome. Can you help me?

  2. jimaek
    Member
    Posted 3 years ago #

    It doesnt work on IE either. I cant understand why, the code is a copy paste from the existing one, i changed only the colors.

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    when you view source in the browser..... how does the code look? Does the bg image resolve correctly?

  4. jimaek
    Member
    Posted 3 years ago #

    The image works without correctly, the problem is with the background color of the header and the footer.

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    your using moz-linear-gradient, which is browser specific to mozilla (firefox), you'd need a fallback for IE, and webkit if need be

    http://www.mindfly.com/blog/post/2010/02/26/Making-the-Grade-A-Primer-on-Linear-Gradients.aspx

  6. jimaek
    Member
    Posted 3 years ago #

    Thank you very much!! I fixed it
    Do you have any idea how to fix this too http://wordpress.org/support/topic/default-user-meta-information ?

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    I don't know anything for that one off-hand......

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.