php & Genesis update

Homepage Community Forums Legacy Theme Support php & Genesis update

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13096
    tjd
    Customer

      Hello,

      http://tomjdolan.com

      In preparing to update Genesis from 1.9.2 to the latest version, I’m wondering about this: Wes sent me 2 bits of php code that I put into my site php code. Will I lose that code when I update? Studio Press sez never touch Genesis Code and I never have but is this modified php code safe? If it does go away, can I input the same code into the new Genesis or will it have to be modified: Here’s the code

      >> Added these codes from Wes/ to the: functions.php

      /** Modify the speak your mind text */
      add_filter( ‘genesis_comment_form_args’, ‘custom_comment_form_args’ );
      function custom_comment_form_args($args) {
      $args[‘title_reply’] = ‘Leave a Comment, Ask a Question’;
      return $args;
      }

      // Add “Read More” link
      add_filter( ‘excerpt_more’, ‘custom_read_more_link_2’ );
      add_filter( ‘get_the_content_more_link’, ‘custom_read_more_link_2’ );
      add_filter( ‘the_content_more_link’, ‘custom_read_more_link_2’ );
      function custom_read_more_link_2() {
      return ‘… [Read More]‘;
      }

      Thanx for any info you can send along. It’s already causing sleep-less notes and I haven’t done anything yet… crazy time here in tokyo.

      #13141
      Eric
      Customer

        Yes replacing any file will overwrite whatever changes you added. So you would need to copy any customizations you made and add it to the new version if you decide to update.


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

        #13154
        tjd
        Customer

          Thanx Eric and the upgrade went very well. Easier than I had imagined.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘php & Genesis update’ is closed to new replies.