title: Wordpress change logo of certain page
body: <p>I am using wordpress and I want to have a different page logo for two certain pages.</p>
  
  <p>I have created a child theme and inside the Functions.php file I have added this code:</p>
  
  <pre><code>        &lt;?php
  
           if ( ! function_exists( 'wpex_header_logo_img' ) &amp;&amp; is_page(877) || ! function_exists( 'wpex_header_logo_img' ) &amp;&amp; is_page(970)) {
          function wpex_header_logo_img() {       
  
              // Get logo img from admin panel
              $logo_img = wpex_option( 'custom_logo', false, 'http://amcham2.amcham.gr/wp-content/uploads/2014/09/business-branding-identity.jpg' );
  
              // If logo URL isn't empty return the logo
              if ( '' != $logo_img ) {
                  return $logo_img;
              }
  
              // Otherwise if logo is empty return nothing
              else {
                  return;
              }}}?&gt;
  </code></pre>
  
  <p>I have not manged to change the logo though.. I know someting is wrong in there but I do not know what. </p>
  
  <p>I want to change the existing logo with 
  "<a href="http://amcham2.amcham.gr/wp-content/uploads/2014/09/business-branding-identity.jpg" rel="nofollow">http://amcham2.amcham.gr/wp-content/uploads/2014/09/business-branding-identity.jpg</a>".
  Any help is appreciated! Thank you!</p>
  
  <p>This was the original code:</p>
  
  <pre><code>if ( ! function_exists( 'wpex_header_logo_img' ) ) {
      function wpex_header_logo_img() {
  
  
  
          // Get logo img from admin panel
          $logo_img = wpex_option( 'custom_logo', false, 'url' );
  
          // If logo URL isn't empty return the logo
          if ( '' != $logo_img ) {
              return $logo_img;
          }
  
          // Otherwise if logo is empty return nothing
          else {
              return;
          }
  
      }
  }
  </code></pre>