SKETCH Theme: Select which Portfolio projects appear on the front page

  • Unknown's avatar

    Hi,

    First things first, I am writing because I am having an issue with a WordPress.com hosted blog.

    I am using the Sketch theme, which is a portfolio enabled theme that displays a portfolio and if you’ve set up to do so a slider on a static front page.

    My issue is that I do not want to display all of my portfolio items/projects on the front page. I want to be able to selectively display them since my purpose in wanting to use portfolios was to be able to categorize and selectively display.

    Is there a way to restrict or specifically select which portfolio items/projects will appear on the front page or to even turn off the portfolio display while still maintaining the display of the slider?

    Thanks a bunch in advance.

    The blog I need help with is: (visible only to logged in users)

  • Is there a way to restrict or specifically select which portfolio items/projects will appear on the front page

    Try using the shortcode on your front page, instead of using the portfolio page template

    Portfolio Shortcode

    while still maintaining the display of the slider?

    The slider is tied to the user of the portfolio page template, which displays all your projects, so you can either choose the slider + all projects through the portfolio page template, or use the shortcode to select which projects you’d like to display on the homepage, but not both at the same time.

  • Unknown's avatar

    Thanks for your response. Sigh. I figured as much. Is there no way to get around this forced choice with CSS?

  • You could always try hiding certain projects on the homepage with CSS, depending on what tag/category/type of project you want to not have shown.

    Could you give me an example of what you’re trying to do specifically and I’ll see if I can help?

  • Unknown's avatar

    Thanks for writing back. What I wanted to do is have Projects with the tag Featured on the front page and maybe display only three of these.

    I planned to use the portfolio shortcode to display Projects on pages with other tags, so that, for example, I might have a Recipes page populated with Portfolio projects tagged as Recipe, each representing a different kind of recipe type (Breakfast, Desserts, Soups, etc.).

    The way Sketch currently works all and any of my Portfolio Projects would be displayed on the front page.

    I want to only be able to display Projects by a given tag/category on the front page.

    Thanks again.

  • What I wanted to do is have Projects with the tag Featured on the front page and maybe display only three of these.

    The best way to do this is by using the portfolio shortcode with the include_tag and showposts attributes – that’s exactly what it’s meant for.

    ‘include_tag’: display specific Project Tags. Defaults to all. (comma-separated list of Project Tag slugs)

    ‘showposts’: number of projects to display. Defaults to all. (number)

    Portfolio Shortcode

    Any custom CSS workaround will only be able to hide elements – not display specific ones, which will end up being tedious if you’re planning on regularly adding new projects which will need to be manually hidden individually with new custom CSS.

    I also just did a test, and hiding an individual post does not realign the grid, so you’ll see an empty square. For example, if you wanted to hide Copernicus on the homepage, you could add this:

    .post-92 {
      display: none;
    }

    But your grid would then look like this: https://cloudup.com/cEgyOOPULzo

    Obviously, not acceptable. :-)

    Feel free to experiment with the portfolio shortcode if you’d like to try that route, and let me know if you need any help with it.

  • The topic ‘SKETCH Theme: Select which Portfolio projects appear on the front page’ is closed to new replies.