WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Post next to Time.. not underneath it. (15 posts)

  1. emmy
    Member
    Posted 8 years ago #

    How would I make it so my blog entries are set up like this:
    Time Entry here.

    instead of:
    Time

    Entry here.

    Currently, there is no br or p tags between the time and the entry, nor are there spans, yet the entry is still below the time.

    <div class="post" id="post-<?php the_ID(); ?>">
    <div class="storycontent"><div id="time"><?php the_time('g:iA') ?></div><?php the_content(__('(more...)')); ?>
    </div>

  2. pizdin_dim
    Member
    Posted 8 years ago #

    Try changing the "div" for the time to a "span", like this:


    <div class="post" id="post-<?php the_ID(); ?>">
    <div class="storycontent">
    <span id="time"><?php the_time('g:iA') ?></span><?php the_content(__('(more...)')); ?>
    </div>
    </div>

  3. emmy
    Member
    Posted 8 years ago #

    Thanks, but it doesn't work. :(

  4. moshu
    Member
    Posted 8 years ago #

    The content always starts with a <p> tag (automatically added by WP) so, unless you do some tweaking with the css file it will always be as it is now.

  5. emmy
    Member
    Posted 8 years ago #

    I'm not too great at CSS. How would you tweak the CSS to alter it?

  6. spencerp
    Member
    Posted 8 years ago #

    EDITED* Is this the one you're talking about right?
    http://e.lust-letters.org/

    A link to your blog would help a little bit.. =P =)

    spencerp

  7. moshu
    Member
    Posted 8 years ago #

    Hmmm...
    Quotes from her website:

    I've been webdesigning for about 6 years.

    I can do [...] whole layouts, just coding, or whatever else would be needed

    Well, CSS is needed :)

  8. spencerp
    Member
    Posted 8 years ago #

    Lmao..Yeah, that had me wondering..well, thinking..WTH!? Knows all that other stuff, but.. not CSS!!?? =P

    spencerp

  9. emmy
    Member
    Posted 8 years ago #

    I can do basic CSS. I'm not great with it, but I do know enough to get by usually. Notice how I said I'm not too great, not I don't know css. No need to be condensending. :) If you know how to fix it, then go ahead and tell me, if not, no need to comment. Simple as that.Moshu, as a mod I would've though you knew the rules on the message board. I did not include my whole website because it's still very scattered and I didn't intend for anyone to see it yet, so I simply posted the portion I thought was important and since it's a CSS thing anyways, why would the whole thing have been important? If somebody asked, i would have posted it.

    EDIT... would there be any way to change the actual files so the "default" is without a <p>? If so, what file would it be?

  10. spencerp
    Member
    Posted 8 years ago #

    Notice how I said I'm not too great, not I don't know css. No need to be condensending. :)

    Yeah, just seen that part now. =) I wasn't trying to sound mean about it though.. It was merely a little "picking", I suppose.. ;) =P

    If you know how to fix it, then go ahead and tell me, if not, no need to comment. Simple as that.

    You took the blog down now.. =( It will be easier on "us" to help you with it then.. hehe. =) ;)

    I did not include my whole website because it's still very scattered and I didn't intend for anyone to see it yet, so I simply posted the portion I thought was important and since it's a CSS thing anyways, why would the whole thing have been important?

    That's understandable.. =) I don't like people having my URL's to things when it's not done either.. =) It's just technically not going to be "full blown" public though, because not everyone reads through.. all the posts.. plus, being able to view the blog's css file, will be easier on the "helpers" here, locate the proper CSS codes to help ya with it.. ;) That's all..

    spencerp

  11. emmy
    Member
    Posted 8 years ago #

    Yeah... I put up a new index instead of the old one i had before with the php include because I've been getting ready to release my site and some friends have started linking me and I'm not finished witth it yet. You can still see it at http://e.lust-letters.org/wp.

  12. whooami
    Member
    Posted 8 years ago #

    if you want to have a set up like that, I see no simple way of accomplishing it other than using one of the standard 2 column <div> methods that are discussed all over the net..

    http://www.google.com/search?hl=en&lr=&q=2+columns&btnG=Search

    You will just be doing it on a smaller scale.

    Removing a <br /> or a few <p>'s isnt going to accomplish what you want because like water, text flows with the path of least resistance, unless you tell it not to, and in this case, you havent.

    In fact, a very good example of what you need to do is seen right on this forum. Go get Firefox, go google for the web developer extension and install that, and then take a long look at how these pages are set up.

  13. spencerp
    Member
    Posted 8 years ago #

    Just to add onto this, either *if* "we" could help you with this.. either the "time" or the "post" will be screwy, because of the size of the boxes for your content.

    If you have a lengthy post title..your "time" will pushed some where anyway.. because the post title has *only* so far to go, and things will break..sigh. =(

    I've already tinkered around with that type of layout/setup on the localhost.. and it wasn't pretty. =( If following that link that whooami gave above there, doesn't help in any way.. I suppose.. I could try and help more with this.. =)

    spencerp

  14. newflesh
    Member
    Posted 8 years ago #

    Just a thought... maybe it would be possible if you added float: left; to the "time" style?

  15. emmy
    Member
    Posted 8 years ago #

    Wow... thank you SO much newflesh! That worked! :) Thanks for the help everyone. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags