henryblowery Posted January 30, 2010 Share Posted January 30, 2010 I just setup a blog with wordpress, and the the theme I like doesn't display the authors name. I might have multiple authors at some point, so it's important that people know who's who. I put the following line in to display the authors name plus the time it was posted, but it pushes the first line of my post out. I've attached screen shots to explain. <div class="postmetadata">Posted by <?php the_author(', ') ?> | <?php the_time('F jS, Y') ?></div> It looks terrible. Is there anything I can do to prevent that from happening? Thanks! Gray [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/ Share on other sites More sharing options...
The Little Guy Posted January 30, 2010 Share Posted January 30, 2010 try this: <div class="postmetadata" style="maring-bottom:50px;">Posted by <?php the_author(', ') ?> | <?php the_time('F jS, Y') ?></div> Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004393 Share on other sites More sharing options...
henryblowery Posted January 30, 2010 Author Share Posted January 30, 2010 Thanks for the reply! Just tried it, and I get the same result Gray Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004395 Share on other sites More sharing options...
The Little Guy Posted January 30, 2010 Share Posted January 30, 2010 OK, instead of using: margin-bottom:50px; try this: float:left;clear:both; Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004399 Share on other sites More sharing options...
henryblowery Posted January 30, 2010 Author Share Posted January 30, 2010 No change... Do you think it's a problem with that one line of code? Gray Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004405 Share on other sites More sharing options...
The Little Guy Posted January 30, 2010 Share Posted January 30, 2010 this is either a html or css problem, I most likely believe that it is CSS... Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004410 Share on other sites More sharing options...
henryblowery Posted January 30, 2010 Author Share Posted January 30, 2010 I realize this is a php forum, but do you have any ideas on how to find the problem? Gray Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004412 Share on other sites More sharing options...
The Little Guy Posted January 30, 2010 Share Posted January 30, 2010 I am not familiar wordpress, so all I can say, is mess around with the CSS some. What does the html for the following block look like (the content portion)? Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004418 Share on other sites More sharing options...
henryblowery Posted January 31, 2010 Author Share Posted January 31, 2010 Ok, well I guess I'll see what I can do with the CSS. Here's the block of code for both the title and content section. <div class="title"> <div class="thetitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></div> <div class="under">stored in: <?php the_category(', ') ?></div> <div class="postmetadata" style="float:left;clear:both;">Posted by <?php the_author(', ') ?> | <?php the_time('F jS, Y') ?></div> </div> </div> <div class="entry"> <?php the_content() ?> <div class="postbottom"> <?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'commentslink', 'Comments Off'); ?> <a href="http://stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" class="stumbleupon"></a> <a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" class="digg"></a> <a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" class="delicious"></a> <a href="http://google.com/bookmarks/mark?op=edit&bkmk=<?php the_permalink() ?>&title=<?php the_title(); ?>" class="google"></a> </div> </div> Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004450 Share on other sites More sharing options...
The Little Guy Posted January 31, 2010 Share Posted January 31, 2010 It looks like you have an extra closing div... unless there is an opening div above this one: <div class="title"> Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004454 Share on other sites More sharing options...
henryblowery Posted January 31, 2010 Author Share Posted January 31, 2010 It's funny you mention that. I was wondering about that myself, but it seems to play an important roll in keeping my side bar on the side Gray Quote Link to comment https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004461 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.