Archived

This topic is now archived and is closed to further replies.

  • 0

Blog sub-heading

Question

Posted · Report post

Under the title of my post I get a grey background line e.g. "On 15 June 2010, in General, by Duncan" I don't particularly want this because I don't have categories yet (just starting) and all the posts are by me. I'd prefer to have just the date and perhaps that at the end of the post rather than at the start. Can I change it and how?

Share this post


Link to post
Share on other sites

8 answers to this question

Posted · Report post

Well, no matter what your skill only the people who developed these themes and WordPress from scratch just know, the rest of us have to dig in there and figure it out, if you know what you're looking for and what to do with it when you find it that helps ;). But, WordPress is a great learning tool for CSS and XHTML in general. I certainly wouldn't discourage you from getting your hands dirty and learning, but I do strongly advise that you backup all your files and database. Then, the files you want to start playing with are; from your WordPress admin: Appearance > Editor > Stylesheet (style.css), Header (header.php) and Footer (footer.php) I strongly recommend doing some learning over at: http://www.w3schools.com/ and then checking your work with this tool: http://validator.w3.org/ The W3C (World Wide Web Consortium) is considering by most to be the foremost authority on web standards. Thanks, Bryan

Share this post


Link to post
Share on other sites

Posted · Report post

This is useful. Could you point me to exactly where in the code is the reference to: - the meta line at the head of each post with blogger name, date and category? - the stuff that appears in the footer under "other" Thanks! Duncan

Share this post


Link to post
Share on other sites

Posted · Report post

The meta bar itself (HTML and PHP) is in the _posts.php file. `

<?php _e('On',TDOMAIN);?> <?php the_time(get_option('date_format')); ?>, <?php _e('in',TDOMAIN);?> <?php the_category(', ') ?>, <?php _e('by',TDOMAIN);?> <?php the_author(); ?> <?php edit_post_link(__('(Edit Post)', TDOMAIN), ' ', ' ');?>
` Not sure what the "other" thing is you're referring to though

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks. I can see how to amend the metabar from the code. One last question, where do i find the _posts.php file?

Share this post


Link to post
Share on other sites

Posted · Report post

The easiest approach would be to simply hide the whole thing via CSS, by adding this to the Custom CSS section:

.metabar{display:none}

To remove only specific parts of it you'll need to hard code it. Before I provide that solution are you comfortable with that and you should also understand that this customization will be undone by any future upgrades and have to be repeated. Thanks, Bryan

Share this post


Link to post
Share on other sites

Posted · Report post

From your WordPress admin, navigate to: Appearance > Editor > _posts.php Thanks, Bryan

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks! Sorted.

Share this post


Link to post
Share on other sites

Posted · Report post

That worked right away - thanks! It would be great to learn how to do the hard code. (I am a learner here, but I learn fast.) I would like to play around with CSS. Is there somewhere I can see the codes that can be used, or is this the kind of knowledge that anybody who really knows what they are doing would just know?

Share this post


Link to post
Share on other sites