Portfolio Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #986
    pecographe
    Customer

      I am trying to use the Optimal Portfolio page. My problem is that when you click on the featured image thumbnail it does not link to the post that it is suppose to represent. What happens instead is that I get a large version of the featured image on a white background. How do I get my featured image thumbnail to link to the post it is suppose to represent ie. like the demo?
      I would really appreciate help with this issue before I pull out all my hair as a result of frustration!!!!

      #987
      Wes
      Moderator

        When you click on an image in the demo, the prettyPhoto slideshow is what comes up and displays all of the images. You can turn this off and have the images link to the post by doing the following –

        In your “page_portfolio.php” file in your theme, look for the area that looks like this (should be around line 50) –

        // Add Featured Image for the Portfolio posts in this Page Template
        add_action('genesis_before_post_content', 'legacy_portfolio_do_post_image');
        function legacy_portfolio_do_post_image() {
            $img = genesis_get_image( array( 'format' => 'html', 'size' => 'portfolio-thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) );
        	printf( '<a href="%s" rel="prettyPhoto[gallery1]" title="%s" rel="nofollow">%s</a>', genesis_get_image( array( 'format' => 'url', 'size' => 'Portfolio Full', 'attr' => array( 'class' => 'alignnone post-image' ) ) ), the_title_attribute('echo=0'), $img );
        }

        Then replace that code with the code below –

        // Add Featured Image for the Portfolio posts in this Page Template
        add_action('genesis_before_post_content', 'legacy_portfolio_do_post_image');
        function legacy_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" rel="nofollow">%s</a>', get_permalink(), the_title_attribute('echo=0'), $img );
        }
        #988
        pecographe
        Customer

          Brilliant, works perfectly now…. I’m so happy!!!!!

          #989
          Wes
          Moderator

            You’re Welcome!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Portfolio Page’ is closed to new replies.