WordPress.org

Ready to get started?Download WordPress

Forums

Changing Index Page Colors (10 posts)

  1. iKwak
    Member
    Posted 10 years ago #

    In the CSS page, which part do I edit to change the background colors?
    I have two shades of color currently, white on the center and dark green on the two left and right columns. Would like to know how to change colors. TIA.

  2. NuclearMoose
    Member
    Posted 10 years ago #

    You can use the BODY selector:
    <pre>
    body {background: #fff;}
    </pre>
    This would give you white on your whole page. Then in your #menu-left and #menu-right selectors you could add the same line as above, but change the colour codes to whatever you like.
    <pre>
    #menu-left {background: #039;}
    #menu-right {background: #c1f;}
    </pre>
    Could you post a link to your site?
    Craig.

  3. iKwak
    Member
    Posted 10 years ago #

    <img src="http://home.earthlink.net/~cpinteract/smilies/biggrin.gif"> Cal Poly Online

  4. BAKSHI
    Member
    Posted 10 years ago #

    lol
    Warning: Invalid argument supplied for foreach() in /home/kkwak/public_html/calpolyonline/wp-links/links.weblogs.com.php on line 46
    everything else looks good.

  5. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    With 1.0 you shouldn't be including links.websogs.com.php anymore, it's now wp-includes/links-update-xml.php

  6. iKwak
    Member
    Posted 10 years ago #

    Yeah sucks. I was working on the template and the layout.css when something screwed up.
    I went back to version 072.

  7. Mark (podz)
    Support Maven
    Posted 10 years ago #

    I don't know if this is useful here, but I've just modified the CSS for my page for links display in the main body.
    The links are now a shade of red, and they go orange when hovered.
    To use it, you'll need to use
    Just drop this into the wp-layout.css anywhere.
    a.main:link {
    color: #cc0000;
    outline: none;
    text-decoration: none;
    }
    a.main:visited {
    color: #cc0000;
    }
    a.main:hover {
    color: #FF3300;
    text-decoration: none;
    }
    a.main:active {
    color: #FF9933;
    }
    There's probably a more elegant solution, but this does for me :)

  8. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Okay .. since doing this, I've been manually putting in 'class="main" ' when adding links, and that got boring. So I had a look, and it was easy to get the program to do it for me.
    In the file quicktags.js, the second function from the bottom should be amended to read;
    if (!edCheckOpenTags(i)) {
    var URL = prompt('Enter the URL' ,defaultValue);
    if (URL) {
    edButtons[i].tagStart = '';
    edInsertTag(myField, i);
    }
    That sorts links from the main login panel.
    In the file bookmarklet.php, the line above /* /big funky fixes */ should read;
    $content = '
    '.$popuptitle.''."\n$text";
    That sorts links when using the 'Press-it' function.
    They aren't big clever things, but they make my blogging better :)

  9. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Ack.
    Try #2
    Quicktags.js
    Second function from the bottom is
    function edInsertLink(myField, i, defaultValue)
    Put 'class="main" ' between the a and the href of that statement.
    Bookmarklet.php
    In the line of text which is above "big funky fixes " (it's about halfway down), do exactly the same thing.
    Of course, you could put any declared class in there for your links.

  10. ebonyvenuss
    Member
    Posted 9 years ago #

    hello
    Can someone tell what did I do wrong with this. I would like for the background color to be black but yet it's white. What did i do wrong.

    http://primadawna.com/myworld/index.php

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.