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?
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.
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.
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?
Hi there!
Regarding the given code snippet, please try moving the dot to be at the front of the class name instead. For example:
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
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.
Thank you very much! Curious why it is working with Additional CSS but not in the Child Theme CSS.
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.
Thank you very much!
You're very welcome!