title: ACF Header Background
body: <p>I am using Advanced Custom Fields to display a background image in my header. Now I want to display a default image if there is no ACF-image defined. I tried this code, but it didn't work (image only shows if it is set):</p>
  
  <pre><code>&lt;?php wp_head(); ?&gt;
  
      &lt;?php if(get_field('header')) {
          $image = get_field('header');
      } else {
         $image = '&lt;img src="#absolute-path-to-my-image"&gt;';
      }      
      ?&gt;
  
      &lt;style type="text/css"&gt;
           #inner-header{
               background-image: url('&lt;?php echo $image['url']; ?&gt;');
               background-position:center;
               background-repeat:no-repeat;
               background-size:cover;
           }
      &lt;/style&gt;
  </code></pre>
  
  <p>thanks for any help.</p>