Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter eatonw

    (@eatonw)

    Here is an example of what you need to add to your style.css to make things looking nice.

    .tablenav {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 13px;
    }
    .tablenav-pages{
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 11px;
    }
    .tablenav-pages a {
    font-size: 11px;
    padding: 2px 5px 2px 3px; background: #fff; border-right: solid 1px #000;
    border-left: solid 1px #000;
    border-top: solid 1px #000;
    border-bottom: solid 1px #000;
    }
    
    .tablenav-pages a:visited {
    font-size: 11px;
    padding: 2px 5px 2px 3px; border-right: solid 1px #000;
    border-left: solid 1px #000;
    border-top: solid 1px #000;
    border-bottom: solid 1px #000;
    }
    .tablenav-pages a:hover {
    padding: 2px 5px 2px 3px; border-right: solid 1px #000; text-decoration: none;
    border-left: solid 1px #000;
    border-top: solid 1px #000;
    border-bottom: solid 1px #000;
    }
    .tablenav-pages span {
    padding: 2px 5px 2px 0px; color:#6666;
    /* I don't want spans to have border. Otherwise, you may delete the comment.
    border-right: solid 1px #000;
    border-left: solid 1px #000;
    border-top: solid 1px #000;
    border-bottom: solid 1px #000; */
    }
    .tablenav-pages .on { padding: 2px 5px 2px 3px; border-right: solid 1px #ccc; font-size: 11px; color:#000;
    border-left: solid 1px #000;
    border-top: solid 1px #000;
    border-bottom: solid 1px #000;
    }

    Thread Starter eatonw

    (@eatonw)

    MichaelH,

    I should apologize that I didn’t take your suggestion seriously just because Binni tried and failed.

    The problem is now resolved! It even had nothing to do with the themes; rather, it was due to an “evil” plugin: Adhesive. It was on the top of my plugin list, and everything went back normal after I simply deactivated it.

    I will tag this post as “resolved”.

    Thanks!

    Thread Starter eatonw

    (@eatonw)

    Well, in the admin page of comments, the navigation links are present.

    Thread Starter eatonw

    (@eatonw)

    I think Binni said that the problem persists even if he disable all plugins and use the default theme.

    And thanks Binni, I just noticed the navigation links don’t show up either in my wp-admin page of posts. This seems not related to themes or plugins.

    Thread Starter eatonw

    (@eatonw)

    It seems that the functions called in the following code in the original index.php of my theme(s) cannot acquire a correct initial value.
    <p><?php next_posts_link('&laquo; Previous Entries') ?>&nbsp;&nbsp;&nbsp;<?php previous_posts_link('Next Entries &raquo;') ?></p>

    As long as I used the nav link created by the newly added code to navigate to the second page or the earlier ones, the function previous_posts_link() started to work, in a wrong way, but “next entries” did show up. However, the function next_posts_link() has never worked.

    Thread Starter eatonw

    (@eatonw)

    <p>
    <div class="navigation">
    <div class="alignleft"><?php echo "<a href='?paged=".($paged-1)."' >&laquo; Previous Page</a>"; ?></div>
    <div class="alignright"><?php echo "<a href='?paged=".($paged+1)."' >Next Page &raquo;</a>"; ?></div>
    </div></p>
    Thread Starter eatonw

    (@eatonw)

    Sorry, something is wrong with the above code. They should be:

    <p>
    <div class=”navigation”>
    <div class=”alignleft”><?php echo “« Previous Page“; ?></div>
    <div class=”alignright”><?php echo “Next Page »“; ?></div>
    </div></p>

    Thread Starter eatonw

    (@eatonw)

    The problem is temporarily resolved!

    Zeronex,

    Thanks a lot! Although your code didn’t work, but it motivated me to check what was going on. I found the navigation of my blog pages uses “?paged=xxx? rather than “/page/xxx”. Hence I modified what you provided as follows.

    `<p>
    <div class=”navigation”>
    <div class=”alignleft”><?php echo “« Previous Page“; ?></div>
    <div class=”alignright”><?php echo “Next Page »“; ?></div>
    </div></p>`

    This now works. Although I haven’t figured out what’s wrong in the function next_posts-link() and previous_posts_link() yet, there is now a clue to locate the issue and fix it.

    Best regards!

    Thread Starter eatonw

    (@eatonw)

    Zeronex,

    Thanks! But this doesn’t work.

    Thread Starter eatonw

    (@eatonw)

    Any help?

    Thread Starter eatonw

    (@eatonw)

    I see. Hope someone would help solving this annoying problem.
    Best.

    Thread Starter eatonw

    (@eatonw)

    Hi MichaelH,

    Actually, I was wrong. My directory looks like web-root/my domain name/blog folder/wp-content.

    Is this a problem? But the issue wasn’t there before the upgrading.

    Thanks,
    Eaton

    Thread Starter eatonw

    (@eatonw)

    Btw, I just used the default permalink structure.

    Regards.

    Thread Starter eatonw

    (@eatonw)

    In my case, it’s installed in a folder in the webroot.

    Thread Starter eatonw

    (@eatonw)

    Host: Dreamhost
    OS: Debian Linux
    Mysql 5
    PHP 5

    I’m using WP 2.7.1 now but the problem arouse after I upgraded to 2.7 or 2.6.

    Thanks!

Viewing 15 replies - 1 through 15 (of 18 total)