• Could someone please help me? Blog at http://pcpfeiffer.com/columns/

    I am thrilled with this (not so) new theme I found. But it is kind of bland. I would like to add a picture and brief “about” and the simplist way I could do it is a post stickied to the top. But how can I get rid of the date and time and category without doing so for the entire blog. I was able to remove “written by” because it is always me anyway.

    I think the only way to do it is to edit the database. I don’t know how to do it although I am familiar with the basic mysql set-up.

    Or, an alternative would be to stick this info in the header; I couldn’t do that easily (dimensions etc.).

    Please, someone who can do anything? Thanks.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Appearance -> Editor

    Select Style.CSS on the right side.

    Add this at the bottom.

    .meta {
        display: none;
    }
    Thread Starter peterinco

    (@peterinco)

    Thanks. Yes, I played around with that. That will remove it on all posts. I think the blog will look weird with that. Actually, I’d also like to keep the line and shading of the meta area.

    I’ve been looking through the database trying to find the meta fields for the one post and delete them but am getting nowhere…

    Which post? If it’s the sticky post, you can use the class to target just that post with the above CSS.

    Your theme doesn’t support giving classes per post.

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    //Post content
    </article>

    The code above adds an ID and Class to each post. This is something you would have to add in to your theme. Your theme doesn’t have a DIV around the entire post so you would have to add it.

    When that is complete you can target a specific post and use display none.

    As for looking in the DB to remove it, that won’t get you anywhere.

    The best way is to do the above but with your theme it is going to require some work.

    Also it is a sticky post but the meta is outside the div. So you can’t target it. The HTML structure is going to have to change to support targeting this specific post through CSS.

    Thread Starter peterinco

    (@peterinco)

    Yes, it is the sticky post. Don’t follow how to do this to the theme but I’ll research and try and…

    Aaron obviously looked at this more closely than I did (yay :)) – my bad…sorry.

    Not sure if video responses are cool but here ya go.

    http://screencast.com/t/6vn4eRer

    Thread Starter peterinco

    (@peterinco)

    Wow. I mean wow. Thank you Aaron for creating a narrated video with the solution. I hope someone is paying you or you will soon create a business around doing this. What a set-up you have to be able to do this!

    No, I didn’t get it. But I’ve been doing this for around ten years and feel confident that if I watch it a hundred more times I’ll pick it up.

    And it seems like you were using my real site files? That I don’t get. Also, I didn’t quite follow what file you were editing.

    My response was going to be let me see if others have suggestions… Another might have been how can I tell good advice from bad advice here? (FYI, I have seen others advise to go into the database–I think for this issue or something very similar.) But you did it, and showed me, and it works.

    Finally, I’ll add, yes, I have had WordPress blogs for a while. The newer releases are huge improvements.

    Video responses are cool.

    It’s called Firebug, an extension to Firefox.

    You can only view but can also manipulate CSS in real time, nothing saves though. Just a cool developer tool that helps diagnosis website issues.

    Thread Starter peterinco

    (@peterinco)

    OK, I’m going to be greedy. Aaron, if you can do the above–I searched the forum, this and similar issues have been asked but to my knowledge never answered–this one is going to be really easy.

    I like this theme but the posts need images in my view. When inserting an image the text doesn’t wrap around it properly–there is no spacing and it is nearly impossible to try and add spaces manually. (The appearance of my previous theme was lost.) Is this a theme-based thing or is there a more general fix? Is there a way to control or set it? Even a plug-in?

    Thank you.

    Well here is an easier fix.

    Appearance -> Editor
    Select index.php

    Find

    <div class="meta group">
    <div class="signature">
        <p>Written by <?php the_author() ?> <span class="edit"><?php edit_post_link('Edit'); ?></span></p>
        <p><?php the_time('F jS, Y'); ?> <?php _e("at"); ?> <?php the_time('g:i a'); ?></p>
    </div>
    <div class="tags">
        <p>Posted in <?php the_category(',') ?></p>
        <?php if ( the_tags('<p>Tagged with ', ', ', '</p>') ) ?>
    </div>
    </div>

    Change
    <div class="meta group">

    to
    <div id="post-<?php the_ID(); ?>" class="meta group">

    Post back here when that is done and I can tell you how to finish the rest.

    Thread Starter peterinco

    (@peterinco)

    That’s easy. Done. That alone didn’t seem to change the appearance.

    An oddity here is that with no title and I removed “without comments” thing that this theme creates, you can’t get to this post unless you have admin privileges… it is “post=2446.” Maybe you can see it through another way.

    That was only step 1. Now that you did that add

    #post-2446.meta {
        display: none;
    }

    in style.css and you’re done.

    Thread Starter peterinco

    (@peterinco)

    Well Aaron, take a look at your handywork. Thanks a million. Absolutely above and beyond.

    I know I’m not the only one, users can be really anal about little things on their front page.

    I will still thoroughly review your video to see if I can learn it that way too. Hope it stays up for a few days.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘How to Remove Meta Data on One Post’ is closed to new replies.