PrettyPhoto Stop Working, without updated.

Homepage Community Forums Ally Theme Support PrettyPhoto Stop Working, without updated.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #6878
    jasmendoza
    Customer

      I update wordpress a week ago, but it was working fine, I tested before and Now I was trying to create a gallery and it does work, I don’t know if I did something wrong but I am not pretty sure of that, I read someone that pretty photo stopped working because he updated genesis and wordpress but I didn’t.

      This is the gallery.

      http://casaazuldetepoztlan.com.mx/instalaciones/habitaciones/

      And Please, try to be specific if I have to add some code, because something it hard to understand where the file that I have to change is.

      Thanks you for your help, and hope you understand that this is very urgent, working with a death line.

      #6889
      Eric
      Customer

        Take a look here – https://appfinite.com/topic/gallery-function-on-portfolio-pages-missing/#post-6758 and there are many other posts in the forums that already cover this. You should be able to search up at the top of the main forum page.


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

        #6897
        jasmendoza
        Customer

          Eric,

          That is why I wrote my question here, and is because I could get an answer, in the link you are put it doesn’t say which file I should change in my theme, even when I suppose that the change it has to be in the page_portfolio.php the code you are writing it does look like the code I have in my php file.

          So please try to be more specific as I said.

          <?php
          
          // Template Name: Portfolio
          
          // Adds Page Title and Content
          add_action('genesis_before_content', 'genesis_do_post_title');
          add_action('genesis_before_content', 'genesis_do_post_content');
          
          /** Remove Edit Link */
          add_filter( 'edit_post_link', '__return_false' );
          
          // Loads prettyPhoto scripts
          add_action('get_header', 'prettyPhoto_scripts');
          function prettyPhoto_scripts() {	
              wp_enqueue_script('jquery-1', CHILD_URL.'/lib/prettyPhoto/js/jquery-1.4.4.min.js');
              wp_enqueue_style('prettyPhoto', CHILD_URL.'/lib/prettyPhoto/css/prettyPhoto.css');
              wp_enqueue_script('prettyPhoto2', CHILD_URL.'/lib/prettyPhoto/js/jquery.prettyPhoto.js');
          }
          
          // Adds javascript below footer
          add_action('genesis_after_footer', 'prettyPhoto_javascript');
          function prettyPhoto_javascript() {
          ?>
          <script type="text/javascript" charset="utf-8">
            $(document).ready(function(){
              $("a[rel^='prettyPhoto']").prettyPhoto();
            });
          </script>
          <?php
          }
          		
          // Force layout to full-width-content
          add_filter('genesis_pre_get_option_site_layout', 'ally_home_layout');
          function ally_home_layout($layout) {
              $layout = 'full-width-content';
              return $layout;
          }
          
          // Add .teaser class to every post, except first 2
          add_filter('post_class', 'portfolio_post_class');
          function portfolio_post_class( $classes ) {
              $classes[] = 'portfolio';
              return $classes;
          }
          
          // Adds prettyPhoto 'gallery_clearfix' class
          add_filter('post_class', 'gallery_clearfix');
          function gallery_clearfix( $classes ) {
              $classes[] = 'gallery clearfix';
              return $classes;
          }
          
          // Modify length of post excerpts
          add_filter('excerpt_length', 'custom_excerpt_length');
          function custom_excerpt_length($length) {
              return 15; // pull first 15 words
          }
          
          // Remove post info and meta info
          remove_action('genesis_after_post_content', 'genesis_post_meta');
          remove_action('genesis_before_post_content', 'genesis_post_info');
          
          // Add Featured Image for the Portfolio posts in this Page Template
          add_action('genesis_before_post_content', 'ally_portfolio_do_post_image');
          function ally_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">%s</a>', genesis_get_image( array( 'format' => 'url', 'size' => 'Portfolio Full', 'attr' => array( 'class' => 'alignnone post-image' ) ) ), the_title_attribute('echo=0'), $img );
          }
          
          // Move title below post image
          remove_action('genesis_post_title', 'genesis_do_post_title');
          add_action('genesis_post_content', 'genesis_do_post_title', 9);
          
          // Remove default content for this Page Template
          remove_action('genesis_post_content', 'genesis_do_post_image');
          remove_action('genesis_post_content', 'genesis_do_post_content');
          
          // Add Content for the Portfolio posts in this Page Template
          add_action('genesis_post_content', 'ally_portfolio_do_post_content');
          function ally_portfolio_do_post_content() {
              
              if ( genesis_get_option('ally_portfolio_content') == 'excerpts' ) {
                  the_excerpt();
              
              } else {
                  if ( genesis_get_option('ally_portfolio_content_archive_limit') )
                      the_content_limit( (int)genesis_get_option('ally_portfolio_content_archive_limit'), __('Read More', 'ally') );
                  else
                      the_content(__('Read More', 'ally'));
              }
          } 
          
          /* - Uncomment to add the below code
          // Clear float using genesis_custom_loop() $loop_counter variable
          // Outputs clearing div after every 4 posts
          // $loop_counter is incremented after this function is run
          add_action('genesis_after_post', 'portfolio_after_post');
          function portfolio_after_post() {
              global $loop_counter;
              
              if ( $loop_counter == 3 ) {
                  $loop_counter = -1;
                  echo '<div class="clear"></div>';
              }
          }
          */
          
          // Remove standard loop
          remove_action('genesis_loop', 'genesis_do_loop');
          
          // Add custom loop
          add_action('genesis_loop', 'portfolio_loop');
          function portfolio_loop() {
              $paged = get_query_var('paged') ? get_query_var('paged') : 1;
              
              $include = genesis_get_option('ally_portfolio_cat');
              $exclude = genesis_get_option('ally_portfolio_cat_exclude') ? explode(',', str_replace(' ', '', genesis_get_option('ally_portfolio_cat_exclude'))) : '';
                  
              $cf = genesis_get_custom_field('query_args'); // Easter Egg
              $args = array('cat' => $include, 'category__not_in' => $exclude, 'showposts' => genesis_get_option('ally_portfolio_cat_num'), 'paged' => $paged);
              $query_args = wp_parse_args($cf, $args);
              
              genesis_custom_loop( $query_args );
          }
          	
          genesis();		
          #7230
          Eric
          Customer

            The file I’m referring to is the only portfolio file in the theme (this is already mentioned in the previous link). Please re-read the post and your issue should be solved.


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

            #7231
            Eric
            Customer

              If you’re using an older version of the theme, then you’ll need to manually update the portfolio template with the new version, and then look in your functions.php file (near the bottom) and replace all of the portfolio code with the new code of the new version. Since Genesis 2.0+ made changes to the framework you have to add in those changes to the code I referenced above.


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

              #7235
              jasmendoza
              Customer

                Thank you Eric this is a kind of frustrated, because you closed my other ticket that is NOT related with this problem, but again PLEASE READ, the topics are differents, the subjects are different and you are not helping me. PLEASE, and is not helping when you don’t read and only paste other topic with something similar, that’s not help.

                #7239
                Eric
                Customer

                  Actually I am reading everything just fine, I think the problem is the fact that you aren’t reading what I’m writing or you’re looking for me to do this all for you or something. Please read what I’m trying to explain to you, because I have provided the solution to both of your issues here in my previous comments.

                  So PLEASE actually READ what I wrote, then PLEASE try and implement it into your theme. Once you do this you will laugh once you see just how easy it was to solve πŸ™‚ How do I know this? Because I have already helped plenty of other people with the exact same questions (you can see this by searching other forum posts).

                  By the way, posting a link to the solution vs copy/pasting it inside of the post equals the exact same thing. It’s time consuming to retype the exact same thing inside every single post/question. Posting a link to a solution IS helping you, why would you say it’s not? It doesn’t matter WHO says it, what matters is that it works! Please be grateful, and don’t complain about how someone chooses to help you. Help is still help, and is much better than NO help. You should use the Search feature at the top of the forum like everyone else. This is mentioned in the Forum Rules that I mentioned in the other thread. Have you read that? Again, reading the rules prevents things like this from happening. You need to understand how a community forum works, rather than trying to bend the rules. Everyone must follow the rules, you are no different than anyone else. I didn’t create the rules so don’t “shoot the messenger”.

                  If you had read and actually tried my suggestions you would have already solved both of these issues πŸ™‚ Writing that you’re frustrated or angry with someone that is helping you does not help me or anyone else help YOU. Most people usually ignore or skip over posts were someone is angry, demanding, or disrespectful. From my experience, the people that are so angry are usually the ones that made the mistake in the first place and are trying to put the blame on someone else. So PRO TIP: Be nice if you want help for free. This is a community.

                  Remember, I’m helping you here, no reason to get angry at someone that is helping you! If you don’t want my help, just say so. As a matter of fact, I’ll just let another community member answer your questions since you don’t seem to want to use any of my suggestions πŸ™‚


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

                  #7242
                  jasmendoza
                  Customer

                    Ok Erick let me star again, the problem in this post that is in the subject is solved, I am not longer have this problem, how did I solve?, it was a problem with a plug in so please forget everything related with the subject in this topic.

                    Second, I have another totally different problem, TOTALLY, My problem is that I am trying to PUT SOME TEXT in my page portfolio if you see my actual page.

                    http://www.casaazuldetepoztlan.com.mx/instalaciones/habitaciones/

                    You see the word “HABITACIONES” below that word, you see the pictures, that is FINE I want in that way, I DON’T WANT TEXT in each picture. I did it that way BUT now I want to insert some text between the text “HABITACIONES” and the pictures, like a paragraph.

                    I think that I am upset because, I wrote that situation and I receive and answer that is not related with the topic, and I understand that you could get some questions, but please ask first before put and answer.

                    Thank you and I appreciate your help, but when you answer all the topics it looks like are solved when in fact are not.

                    #7245
                    Eric
                    Customer

                      Again, yes I am aware of your other issue. What I am saying is that the above suggestions will fix BOTH the issue here, and the other issue from the other thread.

                      The reason the thread was closed was because you wrote this –

                      “I am starting to be a little angry with the fact that I can’t get a real answer for my problem here, but I will try again

                      This implies you are “trying again” by reposting the same issue. Some people do this when they want someone else to answer their question, which creates duplicate posts and makes the search clogged with multiple topics on the same issue…..thats the reason why those threads get closed. But please don’t look at it like what you did was a big deal or anything, because it’s not. There are many other people that have mistakenly done the same thing, trust me, No Worries πŸ™‚ Thats why I asked you to have a look at the rules. Glad we cleared this up.

                      So again, my recommendations above WILL fix BOTH of your issues. Let me know once you implement the suggestions so then I can follow up with everything else you’ll need to do for the other things you need.


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

                      #7246
                      Eric
                      Customer

                        Here is an example of what I’m talking about – http://demo.appfinite.net/epik/portfolio/ Notice the Title and the paragraph up top? That will work, and the prettyPhoto will work all together once you make those necessary updates I mentioned.

                        Does that make sense?


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

                        #7270
                        jasmendoza
                        Customer

                          Ok, Thanks I just need to understand what I will do.

                          1. Go to the update file page_portfolio.php then I copy the code and paste in my own child theme page_portfolio.php file.

                          2. Go to the function.php file and look for the code related with pretty photo that I suppose it starts here until the end of the file/** Add Portfolio Settings box to Genesis Theme Settings */

                          3. Then Update the code above with with function.php file update from the new version of the theme.

                          Is that right?

                          #7279
                          Eric
                          Customer

                            Yep thats it πŸ™‚

                            Before you begin, what version are you currently using at the moment to do all of this? Because the new code is based on Genesis 2.0 with HTML5 markup, so it’s not designed for the old genesis.


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

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • You must be logged in to reply to this topic.