Magazine Pro Theme Portfolio

Community Forums Forums Design Tips and Tricks Magazine Pro Theme Portfolio

This topic is: not resolved

Tagged: 

This topic contains 9 replies, has 2 voices, and was last updated by  lindebjerg 8 months, 2 weeks ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #79433

    lindebjerg
    Participant
    Post count: 42

    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/portfolio

    It all looks fine, but if you use the sorting links, there are suddenly 2 thumbs?

    http://kletterhalle.weborbis.de/portfolio-categories/aktion-fotos#sort

    I 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.php

    Here the Portfolio archive template:

    <?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();
    http://kletterhalle.weborbis.de/portfolio
    #79434

    lindebjerg
    Participant
    Post count: 42

    I 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;)

    #79445

    braddalton
    Participant
    Post count: 9399

    Looks like you worked it out with the 3rd parameter. The best code to use to create a portfolio is in the Executive Pro theme.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #79465

    lindebjerg
    Participant
    Post count: 42

    okay, 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.

    #79641

    braddalton
    Participant
    Post count: 9399

    Looks ok to me but didn’t test on Mac.

    Isn’t the sort function included in the theme?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #79696

    lindebjerg
    Participant
    Post count: 42

    The 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?

    #79704

    braddalton
    Participant
    Post count: 9399

    Thanks brad@wpsites.net


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #79732

    lindebjerg
    Participant
    Post count: 42

    A message that you sent could not be delivered to one or more of
    its recipients. The following addresses failed:
    <brad@wpsites.net> ?

    #79741

    braddalton
    Participant
    Post count: 9399

    Just the email address.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #79756

    lindebjerg
    Participant
    Post count: 42

    First time it did not work, I have just send you the theme;)

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.