CSS - Portfolio / Blog

Hi,

I am using a bunch of CSS codes (provided by “you”) to remove feature image, meta data and some other stuff from my porfolio pages.
I don’t know why but apparently is also affecting the blog posts.

How can I control the CSS to affect only one (blog or portfolio)?
Also, if I use Cornerstone in the blog posts and not wordpress, that means that there will be no excerpt text to be displayed on the blog posts thumbnail?

I am sorry, but I am a bit confused.

Cheers

Hi,

For blog page, you can put prefix .blog and for portfolio page you can put prefix .page-template-template-layout-portfolio

For example, if you want to remove the featured image. The code will be

/* remove feature image on blog page */
.blog .entry-featured {
    display:none;
}

/* remove feature image on portfolio index page */
..page-template-template-layout-portfolio .entry-featured {
    display:none;
}

If you want to remove it on single post or single portfolio page, you can use .single-post and .single-x-portfolio

/* remove feature image on single post page */
.single-post .entry-featured {
    display:none;
}

/* remove feature image on portfolio single page */
.single-x-portfolio .entry-featured {
    display:none;
}

Hope this helps

Yes, it helps.

Thank you.

You’re welcome! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.