Legacy Theme: PrettyPhoto/Lightbox doesn't load the images ( or gallery)

Homepage Community Forums Legacy Theme Support Legacy Theme: PrettyPhoto/Lightbox doesn't load the images ( or gallery)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6620
    ankinakatte
    Customer

      Hi,
      as per your tutorials i am able to add portfolio page with bunch of posts. Also, Portfolio page displays the posts with actual featured image attached to the each post (so far everything worked fine!). However, when you click on the featured image on portfolio page, prettyphoto/lightbox displays the featured images attached to the each post and not the image gallery attached to the each post.
      What am i doing wrong.
      I would like to my portfolio page exactly like the demo.
      No additional plugins are added.

      Following changes are made in page_portfolio.php

      /**
      * Adds Featured Image and links it to the Post
      *
      * @author Wes Straham
      * @since 1.0.0
      */
      /*
      add_action( ‘genesis_entry_header’, ‘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( ‘%s‘, get_permalink(), the_title_attribute(‘echo=0’), $img );
      }
      */

      /**
      * Opens Featured Images with prettyPhoto Slideshow
      *
      * @author Wes Straham
      * @since 1.0.0
      */
      add_action( ‘genesis_entry_header’, ‘legacy_prettyPhoto_image’ );
      function legacy_prettyPhoto_image() {
      $img = genesis_get_image( array( ‘format’ => ‘html’, ‘size’ => ‘portfolio-thumbnail’, ‘attr’ => array( ‘class’ => ‘alignnone post-image’ ) ) );
      printf( ‘%s‘, genesis_get_image( array( ‘format’ => ‘url’, ‘size’ => ‘Portfolio Full’, ‘attr’ => array( ‘class’ => ‘alignnone post-image’ ) ) ), the_title_attribute(‘echo=0’), $img );
      }

      #6627
      scooby
      Customer

        You have to uncomment the featured image code with prettyPhoto and then comment out the other featured image code – https://appfinite.com/topic/how-to-use-prettyphoto-plugin/

        That link is for the Epik theme, but the same applies for this one as well.

        #6676
        ankinakatte
        Customer

          Thanks for your help.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘Legacy Theme: PrettyPhoto/Lightbox doesn't load the images ( or gallery)’ is closed to new replies.