I use a simple theme called Simppeli. There are no post formats at all, but I’m trying to build a makeshift ‘aside’ without actually making a whole new post format, which is overkill in this case.
Basically, I want to hide the post title on index.php, nowhere else, when the selected category is Aside. I still want a title in single.php and on the archive, as well as RSS.
Can anyone point me in the right direction? Also, I have a child theme installed. So would I add this to functions.php or would it be CSS? Beginner here.
Thanks.
]]>If so and based on your website, this little CSS snippet should work:
.category-asides .entry-title {
display: none;
}
The class category-asides I got from the body tag in your website, and then the class for your post titles is entry-title
]]>However, when the reader clicks for the permalink/single post view, the title shows.
I tried to add this CSS snippet to my child theme (by using customizer > edit CSS, but it doesn’t seem to work.
]]>