Community Forums › Forums › Archived Forums › Design Tips and Tricks › Magazine Pro Theme Portfolio
Tagged: portfolio
- This topic has 9 replies, 2 voices, and was last updated 10 years, 11 months ago by lindebjerg.
-
AuthorPosts
-
December 16, 2013 at 3:58 am #79433lindebjergMember
I have made a Portfolio Page in Magazine Pro, here:
Please use this link to bypass the "coming soon" plugin: http://kletterhalle.weborbis.de/test
then go to Portfolio Page: http://kletterhalle.weborbis.de/portfolioIt all looks fine, but if you use the sorting links, there are suddenly 2 thumbs?
http://kletterhalle.weborbis.de/portfolio-categories/aktion-fotos#sortI have made the portfolio page by copy/paste from another Theme, I cannot make it from zero myself.
So I think I have to Remove the post image, but how?
I have 4 Templates for the Portfolio section: single-portfolio.php, archive-portfolio.php, taxonomy-portfolio_cat.php and taxonomy-portfolio_tag.phpHere the Portfolio archive template:
http://kletterhalle.weborbis.de/portfolio<?php /** * The custom portfolio post type archive template */ // Force full width content layout add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); // -----------------------Breaks the posts into 3 columns // @link http://www.billerickson.net/code/grid-loop-using-post-class add_filter( 'post_class', 'be_archive_post_class' ); function be_archive_post_class( $classes ) { $classes[] = 'one-third'; global $wp_query; if( 0 == $wp_query->current_post || 0 == $wp_query->current_post % 3 ) $classes[] = 'first'; return $classes; } // Remove the post title remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); // Remove the post info function remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); // Remove the post image remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); // Remove and replace the post content remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); add_action( 'genesis_entry_header', 'child_do_portfolio_content' ); function child_do_portfolio_content() { echo '<div class="portfolio-content">'; echo '<a href="' . get_permalink() .'" title="' . the_title_attribute( 'echo=0' ) . '" class="portfolio-hover">'; echo the_title( '<h2 class="entry-title" itemprop="headline">', '</h2>' ); echo '</a>'; if ( has_post_thumbnail() ){ echo get_the_post_thumbnail($thumbnail->ID, 'portfolio'); } // if echo '</div>'; // .portfolio-content } // function // Remove the post meta and add custom taxonomy remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); add_action( 'genesis_entry_footer', 'child_portfolio_do_post_meta' ); function child_portfolio_do_post_meta() { if ( is_post_type_archive( 'portfolio' ) OR is_tax( 'portfolio_cat' ) OR is_tax( 'portfolio_tag' ) ) { echo '<footer class="entry-footer">'; echo get_the_term_list( $post->ID, 'portfolio_cat', '<div class="entry-categories">', '', '</div>' ); echo '</footer>'; } // if } // function genesis();
December 16, 2013 at 4:12 am #79434lindebjergMemberI have found the mistake myself!
I just have to write here, then I mostly find the mistake in a minute;)// Remove the post image remove_action( 'genesis_entry_content', 'genesis_do_post_image' );
In taxonomy-portfolio_cat.php and taxonomy-portfolio_tag.php I changed it to
// Remove the post image remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
and it rocks;)
December 16, 2013 at 7:10 am #79445Brad DaltonParticipantLooks like you worked it out with the 3rd parameter. The best code to use to create a portfolio is in the Executive Pro theme.
December 16, 2013 at 8:24 am #79465lindebjergMemberokay, I have used some code from this theme: http://demo.thestizmedia.com/latent/
and the “Custom Post Type – Portfolio” Plugin. I like the sorting function and have no idea have to code it myself;)I have just setup 5 Portfolio articles to test responsive and float. The Portfolio seems to work fine, or?
I have another problem, sometimes by loading the site, text, or titles scale down.
First they are big then they get he right size?Have you seen this before? or on my site now?
I have only this problem in Chrome on Mac, no problems in Safari.December 16, 2013 at 9:23 pm #79641Brad DaltonParticipantLooks ok to me but didn't test on Mac.
Isn't the sort function included in the theme?
December 17, 2013 at 2:02 am #79696lindebjergMemberThe sort function was included in the Latent Theme.
I have just taken all about the Portfolio and places it into the Magazine Pro Theme.I mostly only make css changes. But I hope this is a solid way to get the Portfolio with sorting into Genesis. I can send you a copy of "my Theme" if you want to have a look inside?
December 17, 2013 at 3:39 am #79704Brad DaltonParticipantDecember 17, 2013 at 5:36 am #79732lindebjergMemberA message that you sent could not be delivered to one or more of
its recipients. The following addresses failed:
<[email protected]> ?December 17, 2013 at 6:52 am #79741Brad DaltonParticipantDecember 17, 2013 at 8:24 am #79756lindebjergMemberFirst time it did not work, I have just send you the theme;)
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.