title: how to add custom div in header using wordpress?
body: <p>I want this functionality in my custom plugin to show my name in header section right side of logo</p>
  
  <pre><code>add_action('wp_head','hook_header');
  
  function hook_header()
  {
  
  $output="&lt;?php
      $example_position = get_theme_mod( 'logo_placement' );
      if( $example_position != '' ) {
          switch ( $example_position ) {
              case 'left':
                  // Do nothing. The theme already aligns the logo to the left
                  break;
              case 'right':
                  echo '&lt;style type="text/css"&gt;';
                  echo '#main-header #logo{ float: right; }';
                  echo '&lt;/style&gt;';
                  break;
              case 'center':
                  echo '&lt;style type="text/css"&gt;';
                  echo '#main-header{ text-align: center; }';
                  echo '#main-header #logo { text-align: center; float: none; margin: 0 auto; display:block; }';
                  echo '&lt;/style&gt;';
                  break;
          }
      }
  ?&gt;";
  
  echo $output;
  
  }
  </code></pre>
  
  <p>I try this but I want to add div right side of logo by custom code </p>