Support » Fixing WordPress » Date Is Not Appearing Correctly??? Month Has Moved way down??

  • Resolved zzz7

    (@zzz7)


    Hello,
    Can anyone please let me know what am i supposed to do so that date appears properly.
    Here is the code from the single pose page
    <div class=”post-date”><!–<span><?php the_date(‘d’) ?></span><?php the_time(‘M’) ?>–><span><p><? print(Date(‘d’)); ?> </p>
    <? print(Date(‘M’)); ?></span></div>
    and here is the link. Thanks
    ZZZ7
    PS: Please see where March has moved now. It is half hidden behind ebay logo?

Viewing 6 replies - 1 through 6 (of 6 total)
  • stvwlf

    (@stvwlf)

    Hi

    Your problem is this

    <span><p><? print(Date('d')); ?> </p> <? print(Date('M')); ?></span>

    For one thing, you can’t have a span that goes from within a paragraph, past the end of that paragraph ( </p> ) and on into the next block of code. A span is an inline tag meaning it must be contained within a single block tag like <p> </p>

    The CSS is also part of your problem

    #content .post .post-title .post-date span {style.css (line 253)
    color:#E6E5E5;
    display:block;
    font-size:25px;
    line-height:34px;
    padding-top:1px;
    }

    Your font-size and line-height are too large for the space. That is why they are going behind the Ebay logo

    Thread Starter zzz7

    (@zzz7)

    Hey,
    Thanks for your reply. Can you please tell me what changes should i make so that it looks proper and it should not go behind ebay logo? I Just want it to appear in the small box properly
    Date
    Month
    That’s it. Please advise.
    Thanks
    ZZZ7

    stvwlf

    (@stvwlf)

    Hi

    I’m a little hesitant to answer because your code in that part of your site is messy. The results after changing may not look like what is intended. Make a copy of your file before changing this.

    Try this for starters. Replace what you have in your first post with this.

    <div class="post-date"><?php print(Date('M')); ?><br />
    <?php print(Date('d')); ?></div>

    Thread Starter zzz7

    (@zzz7)

    Hi,
    It did work. Thank You So Much.

    Can You please tell me one more thing. Ny Browsers do not refresh my WP Sites if i do any changes. I have to clear private date, cookies and everything before it shows the changes.Do I need to change some settings. If yes can you please advise me the steps.
    Rest of the sites are fine Except WP.
    Do you by chance know why? Thanks
    Appreciare it.
    ZZZ7

    stvwlf

    (@stvwlf)

    Hi

    I don’t have an answer for that.

    In my case I use Firefox on WinXP. I can do a <CTRL> + <SHIFT> + R which does a server refresh – forces a download of all files from the server. I do have a button on my toolbar to clear cache. which is a lot faster than going into the menu settings. I have to clear cache once in a while to clear out things like stylesheets and javascript external files. Usually doing a simple refresh <CTRL> + R one or two times is enough though. Cookies really shouldn’t be affecting the results, on most sites, most of the time.

    Sorry I can’t be more helpful on that. I’m glad the code I suggested helped you.

    Thread Starter zzz7

    (@zzz7)

    Thank You!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Date Is Not Appearing Correctly??? Month Has Moved way down??’ is closed to new replies.