Support » Fixing WordPress » Remove "post date", "author" & "reply" from search results

Viewing 11 replies - 1 through 11 (of 11 total)
  • Sorry to bump, but anybody have an idea where I need to be looking for this?

    You might want to attach your URL to your website so someone can see what you problem is. It really does help in understand what someone is trying to say.



    What’s your website? I can show you a super simple way to do this if I can see your website. 🙂

    Thanks George,

    Here’s my site with a search loaded so you can see what I want to remove.



    P.S. The footer not loading problem has just appeared from nowhere, I’ve just made another thread about it, no idea why this has started happening as I didn’t touch a thing. About 2 hours ago it was fine, when I came back and loaded up my blog it had disappeared..



    Usually there’s ways to target search-results pages only, but whatever theme you’re using isn’t generating these handles 🙁

    If you really want to solve this, here’s what you can do:

    • navigate to the header.php file in the WordPress editor. You can find this under the Appearance tab in your admin area.
    • once you’re in this file, find the tag that looks like this: <body>
    • replace the <body> tag with the following code: <body <?php body_class(); ?>> exactly like that, with the question mark, two > brackets, everything.

    Let me know if you do this, then I can show you a super quick way to hide that content.

    Ahh that’s great!

    I’ve created the theme myself so that’s why there’s probably tons of important stuff missing 😉

    Ok I’ve changed the <body> tag

    Really appreciate this George, thanks man!



    Now, all you have to do is use the same process to navigate to the style.css file, and paste this code into the bottom of that file: .post .entry-meta {display:none;}

    There are technically better ways to do this within specific .php files, but this will work just as well and is easy to explain.

    Let me know if it works!


    You sir, are a legend! 😉

    It’s all gone apart from the “reply”. Is there a different tag to disable that or it is turned off in the admin section?



    Haha, I try.

    Sure thing. Just add this as well to the bottom of the good ol’ style.css file:

    .comments-link {display:none;}

    Let me know if it works!

    Booom! Worked liked a charm 😉

    Thanks once again my friend!

    One last thing if you don’t mind? How do I get rid of those margins at the top and bottom of the results that are breaking the bg image?

    I’m guessing it’s in the styling somewhere.

    Ewww just noticed something a bit weird while pasting that link above.. I’ve changed the form button on my search page ( from a standard button into an image using the following in searchform.php :

    <div id="searchsubmit-button"><input type="image" src="" width="59" height="30" border="0" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" /> </div>

    And it seems to have changed the search string from the original format – to this new one

    I know this isn’t anything to do with this thread but if anybody has any idea why that is happening i’d be grateful.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remove "post date", "author" & "reply" from search results’ is closed to new replies.