• Diego Ross

    (@jimmymansaray)


    Hi all,

    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.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • If I understand this correctly, you have a category named “asides” and when someone goes to that category, you want to hide the post intro’s title?

    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

    Thread Starter Diego Ross

    (@jimmymansaray)

    Hi @roughpixels. To clarify, (and if I’ve corrected used index.php for the main blog posts view with all categories shown), I’d like to hide the post titles there. This is to distinguish larger posts with titles from asides that have smaller bits of information but the reader doesn’t necessarily need to see the 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide post title from specific category on index.php only’ is closed to new replies.