• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Modify Crystal Theme Portfolio Page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Modify Crystal Theme Portfolio Page

This topic is: not resolved

Tagged: crystal, portfolio

  • This topic has 4 replies, 2 voices, and was last updated 11 years, 1 month ago by jalodico.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 27, 2014 at 12:45 pm #107021
    jalodico
    Member

    I am trying to modify the portfolio page on the Crystal theme so that it only shows a thumbnail. I'd like to remove the button underneath which says "View Project" along with the "..." underneath.

    I tried to find the code in the Functions.php file but couldn't seem to make it work.

    Here's a link to the page:
    http://create4corners.com/portfolio-2

    Thanks for any help,

    Jim

    http://create4corners.com/portfolio-2
    May 27, 2014 at 12:54 pm #107022
    Brad Dalton
    Participant

    Remove this from page_portfolio.php

    // Add "View project" link
    add_filter('the_excerpt', 'child_homepage_excerpt_filter');
    function child_homepage_excerpt_filter( $text ) {
        return sprintf( '%s<a href="&quot;%s&quot;">%s</a>', $text, get_permalink(), __('View Project', 'crystal') );
    }
    

    The CSS for the button starts on Line 393 of style.css but you don't really need to remove it.


    Tutorials for StudioPress Themes.

    May 27, 2014 at 3:09 pm #107049
    jalodico
    Member

    Thanks Brad,

    That makes sense but it didn't work. I tried removing the css via firebug but that didn't seem to do it either. I may not have had the right line though.

    May 28, 2014 at 2:02 am #107095
    Brad Dalton
    Participant

    Tested and works perfectly but only removes the button as you requested.

    To remove all the content excluding the images you have several choices.

    1. You can remove this code from your page portfolio file:

    // Add Featured Image for the Portfolio posts in this Page Template
    add_action('genesis_post_content', 'crystal_portfolio_do_post_image');
    function crystal_portfolio_do_post_image() {
        $img = genesis_get_image( array( 'format' =&gt; 'html', 'size' =&gt; 'Portfolio Thumbnail', 'attr' =&gt; array( 'class' =&gt; 'alignnone post-image' ) ) );
        printf( '<a href="&quot;&quot;%s&quot;&quot;" title="&quot;&quot;%s&quot;&quot;">%s</a>', get_permalink(), the_title_attribute('echo=0'), $img );
    }
    

    2. You could also simply not populate the more text field in the Genesis > Theme Settings > Portfolio Page Settings.

    3. Also configure the Portfolio Page Settings so no content is displayed.

    4. Or use this CSS to hide the button.

    #content .portfolio .more-link {
    display: none!important;
    }
    

    Tutorials for StudioPress Themes.

    May 28, 2014 at 7:43 am #107108
    jalodico
    Member

    Thanks. I was able to remove it using the CSS code above (the entire button). Remove the "Add featured image" took away the portfolio image which is what I need to keep.

    I tried changing the settings on the Genesis Portfolio Page but don't see an option for no content, only content or excerpt. Tried setting number of characters to 0 and that messed up the portfolio images.

    The images are still showing a "..." under them. How to I remove that?

    Thank you again for your help.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble