Hi.
I have works in different portfolio categories and when the category is selected from the menu it shows the titles and ALL text content that is on the specific portfolio page (all text blocks are displayed). Is there any way to control how much text is displayed in portfolio category view (for example the first text block contents only)?
For now the category view does not contain any text because I had to add
.entry-content.excerpt {
display: none;
}
to general site CSS.
Example:
https://music.ee/portfolio-item-category/opera/
I would like to display some text below the portfolio item title but for now I have only 2 possibilities: all or none.
Hello @composerkaumann,
Thanks for writing in!
Please be advised that the custom CSS used affects the blog and other archive pages as well. If you do not want to display the excerpt in a portfolio category archive, using your browser’s Development Tool, you can check the live HTML code and find which CSS selector you need to use or what CSS code has been used to style the page.
Check out this video demonstration:
From your site, you will have this:
which means that you can use this custom CSS instead:
.tax-portfolio-category .entry-content.excerpt {
display: none;
}
This code will only hide the excerpt for your portfolio archives. In any other archives or blog index, the excerpts will display.
Meanwhile, if you want to control how many works in the excerpt, you can simply go to Cornerstone > Theme Options > Blog and set the “Excerpt Length”. If you also want to use a different excerpt texts, you can add edit each individual portfolio item and insert a custom excerpt manually. Manual Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Click here to learn more about manual excerpts.
Regards.
Thank you for your input.
I was hoping that maybe there is a chance to get only the 1st text field to display as an excerpt. That being impossible, I went for custom excerpt that you described at the bottom of your post.
Hey @composerkaumann,
You’re welcome and we’re glad that m colleague was able to help you with your issue. If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.
Thank you.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.