WordPress.org

Ready to get started?Download WordPress

Forums

How to change the scollbar color in the theme template (8 posts)

  1. elyn
    Member
    Posted 9 years ago #

    Does anybody know how to change the color of scrollbar in the theme template? I know it's a very very very simple question to wordpress expert, however, it's a practical question, especially to someone like me…

    I've tried to add the following code in style.css of the theme, but failed N times...Anybody can help me out? You may leave you message here: http://www.elimmanna.net/wordpress/?cat=6

    Thanks!

    the code:
    body {SCROLLBAR-FACE-COLOR:#660099;
    SCROLLBAR-HIGHLIGHT-COLOR:#FFFFFF;
    SCROLLBAR-SHADOW-COLOR:#FFFFFF;
    SCROLLBAR-ARROW-COLOR:#FFFFFF;
    SCROLLBAR-BASE-COLOR:#FFFFFF;
    SCROLLBAR-DARK-SHADOW-COLOR:FFFFFF}

  2. elyn
    Member
    Posted 9 years ago #

    I've found the ways to solve the problem. You have to edit three files. Style.css and Index.php of the theme, and Index.php of the wordpress. But in index.php, you have to add [html][/html][body][/body] in source code. Between [body] and [/body], add the following
    <style>
    body {SCROLLBAR-FACE-COLOR:#FFFFFF;
    SCROLLBAR-HIGHLIGHT-COLOR:#FFFFFF;
    SCROLLBAR-SHADOW-COLOR:#FFFFFF;
    SCROLLBAR-ARROW-COLOR:#835A58;
    SCROLLBAR-BASE-COLOR:#835A58;
    SCROLLBAR-DARK-SHADOW-COLOR:FFFFFF}
    </style>

    That works! You may check the result here: http://www.elimmanna.net/wordpress/

    p.s. If you read Chinese, please check the answer here: http://www.elimmanna.net/wordpress/?p=13

  3. Jinsan
    Member
    Posted 9 years ago #

    I don't consider this a very important effect, or requirement it can look nice, but is it worth the trouble of hacking your core files? Theme mods should be left in themes, with core files left alone. Each to their own I guess :)

  4. jennmiller
    Member
    Posted 9 years ago #

    Also, I've not seen it work in any form when using FireFox, which is gaining more and more users.

  5. Jinsan
    Member
    Posted 9 years ago #

    yet 85% of the browsing world belongs to IE :(

  6. jennmiller
    Member
    Posted 9 years ago #

    Ah, but perhaps tomorrow it will be only 84% ;)

  7. Jinsan
    Member
    Posted 9 years ago #

    so you're that infamous IE user serial killer?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.