Gallery function on Portfolio pages missing?

Homepage Community Forums Legacy Theme Support Gallery function on Portfolio pages missing?

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #6757
    lindebjerg
    Customer

      Updated to WP 3.6 and Genesis 2.0, now I am missing the gallery function on all my portfolio pages?
      http://sardinien-tom.com/feste-feiern/ here just one of 21 gallerys where I miss the popup with, thumbs and gallery function.

      I have a site with a lot of portfolio pages as galeries, but after the update all thumbs links to the image only? and the gallery with thumbs are gone? I have not updated the Theme, only WP and Genesis?

      #6758
      Eric
      Customer

        Are you talking about prettyPhoto?

        It’s deactivated by default, to activate it you would just need to uncomment it and then comment out the code above it.

        Here is the code I’m referring to –

        /**
         * Adds Featured Image and links it to the Post
         *
         * This is the default post image which links to the post it represents when clicked.
         *
         * @author Wes Straham
         * @since 1.0.0
         */
        add_action( 'genesis_entry_header', 'adapt_portfolio_do_post_image' ); 
        function adapt_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 ); 
        }

        And then right under it the prettyPhoto code –

        /**
         * Opens Featured Images with prettyPhoto Slideshow
         *
         * This code makes the post image open up in the prettyPhoto slider.  To use the prettyPhoto feature, "uncomment" the code below and "comment out" the Featured Image code above this to prevent duplicate images from appearing.  
         *
         * @author Wes Straham
         * @since 1.0.0
         */
        /*add_action( 'genesis_entry_header', 'adapt_prettyPhoto_image' );
        function adapt_prettyPhoto_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">%s</a>', genesis_get_image( array( 'format' => 'url', 'size' => 'Portfolio Full', 'attr' => array( 'class' => 'alignnone post-image' ) ) ), the_title_attribute('echo=0'), $img );
        }
        */

        You would need to comment out the first block of code and then uncomment the second block of code (which is for the prettyPhoto)


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #6760
        lindebjerg
        Customer

          It work working 30 min ago, then I updated WordPress and Genesis and then it stop working?
          I have setup this site more than a year ago, don´t made some changes, but today I did not change anything on the Theme…

          #6761
          Eric
          Customer

            Oh, I thought you were talking about the prettyPhoto. So are you referring to the default WordPress Gallery (that comes with WordPress)? If so, then the theme shouldn’t affect that, so I’m not sure what happened.


            I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

            #6762
            lindebjerg
            Customer

              where must I look for the code above?
              in the page_portfolio.php I cannot find anything like it?

              #6763
              lindebjerg
              Customer

                I am talking about prettyPhoto on the Portfolio Pages here http://sardinien-tom.com/der-tom/

                #6766
                Eric
                Customer

                  I’m not sure what happened. It should work fine with the old version as the theme demo is still working and it’s currently the old version.

                  The new version works as well, but thats built for the HTML5 version of the theme…so don’t update the theme unless you plan on manually converting all of your changes.

                  The code I pasted was from the new version of the theme….you’re still using the old version so it wouldn’t apply to your theme. It should still work, but I don’t know. Maybe they changed something in Genesis perhaps?


                  I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                  #6795
                  lindebjerg
                  Customer

                    Hi Eric, as I can see the Theme Demo is already updated, the slider is 1140 pixel wide.
                    I will give it a try and update to version 1.3 too, must be better than start changing the old theme again I think:)

                    #6799
                    lindebjerg
                    Customer

                      okay, I am up running with the new theme version and the prettyPhoto plugin works fine again.

                      Sooner or later I had to make the update anyway, now a few style changes and I am back to the old style, but better;)

                      Thanks for now;)
                      Jesper

                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • The topic ‘Gallery function on Portfolio pages missing?’ is closed to new replies.