WordPress.org

Forums

[resolved] Removing Metadata (6 posts)

  1. mightyeskimo
    Member
    Posted 3 years ago #

    Hello all! I'm a beginner so please excuse another post asking for help to remove all metadata from my posts. I have done some research as well as create a child theme to make sure this is done properly. Here is the code from my CSS file:

    /*
    Theme Name: MT Dark Child Theme
    Description: Child theme for MT Dark.
    Author: admin
    Template: mt-dark

    (optional values you can add: Theme URI, Author URI, Version)
    */

    @import url("../mt-dark/style.css");
    .entry-meta { display: none; }

    Have I done this correctly? When I refresh my page I still have metadata under the posts. I have also tried creating a test post and the metadata is there as well.

    Thanks very much for any help.

  2. mightyeskimo
    Member
    Posted 3 years ago #

    Oops. Here is my code using the backticks. Also, here is a link to my site. http://diamanterecording.com/

    /*
    Theme Name:     MT Dark Child Theme
    Description:    Child theme for MT Dark.
    Author:         admin
    Template:       mt-dark
    
    (optional values you can add: Theme URI, Author URI, Version)
    */
    
    @import url("../mt-dark/style.css");
    .entry-meta { display: none; }
  3. alchymyth
    Forum Moderator
    Posted 3 years ago #

    use a tool such as Firebug http://getfirebug.com/ to find the real css class for the metadata (which depends on the theme);

    for the front page at least, for instance, this is .postmeta

  4. mightyeskimo
    Member
    Posted 3 years ago #

    Thanks alchymyth. I have added Firebug. However I have no idea what I'm doing. Can you offer some simple step by step instructions?

  5. mightyeskimo
    Member
    Posted 3 years ago #

    This is the code I see in the Firebug window when I'm on the Home page.

    @import "../mt-dark/style.css";
    .entry-meta {
        display: none;
    }

    Shouldn't this remove the metadata?

  6. mightyeskimo
    Member
    Posted 3 years ago #

    Ok. I think I got it. I just had to re read your answer a couple times to get it. The code is now:

    @import "../mt-dark/style.css";
    .postmeta {
        display: none;
    }

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic