Okay
  Public Ticket #1187305
Hide post information
Closed

Comments

  •  2
    Aljoscha started the conversation

    I want to hide post information such as "author", "Comments" ("no comments"), and categories in the post and blog page.  Uusaly it works to add following lines to the .css of the child-theme:

    meta-author. {
    display: none !important;
    }

    Why is this not working with finnik? What do I have to do in my child theme to hide those information in the frontend?

  •  296
    Paul replied

    Hi there!

    Regarding the given code snippet, please try moving the dot to be at the front of the class name instead. For example:

    .meta-author,
    .meta-comments,
    .meta-categories,
    .meta-tags {
        display: none !important;
    }
    

    This custom CSS code will hide the author name, comment count, categories, and tags from the meta info of the blog posts.

    Hope this helps!

    Regards,
    Paul

  •   Aljoscha replied privately
  •  296
    Paul replied

    Thanks for the info. I went to "Appearance > Customize > Additional CSS" and applied the custom CSS code in there. Now the meta info have been hidden on the blog pages.

  •  2
    Aljoscha replied

    Thank you very much! Curious why it is working with Additional CSS but not in the Child Theme CSS. 

  •  296
    Paul replied

    As I checked the source code of your site, it seemed the "style.css" of your child theme was not loaded so the custom CSS you put there did not work.

    I just helped you modified the "functions.php" of your child theme a bit by changing from "get_template_directory_uri" to "get_stylesheet_directory_uri" and added "99" to the action call to make sure the script will be loaded as late as possible.

    Now the "style.css" of your child theme has been loaded properly.

  •  2
    Aljoscha replied

    Thank you very much!

  •  296
    Paul replied

    You're very welcome!