Register or log in:



Hot Tags

Blog Oh! Blog Forums » General Discussion

Most Recent Post is Pushed Down a Little

(13 posts)
  • Started 2 months ago by DebNCgal
  • Latest reply from planning4ever

Tags:


  1. DebNCgal
    Member

    Hello, Jai --

    I'm still tweaking the Rhea template. I've looked but can't locate the code that is causing the most recent post to be pushed down a little more than it should be. It looks to be about 22 pixels lower than the top of the widget that's located at the top of the left-hand sidebar. When a new post is added, the new post becomes positioned at the same, lower position.

    I looked at another site that uses the Rhea template, and it's not exhibiting the same issue. I also reloaded unedited versions of the index.php and the style.css files, but that didn't fix the position, either.

    Sorry for the trouble, but hopefully this is an easy fix.

    Thanks for your help.

    Deb

    Posted 2 months ago #
  2. Are you sure you are not using some plugin which might be taking up that space ?

    Posted 2 months ago #
  3. linda
    Member

    I've got the same problem at http://www.triumphrally.org

    I've located where the extra padding is coming from, index.php is inserting a 20px padding for entries. It's only affecting the most recent post.

    This is the code thats doing it: <?php get_header(); ?>
    <div id="lsidebar"><?php include (TEMPLATEPATH . '/lsidebar.php'); ?></div>
    <div class="entry">
    <div align="center" style="padding:10px 10px 10px 10px;">
    </div>

    see the padding?
    Help Jai!!

    Posted 2 months ago #
  4. DebNCgal
    Member

    Hi, Jai --

    The spacing issue with the most recent post still exists even with the few plugins I have deactivated. Is Linda onto something with her observation about the padding?

    Can you help? Please?! Thanks!

    Deb

    Posted 2 months ago #
  5. linda
    Member

    if you go to the index.php and change the line that says <div align="center" style="padding:10px 10px 10px 10px;">

    to say <div align="center" style="padding:0px 10px 0px 10px;">,

    this takes away the top and bottom padding and makes it look more like the rhea demo page, I did it for my page, have a look: http://www.triumphrally.org

    Don't remove the div align center, that messes up the whole page!!!

    Posted 1 month ago #
  6. DebNCgal
    Member

    Linda! Bless you, bless you! That indeed solved the problem. I'd looked at that section of code earlier -- but I hadn't been thinking that the 10 pixels referenced there (for the top AND bottom) was creating the 20-pixel space problem. I'm very rusty with my CSS, so it didn't jump out at me. Thanks so much for posting the solution, which is bound to help other folks, too.

    I've also been encountering some other issues that have made it difficult to determine the cause of various problems. This is my first time to use WordPress, and right now I'm creating my blog/website (using Jai's great Rhea template) on a local server on my Mac, working in Safari. After experiencing a number of quirky things, I finally found references online where folks have been having problems losing formatting in WordPress' Visual Editor when using Safari. So I moved over to Firefox, where the Visual Editor is working just great. However, some changes are taking "forever" to take effect (which was also happening in Safari). I'm not sure whether this is a browser issue, or is the result of working on a local server. Nevertheless, it's driving me crazy at times, because some changes are taking a while to show up. So at times I'm wondering if I've actually made the correct change, as I wait for the change to hopefully take effect. Have you (or anyone else reading this post) experienced this type of sluggishness with changes taking effect in WordPress?

    Anyway, thanks again for your help with the spacing issue -- much appreciated.

    Posted 1 month ago #
  7. linda
    Member

    hmm, I haven't encountered that? Although - how do you refresh the page to view a change? It sounds like the old file is being stored in your browser memory so you're not viewing the latest one. Get firefox web developer toolbar for easy clearing of cookies etc. https://addons.mozilla.org/en-US/firefox/addon/60

    I usually just press the "F5" button to see a change, that forces the page to reload.

    But I'm no expert. Also I'm using Firefox on Windows Server 2003.

    Posted 1 month ago #
  8. DebNCgal
    Member

    Yes, I do have the web developer toolkit in Firefox. From the web developer toolbar, I've been going to Miscellaneous > Clear Private Data > All Private Data..., and I check all the options (except for Saved Passwords) -- and then I click on the page reload button. I found that if I only went to Miscellaneous > Clear Private Data > Cache before clicking the page reload button, that wouldn't always make the changes show up. I also found that I had to make sure the "Cookies" option was checked in the All Private Data window, as that has made a difference.

    I've even temporarily disabled the WP-CACHE plugin. I've assumed this was a good plug-in to use, but for now I've got it disabled. I don't really know if it's an issue -- I've just been trying to pinpoint the problem with the delayed changes.

    Do you use the WP-CACHE plugin, or something similar?

    Thanks again, Linda.

    Posted 1 month ago #
  9. planning4ever
    Member

    Okay, I'm having the same problem, but only in Explorer 6.0 (which most of my users use). I didn't even have:
    <div align="center" style="padding:10px 10px 10px 10px;">
    </div>
    located in my index.php page. So I added it back in. No change. Then I changed it to what Linda suggested:

    <div align="center" style="padding:0px 10px 0px 10px;">,

    No change. Any ideas? Check it out on exp 6.0: http://planningforever.com/blog

    Posted 1 month ago #
  10. DebNCgal
    Member

    Hello, planning4ever. In the original index.php file, four lines down from the top is the code:

    <div align="center" style="padding:10px;">

    Changing that, as Linda indicated, fixed my issue. Plus, since I wanted my title to be left-justified, I also changed "center" to "left". So my Line 4 in index.php now looks like this:

    <div align="left" style="padding:0px 10px 0px 10px;">

    I don't have IE 6, but I did test this in IE 5, and it looks right.

    I hope this helps some.

    Posted 1 month ago #
  11. planning4ever
    Member

    Are you guys looking at a different download? This is what I have from the original index.php that I downloaded in Nov 07. Here are the first few lines:

    <?php get_header(); ?>
    <div id="lsidebar"><?php include (TEMPLATEPATH . '/lsidebar.php'); ?></div>
    <div class="entry">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    I don't even have the div align, but added it back in. This is weird.

    Posted 1 month ago #
  12. DebNCgal
    Member

    Hmmm, I just re-opened a fresh index.php from the original Zip file dated 12-23-07, and that line is there. Maybe you accidentally deleted the line? I say that because there's also some Javascript after that line. If you deleted the Javascript, you may have accidentally grabbed that line.

    Hope it's working correctly for you now.

    Posted 1 month ago #
  13. planning4ever
    Member

    I did delete the javascript because of that ad in there. It's working in IE7 but not IE6. Oh well. Thanks for your help!

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.

{ A Forum of Blog Oh! Blog }