jasmendoza

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Update #16174
    jasmendoza
    Customer

      Thank you Andykey but I think you didn’t read very well what was my question. because I know what happen when you update wordpress and I know how to update my theme too. My question is if I have this theme version 1.0 and I want to update my wordpress to version 3.9.8. it won’t work, because the theme works in a lower WordPress version, unless the theme author update Ally theme to be totally functional to the most recent WordPress version.

      in reply to: PrettyPhoto Stop Working, without updated. #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?

        in reply to: PrettyPhoto Stop Working, without updated. #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.

          in reply to: PrettyPhoto Stop Working, without updated. #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.

            in reply to: PrettyPhoto Stop Working, without updated. #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();		
              in reply to: Choosing a Siderbar #6877
              jasmendoza
              Customer

                Thank you for your answer, I only want to be able to put two feature page on the right and other two in the left, but I don’t want show all of them in all at the same time, so I want to choose between primary and secondary, in each page, but I will post my question in the genesis site, probably I have better luck.

                in reply to: Choosing a Siderbar #6711
                jasmendoza
                Customer

                  Probably i didn’t explain myself correctly but my point is if I choose the layout for example, sidebar – contents or contents – sidebar, the sidebar that alway show is the primary, unless I choose sidebar – contest – sidebar or any other option with both sidebar at the same time but no option for customize primary or secondary.

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