WordPress hide date, author etc.

9 replies
I want to hide all this crap from my posts, 'Posted on <span class="sdata" title="April 24, 2015"></span> by plumbob'.

I did get a plugin to hide dates. Not sure if it works right as I only have content in draft for so far. But it doesn't look like it. But I want all of that gone, without resorting to an HTML site layout.

Does anyone know how I can do this, without getting into editing my CSS as I know not a damn thing about that and it is all gibberish to me. Unfortunately. My coding stopped with basic HTML.

Anyone got any ideas, I would appreciate it.
#authoe #date #hide #wordpress
  • {{ DiscussionBoard.errors[10022689].message }}
    • Profile picture of the author FreedMarketing
      .sdata {
      display: none !important;
      }

      This should work. Just paste that into the bottom of your .css folder. May hide things you don't want to hide also depending on what else is under that class though.
      {{ DiscussionBoard.errors[10022967].message }}
  • Profile picture of the author emptee
    I know you said no css, but it really is the only way to do it (short of digging into PHP).

    FreedMarketing's response will remove the date, but (most likely) not the author..

    With what you've posted here, there isn't enough info to give you the right css yet..

    Can you post a little more around the date/author part in your code (eg. 1 or two tags further up the dom)? That should be sufficient to give you the css you need.

    Cheers,
    Michael
    {{ DiscussionBoard.errors[10022989].message }}
  • Profile picture of the author rirara
    You can hire someone to edit your theme - its really very simple job
    Signature
    {{ DiscussionBoard.errors[10024048].message }}
    • Profile picture of the author uktrader
      I wouldn't be afraid of editing the php files. You don't need any programming skills for that. In most themes the files to look at would be index.php, single.php, perhaps content.php. Just find the piece that says "Posted on <span... etc." and delete (just make sure you don't also delete any if's, else's and weird <? things and you'll be fine. Takes 2 minutes and it's a much better solution than css or anything else. Only downside is that when your theme gets updated, the files may be overwritten and you may need to do it again. When I do something like this, I note the parts which I have edited/deleted (and ideally row numbers) in a separate text file (you can name it like _notes.txt and keep it in the theme folder).

      Edit: If you have some very basic html skills, that will make this task even easier. If you know the open tag - close tag logic, that's all you need.
      {{ DiscussionBoard.errors[10024457].message }}
  • Profile picture of the author timpears
    I am gonna go with the plugin. I tried to edit the CSS as shown, but it didn't work and made a mess showing some weird code where the author and date used to be.

    Thanks everyone for their help though, it was a fun experience.
    Signature

    Tim Pears

    {{ DiscussionBoard.errors[10027570].message }}
  • Profile picture of the author timpears
    Oh well, now I really screwed it up. I got this showing up and I reinstalled the theme and overwrote all the files on my server via my FTP software. The reinstall failed, so I unzipped it and uploaded it via FTP.

    This is what shows. Posted on <span class="sdata" title="April 27, 2015"></span> by plumbob

    If anyone wants to help me with this, I don't have a lot of money, but I can pay you something. Someone said it was easy, but maybe I should just look for a new theme. It was hell finding this one as nothing I had would let me use my own header graphic.

    Damn, why do I get myself into this all the time? If it can be screwed up, I will find the way to screw it up. If it can't be screwed up, I will still find a way it seems.
    Signature

    Tim Pears

    {{ DiscussionBoard.errors[10027587].message }}
  • Profile picture of the author emptee
    Add this css any way you want (eg. css plugin, in the theme's style.css file, etc..)

    .postmeta {
    display: none;
    }
    Unless you're planning on using categories or tags (and you want them visible), that will do what you need.

    Cheers,
    Michael
    {{ DiscussionBoard.errors[10027669].message }}

Trending Topics