Reply To: Getting portfolio page to show images only

Homepage Community Forums Epik Theme Support Getting portfolio page to show images only Reply To: Getting portfolio page to show images only

#2885
Wes
Moderator

    There are a couple ways to do it. One way is to just add display: none; to the title and content (for the portfolio content only).

    The other way is to go into your portfolio page and change this –

    // Move title below post image
    remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    add_action( 'genesis_post_content', 'genesis_do_post_title', 9 );

    to this –

    // Move title below post image
    remove_action( 'genesis_post_title', 'genesis_do_post_title' );

    By removing – “add_action( ‘genesis_post_content’, ‘genesis_do_post_title’, 9 );” you are removing the title.

    Then for the content, look for and remove this –

    // Add Content for the Portfolio posts in this Page Template
    add_action( 'genesis_post_content', 'epik_portfolio_do_post_content' );
    function epik_portfolio_do_post_content() {
    if ( genesis_get_option( 'epik_portfolio_content' ) == 'excerpts' ) {
    the_excerpt();
    } else {
    if ( genesis_get_option( 'epik_portfolio_content_archive_limit' ) )
    the_content_limit( (int)genesis_get_option( 'epik_portfolio_content_archive_limit' ), __( 'Read More', 'epik' ) );
    else
    the_content(__( 'Read More', 'epik' ));
    }
    }

    You can also just comment these out if you don’t want to remove them completely. To comment something out just add this in the beginning of the code /* ….and add this to the end */ …Example – /* Code */