title: How to show different logo on different pages in wordpress theme?
body: <p>Well here is the code which displays the header part on the wordpress theme which I am currently using. </p>
  
  <pre><code>&lt;div id="site-branding" class="clearfix"&gt;
          &lt;?php
          $logo = isset($options['logo'])? $options['logo']: '';
          if ($logo == ""){
              $hidetitle = $options['hide_title'];
              if ($hidetitle == "No") {
  
                  if(!is_home() || !is_front_page()) { ?&gt;
                      &lt;div class="site-title"&gt;&lt;a href="&lt;?php echo esc_url( home_url( '/' ) ); ?&gt;" title="&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;"&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="site-description"&gt;&lt;?php bloginfo('description'); ?&gt;&lt;/div&gt;
                  &lt;?php } else { ?&gt;
                      &lt;h1 class="site-title"&gt;&lt;a href="&lt;?php echo esc_url( home_url( '/' ) ); ?&gt;" title="&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;"&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt;&lt;/h1&gt;
                      &lt;div class="site-description"&gt;&lt;?php bloginfo('description'); ?&gt;&lt;/div&gt;
  
              &lt;?php } }
          } else {
              echo '&lt;div class="site-logo"&gt;&lt;a href="'. esc_url( home_url( '/' ) ) .'"&gt;';
              echo '&lt;img title="'. get_bloginfo('name') .'" src="' . $logo .'" /&gt;';
              echo '&lt;/a&gt;&lt;/div&gt;';
          } ?&gt;
      &lt;/div&gt;&lt;!-- end #site-branding --&gt;
  </code></pre>
  
  <p>The first part of this code checks the presence of logo. If the logo is not present, it will display only the name and description of theme provided it is not checked hidden in theme options. It will style the name and description slightly different on home/front page while on other page a different style.However, if logo is present it will display the logo on all pages.</p>
  
  <p>Now what I want to achieve is to style (with CSS) the <strong>LOGO</strong> differently on Front/Home page while on other pages I want to add some extra css classes to logo. </p>
  
  <p>I tried to use elseif statement in the second part of above code but couldn't get the desired result.</p>
  
  <p>Please suggest me how to do it properly.</p>
  
  <p>UPDATE:
  Because I can't post the answer to my own question, I am posting here. 
  Well, I used this code after removing some PHP closing elements and it worked like charm. I am posting it here again just to make it sure that there is no error.</p>
  
  <pre><code>if(is_home() || is_front_page()) {
          echo '&lt;h1 class="site-logo"&gt;&lt;a href="'. esc_url( home_url( '/' ) ) .'"&gt;';
          echo '&lt;img calss="mylogo1" title="'. get_bloginfo('name') .'" src="' . $logo .'" /&gt;';
          echo '&lt;/a&gt;&lt;/h1&gt;';
               } else {
          echo '&lt;div class="site-logo"&gt;&lt;a href="'. esc_url( home_url( '/' ) ) .'"&gt;';
          echo '&lt;img calss="mylogo2" title="'. get_bloginfo('name') .'" src="' . $logo .'" /&gt;';
          echo '&lt;/a&gt;&lt;/div&gt;';
          } ?&gt;
  </code></pre>