[resolved] customizing theme (8 posts)

  1. airington
    Posted 6 years ago #

    Okay, so this is probably a pretty lame question...
    I added the 'next/previous' navigation to the bottom of my page, and I'd like to change the font color. I also have links on the top of my page that I don't want to change. When I change the navigation color in css, it changes all the link colors. Is there a way to just change the 'next/previous' font color? I know there is, but I don't know how.
    Here's my blog link if you need to see what I mean.


  2. John
    Posted 6 years ago #

    If you add a class to the 'next/previous' navigation you'll be able to be more specific with the CSS and change the color

  3. airington
    Posted 6 years ago #

    Thank you...I forgot to mention, I'm a novice. This is what I have:

    <div class="navigation">

    <div class="aligncenter"><?php posts_nav_link('','','« Previous Entries') ?></div>

    <div class="aligncenter"><?php posts_nav_link('','Next Entries »','') ?></div>


    What would I change "navigation" to? I know lame, but I've just started using wordpress and am surprised I even made it this far. :-)
    thanks. a

  4. airington
    Posted 6 years ago #


  5. John
    Posted 6 years ago #

    The CSS you should add to your style.css should look something like this:

    div.navigation div. aligncenter a { color: #9900FF; }

    This means that all links ( <a> ) that are inside a <div> with the class aligncenter, which in turn are inside another <div> with the class navigation should have the color #9900FF which is a shade of purple.

    If you'd like to learn more about XHTML and CSS then visit HTML Dog This is the site I think explains it the easiest yet teaches best practice. There are other good sites out there but I personally believe this to be the easiest for a novice.

  6. airington
    Posted 6 years ago #

    THANK YOU!!!!
    It worked.

  7. kichu.v
    Posted 6 years ago #

    How can i create a theme in the easiest way

  8. John
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic