Community Forums › Forums › Archived Forums › Design Tips and Tricks › Modify Crystal Theme Portfolio Page
- This topic has 4 replies, 2 voices, and was last updated 11 years, 5 months ago by
jalodico.
-
AuthorPosts
-
May 27, 2014 at 12:45 pm #107021
jalodico
MemberI 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-2Thanks for any help,
Jim
http://create4corners.com/portfolio-2May 27, 2014 at 12:54 pm #107022Brad Dalton
ParticipantRemove 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=""%s"">%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.
May 27, 2014 at 3:09 pm #107049jalodico
MemberThanks 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 #107095Brad Dalton
ParticipantTested 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' => 'html', 'size' => 'Portfolio Thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) ); printf( '<a href="""%s""" title="""%s""">%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; }
May 28, 2014 at 7:43 am #107108jalodico
MemberThanks. 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.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.